Jump to content
  • Advertisement

Archived

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

NotTaxes

Dynamic lighting with TRISTRIPS and DX8

This topic is 6109 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

When I create a TRISTRIP and specify the vertex normals, the DX lighting engine doesn''t work quite right. If I have a Quad made up of a two tris, and the two tris are at different angles, the first TRI determines the vertex normals for the first 3 vertices, and the second TRI determines the vertex normal for the fourth vertex. The problem here is that the first tri is lit correctly, but the second is not because the normals are based on the first tri instead of the second one. I figure that I can get around this by using trilists instead of tristrips, but then I get performance hits. Is there a way to do this with TRISTRIPS? It seems like such a common issue that I must just be thinking wrong. ''Doing the impossible is kind of fun'' - Walt Disney

Share this post


Link to post
Share on other sites
Advertisement

  • 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!