[fixed] Antialiasing in demo is inconsistently set
Posted: Mon Apr 28, 2014 1:19 am
The Antialiasing in the demo is incorrectly set, while in DX works just fine, the value that is expected in GL doesn't seem to have any meaning.
It is an error which has been there for a long time already, and obviously hasn't been fixed. While in the release versions of Irrlicht, the antialiasing was meant to be enabled or disabled as a toggle, the SVN version used a value indicating the quality of the antialiasing used. In fact, it is more useful to have the antialiasing as a value, indicating the amount of samples we want to use. Hence, something like this:
Or any other aa value for OpenGL which works as expected, is the right way to go now. And works.
Code: Select all
params.AntiAlias=aa;//The aa variable is actually a Bool
Code: Select all
params.AntiAlias=aa?16:0;
Or any other aa value for OpenGL which works as expected, is the right way to go now. And works.