How set a background ?

Alexis

09-11-2010 14:46:03

Hi, I would like set a backgroud (default color is blue for me) but I don't know to do that.
Can you help me please ?

Altren

09-11-2010 15:28:37

This is Ogre related question, use Ogre::Viewport::setBackgroundColour method to change colour.

Alexis

09-11-2010 15:48:21

This is Ogre related question, use Ogre::Viewport::setBackgroundColour method to change colour.

Ogre and MyGUI are the same ?? I mean if i change the color with Ogre::Viewport::setBackgroundColour, the color of my MyGUI change too ?
And for a picture i can't use this method ?

Thanks for your reply.

Altren

09-11-2010 16:24:39

If you need background for GUI, then create StaticImage widget with size equal to your viewport resolution and set any image file.
If you need background for 3d scene this is not right forum to ask about that. MyGUI is rendered above OGRE scene, so fill screen GUI StaticImage will close whole scene.

Alexis

09-11-2010 17:09:41

If you need background for GUI, then create StaticImage widget with size equal to your viewport resolution and set any image file.

Very thanks. viewtopic.php?f=17&t=11975&start=0 (answer to my subject).