Page 1 of 1

AntiAlias and GUI. How control AntiAlias?

Posted: Thu Mar 09, 2006 10:42 pm
by Lev_a
I tryed to implement antiAliasing, but I see some problem:

Code: Select all

    irr::SIrrlichtCreationParameters parameters;

    parameters.AntiAlias = true;
    parameters.Bits = 16;
    parameters.DriverType = driverType;
    parameters.EventReceiver = &receiver;
    parameters.Fullscreen = false;
    parameters.Stencilbuffer = false;
    parameters.Vsync = true;
    parameters.WindowSize = irr::core::dimension2d<s32>(300, 300);

	  device = createDeviceEx(parameters);
AntiAliasing working only in DirX8 and DirX9, not in OpenGL.
In DirX8 - GUI text - blury but still readable, but for DirX9 - very blury - and almost can't read.

My question:
How I can use AntiAlias in 3D but not in GUI.

I tryed
driver->setTextureCreationFlag(ETCF_CREATE_MIP_MAPS, false);
when read font - doesn't effect at all.

What I should do?

Hi

Posted: Fri Mar 10, 2006 12:14 am
by r3i
Sorry...is Antialias that creates problems? Or is Alpha channel of the color of the text?

Re: Hi

Posted: Fri Mar 10, 2006 3:44 pm
by Lev_a
r3i wrote:Sorry...is Antialias that creates problems? Or is Alpha channel of the color of the text?
That's AntiAlias problem.
I tryed to fix that problem, using
http://irrlicht.sourceforge.net/phpBB2/ ... =antialias and
http://irrlicht.sourceforge.net/phpBB2/ ... =antialias

if you want try - take tutorial 5 "UserInterface" and just change

Code: Select all

   device = createDevice(driverType, core::dimension2d<s32>(640, 480));
for

Code: Select all

	
   MyEventReceiver receiver;
    irr::SIrrlichtCreationParameters parameters; 
    parameters.AntiAlias = true; 
    parameters.Bits = 16; 
    parameters.DriverType = driverType; 
    parameters.EventReceiver = &receiver; 
    parameters.Fullscreen = false; 
    parameters.Stencilbuffer = false; 
    parameters.Vsync = true; 
    parameters.WindowSize = irr::core::dimension2d<s32>(640, 480); 
    device = createDeviceEx(parameters);
One more point:
I tested on ATI Catalyst Radeon 9200 - AntiAlias DirX 8 worked, blury - but worked, and on DirX 9 - very blury.
On nVidia GeForce 6600GE - when I turn on AntiAlias - everything mixed up - graphics, GUI, 3D and so on.
And on nVidia GeForce 6600GE - in OpenGL mode - doesn't work shadows :?

Posted: Fri Mar 10, 2006 5:51 pm
by Martins
Just as a workaround, have you considered using GDI+ to create
a bitmap with antialiased text?
I know it is only Windows.

Posted: Fri Mar 10, 2006 6:12 pm
by Lev_a
Martins wrote:Just as a workaround, have you considered using GDI+ to create
a bitmap with antialiased text?
I know it is only Windows.
I make program for Windows and sample from Tutorial 5 "UserInterface" I compiled in MS VS2005 - if it's help for you.
I doesn't change tutorial a lot - only creation device and enable antiAlias.
You can try on your computer - and you can see that DirX9 - not good :(

Posted: Fri Mar 10, 2006 6:53 pm
by Lev_a
How totally disable AntiAlias only for GUI?

I made screen-shots:

DirectX9

Image

DirectX8

Image

Same program on NVIDIA GEFORCE 6600 GT
Image

Posted: Fri Mar 10, 2006 11:19 pm
by jam
Well the first thing I would do is update your video drivers. The Nvida driver is outdated. You can then continue troubleshooting if that doesn't help.

Posted: Mon Apr 03, 2006 3:48 pm
by Lev_a
jam wrote:Well the first thing I would do is update your video drivers. The Nvida driver is outdated. You can then continue troubleshooting if that doesn't help.
Thanx, driver updated.

But still I have same problem when I enable anti-alias - text in GUI became blury in DirX8 and VERY blury in DirX9.
I need anti-alias only for scene not for GUI.
Any idea?