Anybody know a program that will easily let me convert a 2d photograph or image file into a cubemap? I've searched for ages but can't find anything that isn't a programming tool. I would normally just capture the image from the scene in engine but this time I wan't to experiment with creating my own.
Thanks in advance!
Replies
(eg. http://www.krupps.com/Gazing_Balls/0_0_25_3_MM10_3_3)
It's not the same as a cube map, but can be useful for similar purposes.
http://www.outerspace-software.com/bixorama.html#examples
You might look at Quicktime-VR authoring software. QTVR seems to be the same idea as what you're after. (Environment maps from photos.)
http://www.apple.com/quicktime/resources/tools/qtvr.html
The "photo" source was just going to be one of the default skyline pictures from the MAX "reflections" directory as a test, but this got me thinking about how you would go about creating any cubemap without capturing it from a scene. Just any simple landscape picture really - no panoramic camera or shiny chrom ball needed - the easier the better really- say something like this as an example...
You'll have to paint out a ton of seams to get this to work as a cubemap.
http://ati.amd.com/developer/cubemapgen/index.html
The photo contains back-lit hills and trees... so the opposite side of your cube needs reddish front-lit hills and trees, and the adjacent sides need side-lit hills and trees.
If you wrap back-lit trees around your whole cube, it's going to look like some sort of otherworldly hellscape.
I did it many times already, it's actually quite fun to mess with! Especially to simulate studio/lightbox environments and such.
Also about hand painting cubemaps - switching back and forth between cube and cyclo mapping using a conversion program makes the job much easier (cube for easier to paint ground and sky planes, and cylindrical to get the genral feel and horizon line). I saw it done countless times where I used to work before. The matte painter was freely painting the cubemaps that way, compositing 3d renders, pictures, and handpainted bits. Stunning result I must say! But yeah definitely not mathematically accurate, and it requires an artists hand for sure.
Pior - do you know what program your matte painting guy used to switch between cube and cyclo mapping as that sounds like a great way to go about business.
On my travels I found this little freeware program http://www.skypaint.com - not the best but you can't grumble for free! You can import a 2d image and set it as a cubemap, rotate to where there are any visible seams in the viewer, drop the view into Photoshop, paint and then save out back into the viewer - a la Zapplink or somesuch. You can then export the whole thing into six seperate textures ready to be imported into your cubemap texture in editor or whatever. Might be of interest to anybody else looking along these lines.
Hdrshop is great for converting to latlong/cyclo format, except it's not free for commercial work. Also skypaint is great, shareware though not freeware. Cool for students or hobbyists though.
If you have max already, it's pretty good for converting. Just put your map in the env bkg slot (reflect/refract map = cube, bitmap set to sphere coords = cyclo, etc.) then for a cyclorama go to Rendering menu and choose Panorama Exporter. Or for a six-bitmap cube make another reflect/refract and use it to render with. Max doesn't do a good job of making DDS cubes though, so I use Cubemapgen like Brice.
Ryan thanks for the bixorama link, worth a look.