Linux opengl

i?ve still got a voodoo2 board and just got it to work under linux. I?m
currently writing an openGL application and want to use my board for
accelerated fullscreen ouput, but it seems i?m unable to activate the
voodoo2 using SDL. i?m initializing the video mode using
SDL_SetVideoMode(640,480,16, SDL_OPENGL | SDL_FULLSCREEN); but that
leaves me with the slow performance of my primary video card.
has anyone ever tried a voodoo2 with SDL and linux?

thx in advance

eik

SDL_SetVideoMode(w, h, 16, SDL_OPENGL | SDL_FULLSCREEN) should work fine,
at least it does on my voodoo graphics (voodoo 1?) and friends voodoo 2…
Have you installed/compiled the GL libraries with glide support? - or, are
the GL libraries from XFree4 being used instead of the ones which use
glide? (I had this problem, use ldd to see which libs are being used).

another thing to try is doing an “export MESA_GLX_FX=f” before running
your app to tell Mesa to use fullscreen mode - thats assuming you are
using MesaGL :)On Fri, 2 Mar 2001, Eike Umlauf wrote:

i4ve still got a voodoo2 board and just got it to work under linux. I4m
currently writing an openGL application and want to use my board for
accelerated fullscreen ouput, but it seems i4m unable to activate the
voodoo2 using SDL. i4m initializing the video mode using
SDL_SetVideoMode(640,480,16, SDL_OPENGL | SDL_FULLSCREEN); but that
leaves me with the slow performance of my primary video card.
has anyone ever tried a voodoo2 with SDL and linux?


Adam
@af7567_at_bris.ac.uk
adamf at one2one.net
adamf at snika.uklinux.net

i?ve installed the voodoo2 drivers properly (i think ;), as the test programs
delivered with the drivers work fine. i suppose the XFree4 libs are used
instead of the glide. being a bit of a linux beginner, i?ve got no idea how
to handle ldd or how to bind / link the proper libs. could you give me any
support here please?

eik> SDL_SetVideoMode(w, h, 16, SDL_OPENGL | SDL_FULLSCREEN) should work fine,

at least it does on my voodoo graphics (voodoo 1?) and friends voodoo 2…
Have you installed/compiled the GL libraries with glide support? - or, are
the GL libraries from XFree4 being used instead of the ones which use
glide? (I had this problem, use ldd to see which libs are being used).

another thing to try is doing an “export MESA_GLX_FX=f” before running
your app to tell Mesa to use fullscreen mode - thats assuming you are
using MesaGL :slight_smile:

On Fri, 2 Mar 2001, Eike Umlauf wrote:

i4ve still got a voodoo2 board and just got it to work under linux. I4m
currently writing an openGL application and want to use my board for
accelerated fullscreen ouput, but it seems i4m unable to activate the
voodoo2 using SDL. i4m initializing the video mode using
SDL_SetVideoMode(640,480,16, SDL_OPENGL | SDL_FULLSCREEN); but that
leaves me with the slow performance of my primary video card.
has anyone ever tried a voodoo2 with SDL and linux?


Adam
af7567 at bris.ac.uk
adamf at one2one.net
adamf at snika.uklinux.net

My Voodoo 2 works fine under SDL, but it wasnt always that way…

The way that the Voodoo 2 works is a bit strange (both in the hardware and the
software) so getting it to run right in /all/ apps can be a bit of a bear. I
would wager that the problems you are having have more to do with your Voodoo 2
setup than with SDL.

It’s been a /really/ long time since I got my Voodoo 2 working completely under
Linux, so I really cannot tell you a very detailed way of doing this. Instead,
I can direct you to some online recourses I know I used:

http://www.linuxdoc.org/HOWTO/3Dfx-HOWTO.html
- Of course, the 3Dfx how-to is a big help. Be sure to read the section
on OpenGL/Mesa, as that’s what typically throws people:
http://www.linuxdoc.org/HOWTO/3Dfx-HOWTO-9.html

http://www.linuxdoc.org/HOWTO/Quake-HOWTO.html
- Honestly, the Quake how-to is another great source for this info.

http://mesa3d.sourceforge.net/
- Of course, Mesa3D is another great source, but pay particular
attention to the Voodoo specific docs:
http://www-hmw.caribel.pisa.it/fxmesa/index.shtml

Chances are, you will have to recompile Mesa from source to make it work
correctly with your card, but you may get lucky and find a package for your
system (DEB or RPM) which has Voodoo 2 support already in there. Try the Mesa
demos, and make sure you get them to work with full hardware acceleration.

Other than that, if you have any questions, feel free to contact me (it would
probably be best to keep this off the SDL mailing list as it is more likely a
Mesa install/configuration issue than SDL).

i?ve installed the voodoo2 drivers properly (i think ;), as the test programs
delivered with the drivers work fine. i suppose the XFree4 libs are used
instead of the glide. being a bit of a linux beginner, i?ve got no idea how
to handle ldd or how to bind / link the proper libs. could you give me any
support here please?

eik

BTW, this is some great advice as well.On Sat, 03 Mar 2001, you wrote:

SDL_SetVideoMode(w, h, 16, SDL_OPENGL | SDL_FULLSCREEN) should work fine,
at least it does on my voodoo graphics (voodoo 1?) and friends voodoo 2…
Have you installed/compiled the GL libraries with glide support? - or, are
the GL libraries from XFree4 being used instead of the ones which use
glide? (I had this problem, use ldd to see which libs are being used).

another thing to try is doing an “export MESA_GLX_FX=f” before running
your app to tell Mesa to use fullscreen mode - thats assuming you are
using MesaGL :slight_smile:


Sam “Criswell” Hart <@Sam_Hart> AIM, Yahoo!:
Homepage: < http://www.geekcomix.com/snh/ >
PGP Info: < http://www.geekcomix.com/snh/contact/ >
Advogato: < http://advogato.org/person/criswell/ >