More Control for RenderBox

stalker87

27-09-2008 00:56:03

Hi all! ( i love MyGUI :P )
Are there any method to take control of the AutoGenerated SceneManager in a RenderBox ? I think it could be helpful to modify the scene in most cases.

Another question... Why in this code

void RenderBox::setBackgroungColour(const Ogre::ColourValue & _colour)
{
if (false == mUserViewport){
mBackgroungColour = _colour;
Ogre::Viewport *v = mTexture->getViewport(0);
v->setBackgroundColour(mBackgroungColour);
}
}


you check if mUserViewport is false ?

And last but not least: Is there a method to create background transparency in RenderBox providing my custom rendertarget ?

stalker87

01-10-2008 01:51:46

I mean to add something like this methods....


Ogre::SceneManager* getSceneManager() { return mScene; }
Ogre::Entity* getEntity() { return mEntity; }
Ogre::SceneNode* getSceneNode() { return mNode; }
Ogre::RenderTexture* getRenderTexture() { return mTexture; }

Altren

01-10-2008 02:01:31

Why do you need getRenderTexture?
All other will be added.

stalker87

01-10-2008 15:32:47

Why do you need getRenderTexture?
I think that it will be useful for special effect... no ?

stalker87

02-10-2008 00:47:13

Is there a method to create background transparency in RenderBox providing my custom rendertarget ?

I requote myself... sorry but i need it :\

Altren

02-10-2008 20:51:11

Is there a method to create background transparency in RenderBox providing my custom rendertarget ?Sorry, no ideas.

stalker87

02-10-2008 21:21:22

But with your RenderBox i can set bgcolor to (0,0,0,0) and all, but not the entity, become transparent.

Altren

14-10-2008 15:17:55

Sorry for long reply.
You can manually create Ogre::Texture and assign it to StaticImage widget.
How to create transparent texture you can find in MyGUI source code in void RenderBox::createRenderTexture()
To assign writeimage->setImageTexture("DynamicTexture");