What could I be missing? The vertex color is simply ignored - if I turn off texture maps everything is white. (even though to test it, I filled the color array with red).
Thanks,
-Jeremy
This is so strange - the colors are ignored when the vertex array is being drawn, but if I don''t reset the current color after the call to glDrawElements, then whatever I draw afterward is drawn in the color from the color array.
quote:Original post by DuckWizard Thanks for the tip - just to test it I turned off lighting and presto! Vertex colors are used. Is there any way I can get it to work with lighting?
Yes, see glColorMaterial. If the default settings are what you want, just call glEnable with GL_COLOR_MATERIAL.