I have a (maybe) strange problem.
I have lights (with attenuation). I’m rendering my geometry with glDrawElements. I have a normal array, vertex array, … I checked my normals, everything is ok.
when I render using this:
the shading is ok but my lights looks like if they were moved a bit from where I put them.
if I replace the first line with glDisableClientState(GL_NORMAL_ARRAY), the shading is “flat” (of course, there is no normal) but the light is centered at the right place.
I’m not sure about the clarity of this…I have screenshots but nowhere to put them.
thanks for any info you can provide.
if you want to email me your screenshots i’ll put them up. my email’s in the profile. also, posting the relevant code would be helpful.
thanks, I did it.
here are a few lines that might be related to my “problem”.
glDrawElements(GL_TRIANGLES, nb * 3, GL_UNSIGNED_INT, &p_Ip[oldJ * 3]);
thanks. I’ll do more tests today.
OH NO !
that was my fault…my $¤#*%@ export plugin was wrong…
sorry for the inconvenience…