PDA

View Full Version : show simulation results on mesh



02-19-2003, 07:00 AM
hi,

i've the following problem:

i try to show cfd results on a surface mesh.

therefore i display the mesh with triangle strips and give every node a (different) color.

everything works fine as long as i don't turn on the light.
turning on the light works if i specify a material - perfectly shaded geometry - but only in the color resulting from the material properties.
turning on the light and give every node a color results in a shaded geometry with only the color of the last node.
all the color definitions are made with glColor3f and the whole thing is between
glEnable/glDisable(GL_COLOR_MATERIAL) statemant.

has anybody an idea whats going wrong

regards

peter