Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

urusei9

Mapping a bitmap on only 1 side of a cube

This topic is 6291 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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)

Share this post


Link to post
Share on other sites
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..

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!