Fulldome 3D for Everyone - Part 2 / 5
The shader has a dome tilt parameter and a switch to enable automatic compensations. What happens when compensation is turned on, is that all the calculations are shifted and assume that the head of the viewer sits vertically, while the dome tilts.
This compensation is pretty effective, but remember that the tilt value might not be the actual tilt of the dome, but a combination between the dome, the reclined seat, and the headrest.
There is also a vertical mode switch. When that is selected, some parameters are ignored, and instead all the formulas change to automatically adjust for vertical domes, where the head stays vertical and the pinch areas at the top and bottom need a different type of correction.
The shader can generate images for one camera at a time. Your animation will have to be rendered twice, first for one eye, than for the other.
There is an option to use the Center camera. That means that no virtual point of views are created and the shader behaves like a traditional Angular Fisheye.The shader code is an evolution of Daniel Ott Angular Fisheye code, and the Center camera option is meant to keep compatibility.
The Center camera code adds a few optimizations to the original angular fisheye code to make it a bit faster and more efficient.
To test the shader I created a lot of still images and a few animations. I was able to test them simulating the domes on a dome simulator created in 3ds Max. The simulator was generating relaxed-eyed image pairs of what the viewer would see when looking at a specific area of the dome.
This simple simulator was able to verify that the technique and the math I developed were generating correct images also for tilted and vertical domes.
Real testing with animation was performed in a couple of opportunities. First on a 10 meters inflatable dome at Treasure Island, in the San Francisco bay. A big thank you to Timothy Childs for the opportunity and to let me see for the first time the result of weeks of work.
Later on, thanks to Aaron, I managed to get some time at the San Francisco Academy of Science planetarium. There I could check four test animations and verify that the dome tilt correction was working wonderfully. Another big thank you to Cheryl Vanderbilt, Kira Hammond, Michael Garza, Ryan Wyatt, Tim Horn, Tom Kennedy.
At that time Aaron Bradbury was already experimenting with the shader too. And since we used anaglyph glasses, he warned me that the red channel was quite dark.
In fact, two of my tests didn’t work well as the eye looking through the red filter could not see much.
But the two brighter tests were spectacular, with the 3D effect perfectly visible all over the dome, and with a surprisingly ability of the eyes to adapt when looking at the screen even with the head slightly tilted from the assumed position.
Open Source The project is now open source and available on GitHub.
Have you liked this post? Subscribe to FDDB Newsletter
Sign up now, it's free!