PDA

View Full Version : Problem which Color in 3d object



06-29-2002, 02:55 PM
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 ?

mikael_aronsson
06-29-2002, 11:22 PM
Hi !

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

Mikael

Lead
06-30-2002, 01:40 AM
Buy some paint

chennes
07-01-2002, 10:53 AM
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.

Chris