"Flark" <flarkino@[EMAIL PROTECTED]
> wrote in message
news:4467335d-5bbe-4e7d-ad96-dce0d490412e@[EMAIL PROTECTED]
> Hi,
>
> I'm using this to set my material's colors:
>
> glMaterialiv (GL_FRONT, GL_AMBIENT_AND_DIFFUSE,
> color);
> glMaterialiv (GL_FRONT, GL_SPECULAR, spec);
> glMaterialiv (GL_FRONT, GL_EMISSION, emiss);
> glMaterialf (GL_FRONT, GL_****NINESS, ****ny);
>
> However I am finding that my object is always white.
> And glColor3iv always set the object to black.
>
> I am also doing this:
> glEnable(GL_COLOR_MATERIAL);
>
> Anybody know what could be causing the
> white/black object problem?
>
> Thanks.
Do you have light(s) and normals specified? They all need to be there for
materials to work. You also need to invoke glColorMaterial() to make
glColor3iv work.
-jbw


|