Ogre RTT and MyGUI

NoodlesOnMyBack

26-04-2012 21:14:05

Im trying to render what my main camera see to a texture, and this works fine for any Ogre object present in the scene, but the GUI is not visible, is there some kind of flag to let me choose if widgets should be visible by the camera?
For different reasons i cant use the MyGUI RTT approach, i have to do it the "Ogre way".
Is there someone else with this kind of problem? Thanks in advance.

scrawl

30-04-2012 20:11:41

Have you told MyGUI about the viewport you're rendering to?

is there some kind of flag to let me choose if widgets should be visible by the camera?
MyGUI renders manually to the viewport after everything else is rendered, so you have to tell mygui the viewport & scenemanager that it should use.