Jump to content
  • Advertisement
Sign in to follow this  
gohkgohk

The fastest way to detect a line intersect with a triangle

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

what is the fastest way to detect a line intersect with a triangle? (including passing the vertex or edge of the triangle) thx~

Share this post


Link to post
Share on other sites
Advertisement
Yeah, I ran some simple tests on it. The Moller code returns true for the vertex points and edges
of the triangle.

Share this post


Link to post
Share on other sites
If you can afford to precompute and store additional data for each triangle, there are faster algorithm to perform tri/ray intersection test.
Jacco Bikker says in his raytracing tutorial that Ingo wald suggested a fast method (Bikker says that his own implementation is twice as fast as the Möller-Trumbore algorithm). In the previous link he shows his implementation, if you are interested.

Share this post


Link to post
Share on other sites
Sign in to follow this  

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