multiple viewports
I'm unsure how to go about hooking up multiple Ogre viewports on the screen with Noesis with separate cameras.
I was hoping I could just have the controls automatically resized as the window is resized as well.
Any ideas how I might approach this?
Is there a control I might be able to use or something?
Thanks.
I was hoping I could just have the controls automatically resized as the window is resized as well.
Any ideas how I might approach this?
Is there a control I might be able to use or something?
Thanks.
Re: multiple viewports
Hi,
At the low-level, it must be done manually. Although I think this could be an improvement to be added to the ogre bindings. The idea is as follows:
Thanks.
At the low-level, it must be done manually. Although I think this could be an improvement to be added to the ogre bindings. The idea is as follows:
- Imagine you have two viewports in the screen
- You have to create two NoesisGUI IRenderers
- Each time your viewports change size, you must set that size to each renderer (SetSize())
- When you apply the RenderCommands generated by the renderer, the current rendertarget and device viewport are preserved. So basically, you must set your viewport, draw your content, and after that draw the NoesisGUI commands (note: offscreen render commands must be applied before any viewport, because they correspond to texture drawing commands)
Thanks.
Who is online
Users browsing this forum: Bing [Bot], Google [Bot] and 7 guests