Forum Discussion
dargouder
10 years agoHonored Guest
Stereo Spherical Image Viewer
Using a my renderer I have generated 2 spherical images of the 3D scene, one for the left eye and one for the right. The next step I wish to do is code something to take these 2 spherical images, map them to left and right camera of the rift and rotate my head so as to rotate my head and view the precomputed images. No extra rendering is required just view the images.
After looking at the programming guide and existing samples and it seems like I can bind the images as textures to the respective cameras but I am not sure if this is the correct way to go about it.
I am looking for any tips and advice as to where to start,
After looking at the programming guide and existing samples and it seems like I can bind the images as textures to the respective cameras but I am not sure if this is the correct way to go about it.
I am looking for any tips and advice as to where to start,
1 Reply
- geekmasterProtege
"dargouder" wrote:
Using a my renderer I have generated 2 spherical images of the 3D scene, one for the left eye and one for the right. The next step I wish to do is code something to take these 2 spherical images, map them to left and right camera of the rift and rotate my head so as to rotate my head and view the precomputed images. No extra rendering is required just view the images.
After looking at the programming guide and existing samples and it seems like I can bind the images as textures to the respective cameras but I am not sure if this is the correct way to go about it.
I am looking for any tips and advice as to where to start,
I used a pair of cubemaps, one for each eye. Then I used a simple pixel shader to decide which side of the (DK1) screen the pixel belonged to, to select the left or right cubemap. I also used a simple vertex shader to model a pair of intersected spheres for lens distortion correction, which worked surprisingly well. I was considering using nested RGB spheres to perform CA correction, but after a few experiments I deferred that for later.
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago