Jump to content
  • Advertisement

Archived

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

_Jax_

normals with triangle strips

This topic is 6427 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
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
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!