Page 1 of 1

AntiAlias in windowed mode

Posted: Thu May 27, 2010 6:35 am
by sylpheed
I'm trying to activating AntiAlias in windowed mode using OpenGL. I'm using:

SIrrlichtCreationParameters param;
param.DriverType = EDT_OPENGL;
param.AntiAlias = 8;
device = createDeviceEx (param);

But it does not work. If I try with

param.DriverType = EDT_DIRECT3D9;

then it works. Am I missing something? In Nvidia control panel it is activated the option "Let the application decide" for image configuration.

Thanks!

Posted: Thu May 27, 2010 1:51 pm
by Bate
According to the API the AntiAlias member is only used in fullscreen mode... so not sure how you can see Antialiasing even with Direct3D.

Posted: Thu May 27, 2010 3:58 pm
by Escen
I'm using a windowed mode and OpenGL and I think I have visual result playing with AntiAliasing. No experience with Direct3D.

Did you check material settings?

Code: Select all

irr::video::SMaterial mt;
 mt.AntiAliasing=true;

Posted: Thu May 27, 2010 5:07 pm
by Mel
You need to set the antialiasing both in the engine initialization, and inside the material definitions.

Posted: Fri May 28, 2010 6:39 am
by sylpheed
According to the API the AntiAlias member is only used in fullscreen mode... so not sure how you can see Antialiasing even with Direct3D.
I thought the same, so I checked it again and it's true, AntiAliasing is there for DirectX in windowed mode.
Did you check material settings?
You need to set the antialiasing both in the engine initialization, and inside the material definitions.
Yep, I tried initializating Materials too, and it doesn't work. Any ideas?

Thanks a lot for your help.

PS: Por cierto Mel, saludos desde Sevilla :D

Posted: Fri May 28, 2010 7:40 am
by agamemnus
You aren't the only one with this problem. Anti-alias, for me, works only with Directx8/9. It could be your graphics driver simply doesn't support anti-alias for opengl.

Posted: Fri May 28, 2010 3:30 pm
by Mel
Saludos Sylpheed, da gusto poder usar la lengua materna con la peña :)

Posted: Sun May 30, 2010 10:38 am
by hybrid
Well, fullscreen anti-aliasing could mean that it's only available for full-screen apps. For windowed mode, Irrlicht won't choose other modes, which can mean that anti-aliasing is not available if it's not available in the desktop mode. Depending on OS and driver settings, this can be the case, or just not. I don't see a way around this, because windowed mode is exactly meant for this - using the given desktop mode and live with the setting provided.