Oidamoh
09-05-2011 19:21:35
Hi There,
I'm really stuck on this topic so i would appreciate answers or claps on the back of my Head...![Smile :)]({SMILIES_PATH}/icon_smile.gif)
Im trying the following. I successfully tried the way Mogre in combination with WPF described in
http://www.ogre3d.org/forums/viewtopic.php?t=44263
Everything is fine, except an extremly ugly Aliasing-Problem. I tried to set the Window-Parameters the right way:
result was the same ugly Staircase.
Then discovered that the Texture can also be setup for AA:
After that i thought i made it, but instead my App crashed in the last line (getBuffer().GetRenderTarget())
The Error Message was: An antialiased back buffer requires a IDirect3DDevice9Ex device.
My Question is now what to do to get it to work.![Smile :)]({SMILIES_PATH}/icon_smile.gif)
Thx in Advance.
I'm really stuck on this topic so i would appreciate answers or claps on the back of my Head...
![Smile :)]({SMILIES_PATH}/icon_smile.gif)
Im trying the following. I successfully tried the way Mogre in combination with WPF described in
http://www.ogre3d.org/forums/viewtopic.php?t=44263
Everything is fine, except an extremly ugly Aliasing-Problem. I tried to set the Window-Parameters the right way:
var misc = new NameValuePairList();
misc["externalWindowHandle"] = hWnd.ToString();
misc["FSAA"] = "16";
misc["FSAAHint"] = "Quality";
renderWindow = ogreRoot.CreateRenderWindow("OgreImageSource Windows", 0, 0, false, misc.ReadOnlyInstance);
result was the same ugly Staircase.
Then discovered that the Texture can also be setup for AA:
_texture = TextureManager.Singleton.CreateManual(
"OgreImageSource RenderTarget",
ResourceGroupManager.DEFAULT_RESOURCE_GROUP_NAME,
TextureType.TEX_TYPE_2D,
1024,768,
0, Mogre.PixelFormat.PF_A8R8G8B8,
(int)TextureUsage.TU_RENDERTARGET,
null,false,16,"Quality");
After that i thought i made it, but instead my App crashed in the last line (getBuffer().GetRenderTarget())
IntPtr surface;
_renTarget.GetCustomAttribute("DDBACKBUFFER", out surface);
_renTarget = _texture.GetBuffer().GetRenderTarget();
The Error Message was: An antialiased back buffer requires a IDirect3DDevice9Ex device.
My Question is now what to do to get it to work.
![Smile :)]({SMILIES_PATH}/icon_smile.gif)
Thx in Advance.