Sdl and gl stereo

Hello,
i was trying to implement stereoscopic view of a game and i found out
that gl supports natively activating a visual stereo mode.
However it uses GLUT; can both sdl and glut cohexist in the same application?
Is there a particular way to drive the gl stereo view from just sdl code?

thanks
Vittorio

Hello,
i was trying to implement stereoscopic view of a game and i found out
that gl supports natively activating a visual stereo mode.
However it uses GLUT; can both sdl and glut cohexist in the same application?
Is there a particular way to drive the gl stereo view from just sdl code?

OpenGL does not require the use of GLUT EVER. GLUT is a utility
library written on top of OpenGL, OS dependent code such as wgl and
glx, and the native OS.

You can do stereo under SDL with out GLUT.

Bob PendletonOn Thu, Jul 1, 2010 at 3:53 PM, Vittorio G. <vitto.giova at yahoo.it> wrote:

thanks
Vittorio


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


±----------------------------------------------------------

thanks for your reply, but, hum, how do you do that?
my application uses opengl+sdl and the only examples i found always
used glut or non portable apis
do you know any tutorial or additional documentation (besides FAQ
8.110) that could help me?
Thanks
VittorioOn Fri, Jul 2, 2010 at 5:30 AM, Bob Pendleton wrote:

On Thu, Jul 1, 2010 at 3:53 PM, Vittorio G. <vitto.giova at yahoo.it> wrote:

Hello,
i was trying to implement stereoscopic view of a game and i found out
that gl supports natively activating a visual stereo mode.
However it uses GLUT; can both sdl and glut cohexist in the same application?
Is there a particular way to drive the gl stereo view from just sdl code?

OpenGL does not require the use of GLUT EVER. GLUT is a utility
library written on top of OpenGL, OS dependent code such as wgl and
glx, and the native OS.

You can do stereo under SDL with out GLUT.

Bob Pendleton

thanks
Vittorio


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


±----------------------------------------------------------


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

“Vittorio G.” writes:

thanks for your reply, but, hum, how do you do that?
my application uses opengl+sdl and the only examples i found always
used glut or non portable apis
do you know any tutorial or additional documentation (besides FAQ
8.110) that could help me?

Check this link:

http://local.wasp.uwa.edu.au/~pbourke/miscellaneous/stereographics/stereorender/

It explains the theory behind stereo rendering.–
Alberto

That’s a lot of good info in that link. Have you seen SDL_GL_STEREO?
http://sdl.beuc.net/sdl.wiki/SDL_GLattr

http://sdl.beuc.net/sdl.wiki/SDL_GLattrJonny DOn Fri, Jul 2, 2010 at 3:57 AM, Alberto Luaces wrote:

“Vittorio G.” writes:

thanks for your reply, but, hum, how do you do that?
my application uses opengl+sdl and the only examples i found always
used glut or non portable apis
do you know any tutorial or additional documentation (besides FAQ
8.110) that could help me?

Check this link:

http://local.wasp.uwa.edu.au/~pbourke/miscellaneous/stereographics/stereorender/

It explains the theory behind stereo rendering.


Alberto


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Jonathan Dearborn writes:

That’s a lot of good info in that link. ?Have you seen SDL_GL_STEREO?
http://sdl.beuc.net/sdl.wiki/SDL_GLattr

I think SDL_GL_STEREO is for quadbuffering, a stereo mode that it’s
rarely available (it’s present on high end cards like Quadro).–
Alberto

thanks for the link, that’s one of the examples i had in mind
if i got it correctly GL_STEREO in single buffer just enables an
additional buffer and renames the two buffers in FRONT_LEFT and
FRONT_RIGHT; if you use double buffering then this turns on quad
buffering (that’s only availallbe in a few card)

i’ll try to work something out of this
VittorioOn Fri, Jul 2, 2010 at 4:11 PM, Alberto Luaces wrote:

Jonathan Dearborn writes:

That’s a lot of good info in that link. ?Have you seen SDL_GL_STEREO?
http://sdl.beuc.net/sdl.wiki/SDL_GLattr

I think SDL_GL_STEREO is for quadbuffering, a stereo mode that it’s
rarely available (it’s present on high end cards like Quadro).


Alberto


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

thanks for the link, that’s one of the examples i had in mind
if i got it correctly GL_STEREO in single buffer just enables an
additional buffer and renames the two buffers in FRONT_LEFT and
FRONT_RIGHT; if you use double buffering then this turns on quad
buffering (that’s only availallbe in a few card)

i’ll try to work something out of this
Vittorio

Jonathan Dearborn writes:

That’s a lot of good info in that link. ?Have you seen SDL_GL_STEREO?
http://sdl.beuc.net/sdl.wiki/SDL_GLattr

I think SDL_GL_STEREO is for quadbuffering, a stereo mode that it’s
rarely available (it’s present on high end cards like Quadro).

Before you do that you should first figure out how you are going to
display the stereo images. Do you have a stereo display screen? Do you
have shutter glasses? How are you going to do that? You can’t just put
it on the screen and see stereo.

Bob PendletonOn Fri, Jul 2, 2010 at 9:39 AM, Vittorio G. <vitto.giova at yahoo.it> wrote:

On Fri, Jul 2, 2010 at 4:11 PM, Alberto Luaces wrote:


Alberto


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


±----------------------------------------------------------