Problem which Color in 3d object

I write programm, and there i have projector, and 3d objects.
My problem is, that when i give to projector some color (or eaven if i don’t give color), i cannot change color to my 3d objects, and i want make every object in ather color.

How can i do that ?

Hi !

Yuo need to give more info here, are you using lighting or not ?, some code would not hurt either.


Buy some paint

As mikael_aronsson pointed out, it’s important to knwo whther or not you are using lighting. I’ll answer as assuming that you are…

You should probably use glEnable (GL_COLOR_MATERIAL) - that way your material color will always match the vertex color you specify. If you do not, then changing the vertex color will have no effect on lit objects.