[solved] Assign Material to ImageBox

noobOmat

11-04-2013 12:39:41

Hi,

I create an Ogre material by blending 2 textures.

I'd like to assign this composition material to a MyGUI ImageBox, so I can have it displayed and moved in a MyGUI Window.

But MyGUI only accepts Textures as input for the ImageBox->setImage() method.

Is this actually possible or am I to blind to see the obvious way to do it?

Kind regards,
noobOmat

Altren

12-04-2013 14:40:00

MyGUI know nothing about materials and you can't use them directly in Widgets. You need to render material into texture.
If you use default MyGUI::OgrePlatform then in place ofntexture file name you can use Ogre's texture name.

noobOmat

05-06-2013 12:17:52

MyGUI know nothing about materials and you can't use them directly in Widgets. You need to render material into texture.
If you use default MyGUI::OgrePlatform then in place ofntexture file name you can use Ogre's texture name.

Hi Altren,

sorry I totally lost focus of this thread. Thank you for your reply, I will try to manage with textures then.