Converting a cube map to a equirectangular panorama.

Hey all,

Trying to do something a little interesting here, any help or guidance would be super appreciated!

I am attempting to take a vertical cross cube map and convert it into an equirectangular panorama (like a flattened world map) using a GLSL shader.

I’ve gotten close using the cube to fisheye component shared on these forums but the math for equirectangular panoramas escapes me. Through my internet searches it turns out not many people try to do this particular conversion.

The closest I’ve come to finding some guidance is here: stackoverflow.com/questions/1150 … -algorithm

Any tips?

Thanks!

  • E

Dont know if it helps but have a look at Andrew Hazeldens blog, he has a Photoshop script for this: andrewhazelden.com/blog/2012 … ions-pack/

Thanks for the link!

Found this: paulbourke.net//geometry/transfo … l#cube2cyl

Having a hard time implementing it in GLSL as my coding skills are pretty weak. So close but so far! :confused:

I’ll be happy to answer any GLSL questions you have. Fire away!

Hey Evan, did you ever figure this out?

Hello
Im not a programmer and would love to modify this shader so finally is possible to render also equirectangular images (panoramic) … im testing some 360 degree footage and doing some easy compositing…but the idea to use inside Td would be awesome…thanks alot
can someone give some help ?

Builds 32540 or later will have a new Project TOP that can do this.

Hey, sorry for the super late reply. Yes in the end I was able to contact the person that wrote the original cube to fisheye shader and commission them to adapt it to what I needed.

I’m attaching the touch build to this post, it’s a bit old but you should still be able to grab the shader out of it.

Cheers!
cube_to_rectsphere.toe (2.52 MB)