A quick guess is that you may be using non-power-of-two texture sizes and the driver may not support these with full flexibility.
A few examples:
53x20 - not power of 2.
64x32 - power of 2.
320x240 - not power of 2.
512x256 - power of 2.
If this is the problem, and you wish to use these sizes you may have to scale up the images (or pad them with blank space) to make them hardware compatible, this does require adjusting texcoords if
you pad them.
Of course it could be something else.
I recommend making a macro like:
#define CHECKGLERROR do{int err = glGetError();if (err) printf(“%s:%i: glGetError() = %i\n”, FILE, LINE, err);}while(0)
You can then sprinkle calls to this macro all over the place, like after every gl call you suspect may be a problem, and see if it prints something about it.
Obviously you may need to use something other than printf to make it work on Windows, I just mention this an example.
A slight upgrade is to call your print print function that takes the err enum and prints a textual version instead (so you see GL_INVALID_OPERATION or similar instead of a number).
You may also be able to use an off-the-shelf OpenGL debugger.On 12/15/2011 01:07 AM, VernJensen wrote:
I’m close to releasing my game for Windows:
www.actionsoft.com/files/mmhd/MMInstal.exe http://www.actionsoft.com/files/mmhd/MMInstal.exe
However, tested on my sister’s computer earlier tonight and it fails pretty bad. Almost all the graphics show up as pure white when run on her machine, except for the “ghoul hand” on the title screen
and the game’s version number. I’m not sure why those two pieces draw correctly, and the rest doesn’t.
Curious if I should just write this off as “old hardware” issue, or if there are any suggestions what I might look into? The game uses OpenGL and SDL 1.3. My sister’s computer is fairly old (Intel
Atom processor, 1.6 ghz, built-in Intel graphics chipset) and it supports OpenGL 1.4. Drivers are current from Intel.
Also, if anyone else can test the link above and post if it works or not for you, I’d be much grateful! Would be happy to contribute registration codes for Episode 1 (the first half of the game) in
return. (Just email me directly at vern AT actionsoft dot com.)
-Vern
SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
–
LordHavoc
Author of DarkPlaces Quake1 engine - LadyHavoc's DarkPlaces Quake Modification
Co-designer of Nexuiz - Nexuiz Classic – Alientrap
“War does not prove who is right, it proves who is left.” - Unknown
“Any sufficiently advanced technology is indistinguishable from a rigged demo.” - James Klass
“A game is a series of interesting choices.” - Sid Meier