Advertisement

oddities or normal behavior?

Started by April 13, 2001 05:01 AM
2 comments, last by avianRR 23 years, 7 months ago
Ok, I''ve recently run into a couple oditeys in my program. Fisrt, I have an object that has no textures just per vertex coloring. If I enable lighting then I have to enable GL_COLOR_MATERIAL or the object appears gray. If I disable lighting I dosn''t make a difference if I enable GL_COLOR_MATERIAL or not. Second, if I disable GL_COLOR_MATERIAL while lighting is enabled then it leaves the color at that time as the material color and put''s that over everything. If I put a glColor4f(1,1,1,1); command just before disabeling GL_COLOR_MATERIAL then there''s no problem but if I put it just after disableing GL_COLOR_MATERIAL then it has no effect. I''m wondering if that''s normal or what?
------------------------------Piggies, I need more piggies![pig][pig][pig][pig][pig][pig]------------------------------Do not invoke the wrath of the Irken elite. [flaming]
yes its normal, see chapter 5 of the red book also http://www.frii.com/~martz/oglfaq/lights.htm

http://members.xoom.com/myBollux
Advertisement
ok, thanks. I don''t always have time to read all the available sources for thing like that.
I was thinking maybe (but not likely) a diver bug so I''ve been trying to get the new device drivers from nvidia but all I can find are win9x/me drivers and no 2000 drivers!
I also noticed they don''t put there e-mail addresses on there site eather.
------------------------------Piggies, I need more piggies![pig][pig][pig][pig][pig][pig]------------------------------Do not invoke the wrath of the Irken elite. [flaming]
http://www.reactorcritical.com/

http://members.xoom.com/myBollux

This topic is closed to new replies.

Advertisement