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 wanted to try out lesson17 of the NeHe tutorials
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=17

the sdl port of it
(http://nehe.gamedev.net/data/lessons/linuxsdl/lesson17.tar.gz) does
not work
(same errors as always with opengl)

BUT the glx port of it
(http://nehe.gamedev.net/data/lessons/linuxglx/lesson17.tar.gz) works
perfectly
so …this is a sdl based error

the strange point is that for example ut and q3 are working perfectly

i have a riva tnt with lates drivers from nvidia and also the latest
sdl

i have not found a single person who had the same error yet and this
sucks…
anybody got suggestions?

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 ).

Hope you fix it soon,

Steve Houseman–

currently : | for strace, an annotator see -
@steve_houseman | http://www.houseman.demon.co.uk/

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 wanted to try out lesson17 of the NeHe tutorials
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=17

the sdl port of it
(http://nehe.gamedev.net/data/lessons/linuxsdl/lesson17.tar.gz) does
not work
(same errors as always with opengl)

BUT the glx port of it
(http://nehe.gamedev.net/data/lessons/linuxglx/lesson17.tar.gz) works
perfectly
so …this is a sdl based error

the strange point is that for example ut and q3 are working perfectly

i have a riva tnt with lates drivers from nvidia and also the latest
sdl

i have not found a single person who had the same error yet and this
sucks…
anybody got suggestions?


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

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

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

i wanted to try out lesson17 of the NeHe tutorials
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=17

the sdl port of it
(http://nehe.gamedev.net/data/lessons/linuxsdl/lesson17.tar.gz)
does
not work
(same errors as always with opengl)

BUT the glx port of it
(http://nehe.gamedev.net/data/lessons/linuxglx/lesson17.tar.gz)
works
perfectly
so …this is a sdl based error

the strange point is that for example ut and q3 are working
perfectly

i have a riva tnt with lates drivers from nvidia and also the
latest
sdl

i have not found a single person who had the same error yet and
this
sucks…
anybody got suggestions?


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

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

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

i wanted to try out lesson17 of the NeHe tutorials
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=17

the sdl port of it
(http://nehe.gamedev.net/data/lessons/linuxsdl/lesson17.tar.gz)
does
not work
(same errors as always with opengl)

BUT the glx port of it
(http://nehe.gamedev.net/data/lessons/linuxglx/lesson17.tar.gz)
works
perfectly
so …this is a sdl based error

the strange point is that for example ut and q3 are working
perfectly

i have a riva tnt with lates drivers from nvidia and also the
latest
sdl

i have not found a single person who had the same error yet and
this
sucks…
anybody got suggestions?


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

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” <@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 :slight_smile:

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

i wanted to try out lesson17 of the NeHe tutorials
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=17

the sdl port of it
(http://nehe.gamedev.net/data/lessons/linuxsdl/lesson17.tar.gz)
does
not work
(same errors as always with opengl)

BUT the glx port of it
(http://nehe.gamedev.net/data/lessons/linuxglx/lesson17.tar.gz)
works
perfectly
so …this is a sdl based error

the strange point is that for example ut and q3 are working
perfectly

i have a riva tnt with lates drivers from nvidia and also the
latest
sdl

i have not found a single person who had the same error yet and
this
sucks…
anybody got suggestions?


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

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?

  • Silicon

=head1 GEEKCODE

Version: 3.12
GCS d- s+:+ a— C++++ P++++ L++ E- W+++ N+++ o K- w+++ O- M+ V-- PS+++ PE-
Y
PGP-- t+++ 5-- X++ R+++ tv++ b++ DI+++ D++ G+ e h* r%>+

=cut JAPH

$=“aa4e0a827b14150960910ca0305691”;$=
unpack(“b*”,pack(“H*”,$));s/([01]{5})/
pack(“b*”,$1)/gex;$
=join(’’,map{chr(
ord($_)+96)}split’’);s/`/ /gx;print;

=head1 AUTHOR

Alex Lyman (“Silicon”) is a starving, unemployed webdeveloper.
If you have food and/or a website that needs doing, please,
think of Alex.

=cut

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

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

i wanted to try out lesson17 of the NeHe tutorials
http://nehe.gamedev.net/data/lessons/lesson.asp?lesson=17

the sdl port of it
(http://nehe.gamedev.net/data/lessons/linuxsdl/lesson17.tar.gz)
does
not work
(same errors as always with opengl)

BUT the glx port of it
(http://nehe.gamedev.net/data/lessons/linuxglx/lesson17.tar.gz)
works
perfectly
so …this is a sdl based error

the strange point is that for example ut and q3 are working
perfectly

i have a riva tnt with lates drivers from nvidia and also the
latest
sdl

i have not found a single person who had the same error yet and
this
sucks…
anybody got suggestions?


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

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

here are thi links again
the sdl port of it
(http://nehe.gamedev.net/data/lessons/linuxsdl/lesson17.tar.gz) does
not work
(same errors as always with opengl)

BUT the glx port of it
(http://nehe.gamedev.net/data/lessons/linuxglx/lesson17.tar.gz) works
perfectly
so …this is a sdl based error

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?

  • Silicon

=head1 GEEKCODE

Version: 3.12
GCS d- s+:+ a— C++++ P++++ L++ E- W+++ N+++ o K- w+++ O- M+ V–
PS+++ PE-
Y
PGP-- t+++ 5-- X++ R+++ tv++ b++ DI+++ D++ G+ e h* r%>+

=cut JAPH

$=“aa4e0a827b14150960910ca0305691”;$=
unpack(“b*”,pack(“H*”,$));s/([01]{5})/
pack(“b*”,$1)/gex;$
=join(’’,map{chr(
ord($_)+96)}split’’);s/`/ /gx;print;

=head1 AUTHOR

Alex Lyman (“Silicon”) is a starving, unemployed webdeveloper.
If you have food and/or a website that needs doing, please,
think of Alex.

=cut


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

Do you have multiple versions of libGL* installed?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment

well i am not quite sure , this is my output of ‘locate libGL’

/usr/lib/libGL.a
/usr/lib/libGLcore.so.1
/usr/lib/libGLcore.so.1.0.4496
/usr/lib/libGL.so
/usr/lib/libGL.so.1
/usr/lib/libGL.so.1.0.4496
/usr/lib/libGLU.a
/usr/lib/libGLU.so
/usr/lib/libGLU.so.1
/usr/lib/libGLU.so.1.3
/usr/lib/nvidia/libGLcore.so.1.0.4496
/usr/lib/nvidia/libGL.so.1.0.4496
/usr/lib/nvidia/libGL.so.1.2.xlibmesa
/usr/lib/nvidia/libGL.so.1.xlibmesa
/usr/lib/transgaming_winex3/winex/lib/libGLU.so
/usr/lib/transgaming_winex3/winex/lib/libGLU.so.1
/usr/lib/transgaming_winex3/winex/lib/libGLU.so.1.3.030501
/usr/share/doc/xspecs/libGL.txt.gz
/usr/X11R6/lib/libGL.a
/usr/X11R6/lib/libGL.so
/usr/X11R6/lib/libGLU.a
/usr/X11R6/lib/libGLU.so
/usr/X11R6/lib/libGLU.so.1
/usr/X11R6/lib/libGLU.so.1.3
/usr/X11R6/lib/libGLw.a
/usr/X11R6/lib/nvidia/libGLcore.a.xlibmesa
/usr/X11R6/lib/nvidia/libGL.so.1.2.xlibmesa
/usr/X11R6/lib/nvidia/libGL.so.1.xlibmesa

Am 29.12.2003 07:01:59 schrieb(en) Sam Lantinga:> Do you have multiple versions of libGL* installed?

See ya,
-Sam Lantinga, Software Engineer, Blizzard Entertainment


SDL mailing list
SDL at libsdl.org
http://www.libsdl.org/mailman/listinfo/sdl

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

Hi,

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?

Thanks