hi everyone
i am working on an opengl game in the sdl and i got problems:
everytime i use the opengl by the sdl i got strange graohic error or
even
black screens (for exapmple in SDLgears)
i alway thought this was an error in my open gl installation but i just
found
something out
I had problems with sdl (and opengl) and a response on the
opengl ng fixed it for me … sdl doesnt give a resize event
when it starts up and you need to do that for yourself .
Also , I was told that when a resize occurs then you need
to redo all your opengl stuff eg textures (not sure
about compiled lists ).
Hrmmmm, this is indeed odd.
Have you tried the NeHe’s Basecode for SDL? There may or may not be some
sort of issue with lesson 17 in particular (if there is, it’d probably be
prudent to contact NeHe), but I’ve never heard of any problems with the
Basecode.
Silicon> ----- Original Message -----
From: karlnapf_ger@gmx.de (Karl Napf)
To:
Sent: Sunday, December 28, 2003 9:36 AM
Subject: [SDL] strange opengl errors
hi everyone
i am working on an opengl game in the sdl and i got problems:
everytime i use the opengl by the sdl i got strange graohic error or
even
black screens (for exapmple in SDLgears)
i alway thought this was an error in my open gl installation but i just
found
something out
i expirienced the problem with an own opengl project which runs on
windows computers thats my main prob …i cant continue develope it.
i used the nehe tutorials to show that this problem is caused by the
sdl and not the opengl installation
and btw the nehe code is okay
the programm SDLgears also does NOT work
Am 28.12.2003 22:24:05 schrieb(en) John Silicon:> Hrmmmm, this is indeed odd.
Have you tried the NeHe’s Basecode for SDL? There may or may not be
some
sort of issue with lesson 17 in particular (if there is, it’d
probably
be
prudent to contact NeHe), but I’ve never heard of any problems with
the
Basecode.
Silicon
----- Original Message -----
From: “Karl Napf” <@Karl_Napf>
To:
Sent: Sunday, December 28, 2003 9:36 AM
Subject: [SDL] strange opengl errors
hi everyone
i am working on an opengl game in the sdl and i got problems:
everytime i use the opengl by the sdl i got strange graohic error
or
even
black screens (for exapmple in SDLgears)
i alway thought this was an error in my open gl installation but i
just
found
something out
what video card/ operating system are you guys on?
back when i had a voodoo 3 i had all sorts of problems w/ gl but it turns
out it was cause the driver for that card was faulty since the company no
longer existed! (:> ----- Original Message -----
From: karlnapf_ger@gmx.de (Karl Napf)
To:
Sent: Sunday, December 28, 2003 2:21 PM
Subject: Re: [SDL] strange opengl errors
i expirienced the problem with an own opengl project which runs on
windows computers thats my main prob …i cant continue develope it.
i used the nehe tutorials to show that this problem is caused by the
sdl and not the opengl installation
and btw the nehe code is okay
the programm SDLgears also does NOT work
Am 28.12.2003 22:24:05 schrieb(en) John Silicon:
Hrmmmm, this is indeed odd.
Have you tried the NeHe’s Basecode for SDL? There may or may not be
some
sort of issue with lesson 17 in particular (if there is, it’d
probably
be
prudent to contact NeHe), but I’ve never heard of any problems with
the
Basecode.
Silicon
----- Original Message -----
From: “Karl Napf” <karlnapf_ger at gmx.de>
To:
Sent: Sunday, December 28, 2003 9:36 AM
Subject: [SDL] strange opengl errors
hi everyone
i am working on an opengl game in the sdl and i got problems:
everytime i use the opengl by the sdl i got strange graohic error
or
even
black screens (for exapmple in SDLgears)
i alway thought this was an error in my open gl installation but i
just
found
something out
q3 works
ut works
this indicates that my drivers are okay
when i code an application with glkx extensions directly in x and
opengl everything works
when i use the4 sdl to use opengl i get the errors
i use a rivatnt and debian unstable /i386 linux 2-4-18
and the latest sdl version
Am 28.12.2003 23:37:06 schrieb(en) Alan Wolfe:> it could be your video card and/or drivers
what video card/ operating system are you guys on?
back when i had a voodoo 3 i had all sorts of problems w/ gl but it
turns
out it was cause the driver for that card was faulty since the
company
no
longer existed! (:
----- Original Message -----
From: “Karl Napf” <@Karl_Napf>
To:
Sent: Sunday, December 28, 2003 2:21 PM
Subject: Re: [SDL] strange opengl errors
i expirienced the problem with an own opengl project which runs on
windows computers thats my main prob …i cant continue develope it.
i used the nehe tutorials to show that this problem is caused by
the
sdl and not the opengl installation
and btw the nehe code is okay
the programm SDLgears also does NOT work
Am 28.12.2003 22:24:05 schrieb(en) John Silicon:
Hrmmmm, this is indeed odd.
Have you tried the NeHe’s Basecode for SDL? There may or may not
be
some
sort of issue with lesson 17 in particular (if there is, it’d
probably
be
prudent to contact NeHe), but I’ve never heard of any problems
with
the
Basecode.
Silicon
----- Original Message -----
From: “Karl Napf” <@Karl_Napf>
To:
Sent: Sunday, December 28, 2003 9:36 AM
Subject: [SDL] strange opengl errors
hi everyone
i am working on an opengl game in the sdl and i got problems:
everytime i use the opengl by the sdl i got strange graohic
error
or
even
black screens (for exapmple in SDLgears)
i alway thought this was an error in my open gl installation
but
i
Alan’s right here, it’s likely the video card drivers, but it could also be
something with the way you’re compiling.
If it happens with the SDLgears program aswell, it’s probably not just SDL’s
fault – I can get it to run on Windows (With VC++7 [.NET 2002 Standard
ed.], aswell as with MinGW+MSYS). Perhaps you could give more info on the
compiler (and version) your using, and, if it’s not compiler-embeded (and
your using one), what IDE you’re using. If you’re cross-compiling, what OS
& compiler are you compiling from?
wow wierd, you could always trace it into the SDL code if you really wanted
to (sorry dunno what it might be)> ----- Original Message -----
From: karlnapf_ger@gmx.de (Karl Napf)
To:
Sent: Sunday, December 28, 2003 4:13 PM
Subject: Re: [SDL] strange opengl errors
okay again:)
q3 works
ut works
this indicates that my drivers are okay
when i code an application with glkx extensions directly in x and
opengl everything works
when i use the4 sdl to use opengl i get the errors
i use a rivatnt and debian unstable /i386 linux 2-4-18
and the latest sdl version
Am 28.12.2003 23:37:06 schrieb(en) Alan Wolfe:
it could be your video card and/or drivers
what video card/ operating system are you guys on?
back when i had a voodoo 3 i had all sorts of problems w/ gl but it
turns
out it was cause the driver for that card was faulty since the
company
no
longer existed! (:
----- Original Message -----
From: “Karl Napf” <karlnapf_ger at gmx.de>
To:
Sent: Sunday, December 28, 2003 2:21 PM
Subject: Re: [SDL] strange opengl errors
i expirienced the problem with an own opengl project which runs on
windows computers thats my main prob …i cant continue develope it.
i used the nehe tutorials to show that this problem is caused by
the
sdl and not the opengl installation
and btw the nehe code is okay
the programm SDLgears also does NOT work
Am 28.12.2003 22:24:05 schrieb(en) John Silicon:
Hrmmmm, this is indeed odd.
Have you tried the NeHe’s Basecode for SDL? There may or may not
be
some
sort of issue with lesson 17 in particular (if there is, it’d
probably
be
prudent to contact NeHe), but I’ve never heard of any problems
with
the
Basecode.
Silicon
----- Original Message -----
From: “Karl Napf” <karlnapf_ger at gmx.de>
To:
Sent: Sunday, December 28, 2003 9:36 AM
Subject: [SDL] strange opengl errors
hi everyone
i am working on an opengl game in the sdl and i got problems:
everytime i use the opengl by the sdl i got strange graohic
error
or
even
black screens (for exapmple in SDLgears)
i alway thought this was an error in my open gl installation
but
i
okay …
i use g++ or gcc for compiling they give both the errors in verison 3.x
and 2.9x
no ide
and i put this link to the nehe tutorial to this list because there is
an implementation in glx and in sdl …the sdl does not work but the
glx
Am 29.12.2003 01:23:15 schrieb(en) John Silicon:> Alan’s right here, it’s likely the video card drivers, but it could
also be
something with the way you’re compiling.
If it happens with the SDLgears program aswell, it’s probably not
just
SDL’s
fault – I can get it to run on Windows (With VC++7 [.NET 2002
Standard
ed.], aswell as with MinGW+MSYS). Perhaps you could give more info
on
the
compiler (and version) your using, and, if it’s not compiler-embeded
(and
your using one), what IDE you’re using. If you’re cross-compiling,
what OS
& compiler are you compiling from?
well i am not quite sure , this is my output of ‘locate libGL’
Yep, it looks like you have both the Mesa and NVidia GL libraries installed.
Try removing both (ignore dependencies) and then re-install the NVidia drivers.
See ya!
-Sam Lantinga, Software Engineer, Blizzard Entertainment
I'm currently working on some tools that I want to make
cross-plateform. However, MacOS X is giving me a hard time.
I'm manually loading a bitmap image (my own library) and drawing the
pixels using the Draw Pixel function I found on http://www.libsdl.org/intro/usingvideo.html . I’m creating my surface
using the code I found in the documentation at http://sdldoc.csn.ul.ie/sdlcreatergbsurface.php . If I try to blit my
new surface on my main surface and I flip, I have no problem on Windows
or Linux. However, on MacOs X, all I get is a blank screen.
If I manually load the bitmap and draw every pixel individually, I
get a perfect image on all three OS. This leads me to believe my code to
load the image is ok and it is the code to create the surface which is
at fault. However, I was having problems with SDL_LoadBMP http://sdldoc.csn.ul.ie/sdlloadbmp.php way before I tried all of this.
BTW, I know that I’m being very vague describing the problem.
My question is, is there any special I should watch out of when
porting code to MacOS? Could my blank screen be caused by some
little/big endian wierdness? Does blitsurface work differently on MacOS?
And finally, should I simply rewrite my own blitter?