开发者

How to program 3D in OpenGL [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.

Want to improve this question? Update the question so it focuses on one problem only by editing this post.

Closed 7 years ago.

开发者_Python百科 Improve this question

I want to program in OpenGL in 3D (have a special screen and glasses).

What do I have to do for that?

(options, code, ..?)


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


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


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜