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!
AntiAlias in windowed mode
-
- Competition winner
- Posts: 167
- Joined: Sun Jul 19, 2009 11:27 am
- Location: the Netherlands
- Contact:
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?
Did you check material settings?
Code: Select all
irr::video::SMaterial mt;
mt.AntiAliasing=true;
I thought the same, so I checked it again and it's true, AntiAliasing is there for DirectX in windowed mode.According to the API the AntiAlias member is only used in fullscreen mode... so not sure how you can see Antialiasing even with Direct3D.
Did you check material settings?
Yep, I tried initializating Materials too, and it doesn't work. Any ideas?You need to set the antialiasing both in the engine initialization, and inside the material definitions.
Thanks a lot for your help.
PS: Por cierto Mel, saludos desde Sevilla
-
- Admin
- Posts: 14143
- Joined: Wed Apr 19, 2006 9:20 pm
- Location: Oldenburg(Oldb), Germany
- Contact:
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.