The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
sdl and gl stereo
Vittorio G.
Guest

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
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
sdl and gl stereo
Bob


Joined: 19 Sep 2009
Posts: 185
On Thu, Jul 1, 2010 at 3:53 PM, Vittorio G. wrote:
Quote:
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

Quote:
thanks
Vittorio
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org




--
+-----------------------------------------------------------
+ Bob Pendleton: writer and programmer
+ email:
+ web: www.TheGrumpyProgrammer.com
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
sdl and gl stereo
Vittorio G.
Guest

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
Vittorio

On Fri, Jul 2, 2010 at 5:30 AM, Bob Pendleton wrote:
Quote:
On Thu, Jul 1, 2010 at 3:53 PM, Vittorio G. wrote:
Quote:
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

Quote:
thanks
Vittorio
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org




--
+-----------------------------------------------------------
+ Bob Pendleton: writer and programmer
+ email:
+ web: www.TheGrumpyProgrammer.com
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
sdl and gl stereo
Alberto Luaces
Guest

"Vittorio G." writes:

Quote:
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

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
sdl and gl stereo
Jonny D


Joined: 12 Sep 2009
Posts: 932
That's a lot of good info in that link.  Have you seen SDL_GL_STEREO?http://sdl.beuc.net/sdl.wiki/SDL_GLattr


[/url]Jonny D


On Fri, Jul 2, 2010 at 3:57 AM, Alberto Luaces wrote:
Quote:
"Vittorio G." writes:

Quote:
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:

[url=http://local.wasp.uwa.edu.au/~pbourke/miscellaneous/stereographics/stereorender/]http://local.wasp.uwa.edu.au/~pbourke/miscellaneous/stereographics/stereorender/

It explains the theory behind stereo rendering.

--
Alberto


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


sdl and gl stereo
Alberto Luaces
Guest

Jonathan Dearborn writes:

Quote:
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

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
sdl and gl stereo
Vittorio G.
Guest

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

On Fri, Jul 2, 2010 at 4:11 PM, Alberto Luaces wrote:
Quote:
Jonathan Dearborn writes:

Quote:
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

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
sdl and gl stereo
Bob


Joined: 19 Sep 2009
Posts: 185
On Fri, Jul 2, 2010 at 9:39 AM, Vittorio G. wrote:
Quote:
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

On Fri, Jul 2, 2010 at 4:11 PM, Alberto Luaces wrote:
Quote:
Jonathan Dearborn writes:

Quote:
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 Pendleton


Quote:
Quote:

--
Alberto

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org




--
+-----------------------------------------------------------
+ Bob Pendleton: writer and programmer
+ email:
+ web: www.TheGrumpyProgrammer.com
_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org