hello i want to program in open gl in 3D (have a special screen and glasses)
what do i have to do for that?
(options, code, ..?)
thanks
hello i want to program in open gl in 3D (have a special screen and glasses)
what do i have to do for that?
(options, code, ..?)
thanks
I can't really help you with own experience, but you should find some resources by searching the Internet for "stereoscopic opengl".
For example, the "Stereoscopic OpenGL Tutorial" on gali-3d.com recommends the following rendering procedure:
An OpenGL application with stereo capabilities must do following things:
1) Set the geometry for the view from left human eye
2) Set the left eye rendering buffers
3) Render the left eye image
4) Clear Z-buffer (if the same Z-buffer for left and right image is used)
5) Set the geometry for the view from right human eye
6) Set the right eye rendering buffers
7) Render the right eye image
8) Swap buffers
It depends on you graphic card: I suppose you have an Nvidia Geforce card. Sorry about that, but you won't be able to use Quad Buffers Stereo as explained by AndiDog. It is only possible if you have a professional card named Nvidia Quadro.
The only way to achieve stereo using a Geforce, is to use Direct3D. Either by letting the driver do the stereo for you or by rendering two buffers and presenting them in a weird way to Direct3D. This is explained in the slides The In and Out: Making Games Play Right with 3D Stereoscopic Technologies of GDC 2009.