Login  Register

No color

Posted by tomd on Nov 16, 2010; 1:03pm
URL: https://forum.jogamp.org/No-color-tp1910745.html

I am creating a curved surface using a set of triangles. If displays ok except that I can't seem to get colors to appear - the shape is always black, or grey if I rotate it around (fortunately I am using a white background).

I am using glColor3d, but no matter where I call this it has no effect.

If I set a red material it works OK and appears red, but I want to apply vertex colors (and anyway I want to find why it isn't working).

Any ideas? Could it be to do with lighting?

BTW my init() is basically the same as the gears demo, and I am using JOGL 1.1.1a.

Thanks