[Solved] Ogre Dual monitor application
Posted: Wed Jul 06, 2016 16:17
Hello,
I'm trying to use CEGUI in my Ogre application, that works with 2 indipendent windows each of them on different monitor.
I came across these 2 threads:
http://cegui.org.uk/forum/viewtopic.php?f=10&t=6971
and
http://cegui.org/forum/viewtopic.php?f=10&t=6831&sid=292d88310f7b2d97b372d3125e8bfd5f
As far as I can understand, they're based on different approaches, while the first one basically creates 2 ogrerenderer, the second one only creates a new context for the new window. Please tell me if I understood it correctly and what is the best approach.
I've managed to get both approaches to work correctly, but only if the windows are created in the same monitor, and not moved from there. As soon as I move the window to another monitor I get an INVALID_CALL exception thrown by D3D upon "drawprimitive" in the Ogre D3D9 rendersystem. Any clue where to look at?
Thanks!
PS.
The project uses Ogre 1.9 with D3D9 Rendersystem and CEGUI 0.8.7
PS2.
This is crossposted on Ogre forums, here: http://www.ogre3d.org/forums/viewtopic.php?f=2&t=88638
I'm trying to use CEGUI in my Ogre application, that works with 2 indipendent windows each of them on different monitor.
I came across these 2 threads:
http://cegui.org.uk/forum/viewtopic.php?f=10&t=6971
and
http://cegui.org/forum/viewtopic.php?f=10&t=6831&sid=292d88310f7b2d97b372d3125e8bfd5f
As far as I can understand, they're based on different approaches, while the first one basically creates 2 ogrerenderer, the second one only creates a new context for the new window. Please tell me if I understood it correctly and what is the best approach.
I've managed to get both approaches to work correctly, but only if the windows are created in the same monitor, and not moved from there. As soon as I move the window to another monitor I get an INVALID_CALL exception thrown by D3D upon "drawprimitive" in the Ogre D3D9 rendersystem. Any clue where to look at?
Thanks!
PS.
The project uses Ogre 1.9 with D3D9 Rendersystem and CEGUI 0.8.7
PS2.
This is crossposted on Ogre forums, here: http://www.ogre3d.org/forums/viewtopic.php?f=2&t=88638