Advertisement

normals with triangle strips

Started by January 10, 2001 08:51 AM
2 comments, last by _Jax_ 23 years, 10 months ago
Hello there! How can I set Normals in a triangle_strip? do I have to call the function b4 the first vertex or b4 the the 3d vertex? I tried both and they both looked somehow wrong, while the first seems to be right except that it smooths out between the normal of the next triangle (I have smooth shading enabled, if that has anything to do with thata)
before the 3rd vertex and every vertex after that
ie
0 n
1 n
2 y
3 y
4 y etc

http://members.xoom.com/myBollux
Advertisement
quote: Original post by zedzeek

before the 3rd vertex and every vertex after that

- This will work only for flat shading.

You have to provide normal for each vertex.
true i dont know what i was thinking.
use this instead
0 y
1 y
2 y
3 y
4 y etc

http://members.xoom.com/myBollux

This topic is closed to new replies.

Advertisement