tags:

views:

75

answers:

4

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

A: 

http://www.opengl.org/code/category/C22

And

http://nehe.gamedev.net/

Muggen
Read the question again, and blame the media for calling 3d screens 3d.
Blam
Oh... I see now...
Muggen
Yeah, OP wants to program in 3D and see in 3D.
AndiDog
+4  A: 

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

AndiDog
More in-depth view on stereoscopic rendering http://developer.download.nvidia.com/whitepapers/2010/NVIDIA%203D%20Vision%20Automatic.pdf (not just specific to nvidia's technology)
Blam
@Blam: Great paper on the topic. Although it doesn't say to not buy those nvidia glasses that flicker like a TV from 1950.
AndiDog
That will only work if your card is an *Nvidia Quadro*. See my answer...
tibur
A: 

Google for "Opengl stereo 3d" and/or quadbuffer.

IUsedToBeAPygmy
A: 

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.

tibur