Jump to content
  • Advertisement
Sign in to follow this  
muimui1911

stereo effect in openGL

This topic is 4851 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

is glDrawBuffer(GL_LEFT) and glDrawBuffer(GL_RIGHT) the right command i should use if i wanna create a stereoscopic effect? thanks alot

Share this post


Link to post
Share on other sites
Advertisement
A site fuond with a quick look on Google told me to use

glDrawBuffer(GL_BACK_LEFT);
glDrawBuffer(GL_BACK_RIGHT);

I have no personal experience with it, though.

Share this post


Link to post
Share on other sites
Hello,

There is several ways for doing stereo rendering:

Anaglyph: Rendering left and right images with differents colors like red and blue.
Active: The images are displayed anternate left and right on the screen.
Passive: Separate left and right images are displayed simultaneously on the screen.

You can use glDrawBuffer(); with GL_LEFT (Front left color buffer) and GL_RIGHT (Front right color buffer) to produce stereo rendering. The GL_BACK_LEFT and GL_BACK_RIGHT are for drawing to the back buffer. You can draw to back buffer in order to avoid rendering artifacts.



Share this post


Link to post
Share on other sites
millions of thanks, but I dun need to display it in different color, the two images should look the same except left image is for left eye and the right image for right eye.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!