Mapping a bitmap on only 1 side of a cube

Started by
1 comment, last by urusei9 23 years ago
If I want to create tiles for a board game, I create small cubes that I''ll map with a "wood" or "plastic" texture...whatever but I''d like to place the image if the tile on the cube, but of course, only on 1 side, not all 6 sides of the cube. Is there a way to do that? Ataru-San (who loves Lamu chan)
Advertisement
The simplest thing is to make several (2?) Meshes, one for one one side, and the other for the rest of the cube. Then you set the first texture, render the first mesh, then set the other texture and render the other object.
In DX, you can also make one Mesh (VertexBuffer), and render the first part of it with the first texture, and then the second part with the second texture, which might be slightly faster (better use of VBs). I dont know whether this works with GL, but...
simply create two meshes...
I hope this answered your question..
Thanks

This topic is closed to new replies.

Advertisement