View Full Version : How to flip a texture via the texture matrix?

05-13-2001, 02:32 PM
Topic is the question I got.
I have got 6 cubemap textures (1 for each direction), that are not flipped (It seems that cubemap textures donīt have to be flipped in order to be drawn correct in OpenGL, right?).
Now I want to use these 6 textures for a skybox and then they have to be flipped, right?
The question is how can I do this via the texture matrix, so that I donīt need 12 textures (6 cubemap textures and these 6 flipped, so that they are suitable for the skybox)!


05-13-2001, 04:51 PM
I flipped my 6 cubemap textures and found out a strange thing.
The textures for:

- neg x
- neg z
- pos x
- pos y
- pos z
Have to be flipped on the x axis in order to be correct as skybox textures, BUT
- neg y (the floor)
has to be mirrored on the y axis in order to be correct as skybox texture ... WHY THIS?


05-18-2001, 06:02 PM
dunno... /me sukz @ cuby mapping http://www.opengl.org/discussion_boards/ubb/smile.gif

Oh, I'm sorry, did I write it like that? :P