Jump to content
  • Advertisement
Sign in to follow this  
Days

Texturing a cube using seperate textures

This topic is 4842 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

Fairly simple design I am having a problem wrapping my head around. Imagine 9 cubes arranged in a larger cube +--+--+--+ |...|...|...| +--+--+--+ |...|...|...| +--+--+--+ |...|...|...| +--+--+--+ I want to seperate one texture evenly among these 9 cubes. Like you would do with a sliding puzzle, but only on one side. I would like to apply seperate textures for each side of the cube. The overall goal, is so I can rotate the cubes to change the image on screen. edit: formatting is uncooperative tonight, I hope you get the idea

Share this post


Link to post
Share on other sites
Advertisement
flat rectangular prism

The overall goal is to use a LOT more cubes and split up images in a custom user interface. Instead of a simple screen swap, I want to rotate random cubes until the new screen has rotated into view.

Share this post


Link to post
Share on other sites
Ok, is there any reason that the obvious solution: just giving each cube face texture coordinates with (0, 0, .3333, .3333) to (.6666, .6666, 1, 1), doesn't work?

Share this post


Link to post
Share on other sites
hmm.. something happened to my test app, and I can't seem to get a texture loaded at all. I'll bump this if your suggestion doesn't work, as soon as I can test it.
Thanks
Shane

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • 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!