View Full Version : Textures unaffected by object lighting
04-17-2007, 05:11 PM
I am having trouble with my textures being seemingly unaffected by the scene lighting. I have looked at another example program using matierials and lighting where it seems to light correctly. I have compared my program to this but cannot see any real difference except perhaps with the sequence of certain commands getting called. I have a scene with different textures and materials which get applied during the drawing process. I wonder if the problem is something to do with sequencing.
04-17-2007, 06:46 PM
copy/paste the code that works into the program that doesn't work
then start tweaking it until it looks like the code that does't work... along the way u'll find the bug
04-18-2007, 01:02 AM
What texture environment do you use? This often happens when evnironment that ignores previous color (e.g. GL_REPLACE) is used instead of the GL_MODULATE.
04-25-2007, 01:48 AM
Sorry. It looks like I managed to get this working now in the mean time. I must admit though that lighting can be a pain and things don't neccecarily behave as I might have predicted. I will have to put my OpenGL work on hold for a bit as I have other pressing coursework.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.