UV mapping for stereo 180x180 videos...

Anything and everything that's related to OGRE or the wider graphics field that doesn't fit into the other forums.
Post Reply
User avatar
Zeal
Ogre Magi
Posts: 1260
Joined: Mon Aug 07, 2006 6:16 am
Location: Colorado Springs, CO USA

UV mapping for stereo 180x180 videos...

Post by Zeal »

Playing with VR video playback for 180x180 side by side videos like this one...

https://www.youtube.com/watch?v=VS79cj_-_aQ

Trying to figure out how these VR video players (whirligig, MaxVR, Virtual Desktop, etc...) render such videos in the 'side by side' 180x180 video format. It seems like they are projecting the video onto a half sphere/dome, but I can't quite visualize how the uvs are calculated.

My naive guess would be that the uvs are based on the pitch/yaw of each vertex from the camera (centered in the open position of the dome). So when you're looking straight 'into' the open half of the dome, a vertex directly infront of you (the top/center of the dome) would have a uv of (0.5, 0.5, or the center of the image), pitch the camera up 90 degrees and you'd be looking at a vertex uv of (0.5, 0, or the top center of the image).

Of course you would also have to offset the uvs depending on which side/eye (left or right) you're rendering.

Any ideas?
Post Reply