Graphics Problems - more info

Hello,
No answer came thru on the previous question, but maybe I can be a
little more specific now that I’ve played with it a bit: The
implementation of SDL for video and joystick use with OpenGL seems to
mess up the lighting and materials settings for OpenGL. When I turn off
the init for SDL video then I get my diffuse light with shadowing. However, there
is no shadowing, just a flat lighting based on the surface color when
SDL is initialized. Any ideas?
Thanks,
Barry

Hello,
No answer came thru on the previous question, but maybe I can be a
little more specific now that I’ve played with it a bit: The
implementation of SDL for video and joystick use with OpenGL seems to
mess up the lighting and materials settings for OpenGL. When I turn off
the init for SDL video then I get my diffuse light with shadowing. However, there
is no shadowing, just a flat lighting based on the surface color when
SDL is initialized. Any ideas?

Have you poked through the SDL GL initialization?
You might check out how the GL context properties are set for your platform
(which is what?)
Also make sure that you’re not using SDL_OPENGLBLIT, as that may affect the
GL context attributes, although it’s supposed to save and restore the state.

See ya,
-Sam Lantinga, Lead Programmer, Loki Software, Inc.