• Advertisement

Archived

This topic is now archived and is closed to further replies.

normals with triangle strips

This topic is 6248 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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)

Share this post


Link to post
Share on other sites
Advertisement
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

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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

Share this post


Link to post
Share on other sites

  • Advertisement