vandamme
29-10-2006 12:10:58
Hi,
I successully ported one of Xadecks's tutorials using very useful ManualObject class (
http://artis.imag.fr/~Xavier.Decoret/re ... rial4.html)
with Mogre (never succeeded with OgreDotNet
![Wink ;)]({SMILIES_PATH}/icon_wink.gif)
...
I am working in windowed mode using Windows Forms but I can't activate antialiasing (Direct3D or OpenGL) ...
I am using the Root config dialog or the method renderSystem.SetConfigOption(...) which I think lead to the same result, but antialiasing seems to be inactive.
Is it because I am in windowed mode ?
How can you tell if antialiasing is turned on or off? Is this something which shows up in Ogre.log?
vandamme
02-11-2006 19:49:21
Simply because I can see it when I plot a simple 3D cube.
When I force antialiasing in the drivers, I really see the difference about the cube's edge.
Bekas
02-11-2006 21:50:45
When you use renderSystem.SetConfigOption, the config options get passed to the auto created window.
When you create your own window with root.CreateRenderWindow, you need to manually pass the correct config options:
root.Initialise(false);
NameValuePairList misc = new NameValuePairList();
misc["externalWindowHandle"] = hWnd.ToString();
misc["FSAA"] = "4"; // Level 4 anti aliasing
window = root.CreateRenderWindow("Simple Mogre Form Window", 0, 0, false, misc);
See
http://www.ogre3d.org/docs/api/html/classOgre_1_1Root.html#Ogre_1_1Roota34
for the rest of the parameters.
But isn't FSAA for Fullscreen Antialiasing? How does Ogre handle AA in windowed mode?
Bekas
02-11-2006 22:13:08
Isn't it a driver thing? It definately works in windowed mode; I verified it by capturing the screen and zooming in using Paint
vandamme
04-11-2006 14:39:19
Yes, it must be a driver thing because I did exactly what you wrote above.
I will try something by tuning or upgrading the drivers.
Thks.
CodeApe
12-04-2009 13:28:18
Hi,
I had the same problem and the suggested (by Bekas) solution actually helped me when using OpenGL.
However, in case of Direct3D the anti-aliasing setting still has no effect.
CodeApe
12-04-2009 14:26:49
Hi,
I had the same problem and the suggested (by Bekas) solution actually helped me when using OpenGL.
However, in case of Direct3D the anti-aliasing setting still has no effect.
I solved the problem. My mistake was that I was using "Ant aliasing" key when setting new render window miscParams.