PDA

View Full Version : Require advice



05-03-2002, 11:59 PM
I want to texturemap 6 sides of a cube with 6 different bitmaps.How do I achieve this?
Please email to nandakumar_nongmaithem@yahoo.com

Bob
05-04-2002, 01:33 AM
You draw the six sides of the cube one by one, as if they where six single quads. For each quad, bind the texture, and pass the four vertices to OpenGL.

nexusone
05-04-2002, 04:33 AM
You have to load six diffrent textures, then put each texture on each side of the cube.

nehe.gamedev.net has an example of maping a texture to a cube.



Originally posted by Nandakumar:
I want to texturemap 6 sides of a cube with 6 different bitmaps.How do I achieve this?
Please email to nandakumar_nongmaithem@yahoo.com