I am using the 'my device' code and I'm creating a cylinder, but when I'm trying to rotate the object about its axis, I'm losing the option to change its color and it's becoming gray.
cylinder0 = new cShapeCylinder(rad, rad, height);
// set position and orientation
cylinder0->rotateAboutGlobalAxisDeg(cVector3d(0.0, 1.0, 0.0),90);
// set material color
thanks a lot for the help!
I think its because of your direction of lighting. No light is reflected from the cylinder to the camera.
I am assuming that you have "light->setDir(-1.0, 0.0, 0.0)" in your code.
change your direction of your light source -- may be "light->setDir(1.0, 0.0, 0.0)" and see.
Hope this helps.