Lighting changes after calling display list
I''ve had this problem crop up in a number of different projects. What happens is that after calling a specific display list, the whole screen becomes darker. This happens even if I don''t render the list to the visable screen. Basically I''m converting a 3ds file to my own format which only holds vertex and normal information. I then parse the file and create a display list from the model. I''ll make the source available for those who think they may be able to help me. I''m using a geforce 256, but it happens on other hardware as well.
Even if the normals in the model (list) are wrong, that shouldn''t effect the overall gamma should it??
HELP!
opengl is a state machine what that means is whatever u set will remain set until u unset it!
u might be going
create a list
{ glColor3f(1,0,0);
}
call the list
now everything u draw after calling the list is red, try adding a glColor3f(1,1,1); after u call the list.
this applies to everything normals materials etc
http://members.xoom.com/myBollux
u might be going
create a list
{ glColor3f(1,0,0);
}
call the list
now everything u draw after calling the list is red, try adding a glColor3f(1,1,1); after u call the list.
this applies to everything normals materials etc
http://members.xoom.com/myBollux
I''m not specifying color when I create the list, just vertex''s and normals. A correction to my original post - it seems that everything is supposed to be fairly dark, one model *brightens* the light level - not the other way around as I had expected. Could this be a memory problem?? Is there a limit to how complex a display list can be??
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement