Jump to content
  • Advertisement
Sign in to follow this  
51mon

How to transform 2d texture to one face of a cube map?

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

Hi I'm a programmer, so my knowledge of image editing is a bit ehrm... limited. I need to create a noise cube map with the same face on all sides. I know how to create a noise texture, but how do I make it distort so the pattern appear uniform when doing a cube map lockup (in the game)? In other words, the thing I want to do -Is to take a regular texture and distort it so it's suitable to place in one face of a cube map. Thanks [Edited by - 51mon on September 18, 2008 5:47:19 AM]

Share this post


Link to post
Share on other sites
Advertisement
Interesting question. I've done some texture art, but I never did a cube map before, so I was curious and tried to look it up. Cannot find a tutorial for doing the warping anywhere. x_X Closes I found is this:

This shows the relationship between each square face and the corresponding segment of the sphere. Theoretically, unwrapping the sphere should give you 6 identical non-square shapes: taking one of these, filling it with noise, and stretching it into a square should give you a suitably-distorted face for a cubemap.


Some other interesting images:

Reichard gnomonic cubic map layouts (this is apparently a standard, and you might be able to look up some math for it somewhere).


COBE Quadrilaterized Spherical Cube


non-COBE Quadrilaterized Spherical Cube

[Edited by - sunandshadow on September 18, 2008 9:25:34 AM]

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!