As far as I understood, a cubic Ogre::texture basicly consists of 6 individual textures.
So how can I create a cubic Ogre::texture and put the 6 other Ogre::textures into it?
Put 6 Textures into one Cubic Texutre
-
- Goblin
- Posts: 253
- Joined: Sat Sep 28, 2013 3:46 pm
- x 10
- c6burns
- Beholder
- Posts: 1512
- Joined: Fri Feb 22, 2013 4:44 am
- Location: Deep behind enemy lines
- x 138
Re: Put 6 Textures into one Cubic Texutre
As I mentioned in the original thread: http://www.ogre3d.org/forums/viewtopic.php?f=1&t=81162
Sample_CubeMapping does exactly this.
Sample_CubeMapping does exactly this.
-
- Goblin
- Posts: 253
- Joined: Sat Sep 28, 2013 3:46 pm
- x 10
Re: Put 6 Textures into one Cubic Texutre
OH, right, forgot about that one.
Thanks and sorry for reposting.
Thanks and sorry for reposting.
- c6burns
- Beholder
- Posts: 1512
- Joined: Fri Feb 22, 2013 4:44 am
- Location: Deep behind enemy lines
- x 138
Re: Put 6 Textures into one Cubic Texutre
No worries, I'm sure you'll see the call to TextureManager::createManual there and get it. In that sample it passes TU_RENDERTARGET as the texture usage so it can dump the RTTs directly into the 6 texture buffers each frame. You could also specify different usage, for instance if you had 6 textures already and weren't doing a dynamic environment map