Display List Color Question
This list was made using 3d Exploration. When I added the glColor4f thing though, the color doesn''t seem to change. The object isn''t any greener.
glColor4f(0.0f,1.0f,0.0f,1.0f);
glCallList(shiplist);
By the way, I have blending on, and I have a texture bound to this object.
Any ideas?
Thanks
get the red book.
this is the nature of the display list. you cannot change it''s color when calling it, because it''s outside of the display list execution calls. the color of the object in the display list is inside the acutal list when you create it. if you try to change it after the creation of the list, it won''t work. (actually, that''s what the books say, but on my cards, you CAN do it the way you''re doing. however, on my friends voodoo card, it obeyed only the colors specified in the display list creation.
Mike00, i want to recommend, again, to exhaust every resource you have prior to asking questions like this. i''m not mad or anything. it''s just that these types of questions can easily be discovered by a little digging. i want to recommend that you get the red opengl book, and the opengl superbible, as well. the answers to these types of questions can easily be found in these books, and not to mention several other online resources.
have fun. =)
a2k
this is the nature of the display list. you cannot change it''s color when calling it, because it''s outside of the display list execution calls. the color of the object in the display list is inside the acutal list when you create it. if you try to change it after the creation of the list, it won''t work. (actually, that''s what the books say, but on my cards, you CAN do it the way you''re doing. however, on my friends voodoo card, it obeyed only the colors specified in the display list creation.
Mike00, i want to recommend, again, to exhaust every resource you have prior to asking questions like this. i''m not mad or anything. it''s just that these types of questions can easily be discovered by a little digging. i want to recommend that you get the red opengl book, and the opengl superbible, as well. the answers to these types of questions can easily be found in these books, and not to mention several other online resources.
have fun. =)
a2k
------------------General Equation, this is Private Function reporting for duty, sir!a2k
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement