dmckelvie
04-09-2002, 09:45 AM
I'm having a problem with colouring GLUT spheres using glColorMaterial so that
glColor should set the colour of the next
graphics primitive.
My code works fine with glBegin/glVertex/glEnd but when I try including glutSolidSpheres, I find that I only seem to get 8 colours. I.e. it looks as though I only have 1 bit each of RGB. Any other colour for a sphere gets mapped to one of these colours.
I can't believe this is a 'feature' of GLUT 3.7, so I assume I have installed something wrong or just made a mistake.
Anyone seen anything like this before or have an idea what might be causing this? I'm using
the new NVidia driver for Linux, GLUT 3.7 and GLU 1.3 from SGI.
glColor should set the colour of the next
graphics primitive.
My code works fine with glBegin/glVertex/glEnd but when I try including glutSolidSpheres, I find that I only seem to get 8 colours. I.e. it looks as though I only have 1 bit each of RGB. Any other colour for a sphere gets mapped to one of these colours.
I can't believe this is a 'feature' of GLUT 3.7, so I assume I have installed something wrong or just made a mistake.
Anyone seen anything like this before or have an idea what might be causing this? I'm using
the new NVidia driver for Linux, GLUT 3.7 and GLU 1.3 from SGI.