Sign in to follow this  
fang

creating cube map images [SOLVED]

Recommended Posts

hi everybody, it's my first thread here :) I'm a beginner and learning how to use cube mapping. I understand the basic concepts and want to make a skybox of my own, from the images of my house :) a little googling brought me a bunch of tutorials on how to construct a cube map from six ready-made images for the six faces, but none of them talked about how to obtain those images in the first place. This is not trivial to me because, my digital camera has a maximum ~60 degrees angle of view, and I guess typically you need at least 90 degrees to produce an image suitable for a face of the cube -- that is, if I shoot to the front and to the left using my camera, the front edge of the left image and the left edge of the front image don't converge, there's a gap between them. I didn't intend to discuss camera technicalities here, but I guess 90 degrees wide angle camera is not something available to everyone, right? so what should I do to create images for my cube map? is this indeed only available to professional camera owners, or am I just being stupid and missing some basic concepts? Thanks a lot for pointing out for me :) [Edited by - fang on March 26, 2009 6:12:36 AM]

Share this post


Link to post
Share on other sites
Maybe you can model the sky in 3DS Max or blender or any 3D modelling software and do a render by setting the lookat for the camera for each side and with FOV to 90 degrees and then using the render. So you take 6 renders - front with fov 90, back with fov 90, right and left with fov 90, up and down fov of 90 degrees.

Well its just a guess but it could work.

Share this post


Link to post
Share on other sites
Quote:
Original post by fang
I didn't intend to discuss camera technicalities here, but I guess 90 degrees wide angle camera is not something available to everyone, right? so what should I do to create images for my cube map? is this indeed only available to professional camera owners, or am I just being stupid and missing some basic concepts? Thanks a lot for pointing out for me :)
If you happen to have a camera with interchangeable lenses, then a wide angle lens shouldn't be hard to find. If not, then your best bet may be to stitch together multiple images - although this is pretty labour intensive

Share this post


Link to post
Share on other sites
Quote:
Original post by CRACK123
Maybe you can model the sky in 3DS Max or blender or any 3D modelling software and do a render by setting the lookat for the camera for each side and with FOV to 90 degrees and then using the render. So you take 6 renders - front with fov 90, back with fov 90, right and left with fov 90, up and down fov of 90 degrees.

Well its just a guess but it could work.


In my case I want photo images instead of models for the cube faces. I don't have a model for my house (and making one would take me ages...). But thanks for the suggestion anyway

Share this post


Link to post
Share on other sites
Quote:
Original post by swiftcoder
Quote:
Original post by fang
I didn't intend to discuss camera technicalities here, but I guess 90 degrees wide angle camera is not something available to everyone, right? so what should I do to create images for my cube map? is this indeed only available to professional camera owners, or am I just being stupid and missing some basic concepts? Thanks a lot for pointing out for me :)
If you happen to have a camera with interchangeable lenses, then a wide angle lens shouldn't be hard to find. If not, then your best bet may be to stitch together multiple images - although this is pretty labour intensive


Unfortunately I'm the latter. would you please explain in a little more detail how do I stitch together multiple images? for example I can imagine taking a picture to the front, and then another picture at 45 degrees to the left, right, up and down etc, and then put them together into the texture for the front face of the cube, but because these pictures are taken at different directions, their angles won't meet -- you see what I'm saying?

Share this post


Link to post
Share on other sites
Quote:
Original post by fang
Unfortunately I'm the latter. would you please explain in a little more detail how do I stitch together multiple images? for example I can imagine taking a picture to the front, and then another picture at 45 degrees to the left, right, up and down etc, and then put them together into the texture for the front face of the cube, but because these pictures are taken at different directions, their angles won't meet -- you see what I'm saying?
Ja, it is tricky. I imagine that there is probably some software hanging around for this, or you might be able to repurpose one of those 3D-panorama applications.

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