Advertisement Jump to content

Archived

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

_Jax_

normals with triangle strips

This topic is 6579 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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!