Model in Desktop (Layered window)

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
udarkness
Gnoblar
Posts: 2
Joined: Fri Feb 24, 2012 8:10 pm

Model in Desktop (Layered window)

Post by udarkness » Fri Feb 24, 2012 8:14 pm

I would like to know if somebody knows how to set pixelformat to RenderWindow.
I got always the suggestPixelFormat as Mogre::PixelFormat::PF_BYTE_RGB, but i need RGBA for getting the alpha channel and set it as the bitmap of the layered.
Im working in windows 7
0 x

User avatar
johnhpus
Platinum Sponsor
Platinum Sponsor
Posts: 1186
Joined: Sat Apr 17, 2004 2:49 am

Re: Model in Desktop (Layered window)

Post by johnhpus » Sat Mar 03, 2012 3:31 am

For the layered window approach, don't use a RenderWindow. Instead, create a RenderTexture, and when you create that texture you can set it to use RGBA or whatever you like (don't forget to set the RenderTexture's viewport background color to ColourValue::ZERO).

Also, you might be interested in this: http://www.ogre3d.org/forums/viewtopic.php?f=5&t=69072
0 x

udarkness
Gnoblar
Posts: 2
Joined: Fri Feb 24, 2012 8:10 pm

Re: Model in Desktop (Layered window)

Post by udarkness » Thu Mar 08, 2012 12:28 am

Thanks, it works.
Your idea was much better than the one on the link.
0 x

Post Reply