Sign in to follow this  
Metty

Transforming a 2D Image into a Cube Map (Skybox)

Recommended Posts

I'm searching for a tool or a way to transform a 2d map into a fully 3d cube map, but having streched the map over the whole cube; not having the map 6 times in the cube......Needing this vor a skybox...How to do so?

Share this post


Link to post
Share on other sites
Well it depends upon how the flat 2D image represents a panoramic view, e.g. it may be meant to be mapped to a sphere, or a cylinder. In order to get a cube map out of it you could (conceptually) do something like place a cube inside the middle of a sphere or cylinder or whatever your 2d image is meant to be mapped to and then cast rays from the centre to every pixel on the image on the sphere, you'd place the pixel you're casting the ray where the ray intersects the cube, thus you build up a projection of your image on to a cube map.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this