Jump to content
  • Advertisement

Archived

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

Lode

intersection between line and implicit function

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

How to find the intersection between a line and an implicit function like x ^3 + sqrt(y) + cos(2/z) = 85 ? It''s for a raytracer experiment Thanks.

Share this post


Link to post
Share on other sites
Advertisement
This is essentially a root finding problem. If G(x) is your implicit surface, and R(t) is your ray, then you are trying to find the smallest solution to G(R(t)) = 0 for t > 0. There are ways of solving this, but Newton''s Method or Interval Newtons Method come to mind.

"Math is hard" -Barbie

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!