Hello!
I have a problem changing the color for each vertex in a quad when
texturemapping in OpenGL. This only happens when I render on top of a
ArToolkit canvas, and only applies to textured quads not plain surfaces.
It seems that all 'glColor' instructions are ignored when texturemapping,
and the quad is mapped with color white on all corners. If I do a
'glDisable(GL_TEXTURE_2D)' in front of the mapping, the quad suddenly gets
the color I want, but alas, no texture mapping.
How can I enable shaded textured vertices when I use ARToolkit? I think it
must be a simple state change to enable this but I cant seem to figure it
out. I have never had this problem when rendering to a regular GLUT/SDL
canvas.
I am using a Mandrake Linux 9.0 and render using a NViDIA GF2-PRO card
(latest linux drivers installed). I am using ArToolkit 2.61 (I have tried
2.52 aswell).
Thanks!
- Øystein Handegard, NTNU Norway.
|