UV mapping latlong map to a box?


#1

As title described,is it possible to uvmapping a box shaped geometry with a latlong map and result
in equivalent cubemap effect?

My situation is that the panorama video is in latlong map format, and I need to implement
skybox with the panorama video.

Thanks,
Leon


#2

Should be pretty straight forward doing the following.

  1. Convert the LatLong footage into a cubemap. For example with Nuke (CaraVR).
    . Render in the maximum resolution.

  2. Create the UV Layout of your box based on the cubemap.
    . Assign cubemap texture to box.

Now, the box should have your LatLong footage as a texture.


#3

Test reply is me.


#4

Thanks for reply.

>Convert the LatLong footage into a cubemap
My problem is that my latlong map is not only one, it’s a panorama video,
and almost impossible to convert every frame to cube map in run time, so that’s
why I want do uv mapping on box to match latlong map.


#5

But you can convert a panorama (latlong) video into a cubemap video.
I think it is more precise than to figure out a way to make a spherical uv working on a cube.


#6

>But you can convert a panorama (latlong) video into a cubemap video

But the standard internet resources use latlong, and I’m working on a VOD system
which all videos are from server, it’s not a adaptable solution for my current project.

Thanks.


#7

Alright, understood, so still want to use LatLong Footage, but on a cube.

I just tested it. Actually, if you have a cube with enough subdivisions, you are able to apply a spherical UV to it and the footage would look the same. I used 3dsmax to test, you need more subdivisions to get rid off the mapping artifacts, especially at the poles.