Ray Casting with JOGL

I won’t post the entire code here, because it’s pretty damn ugly. But here’s what I ended up doing:

  1. I used the
    gluunproject

    statement to find the beginning and end points to extrapolate a line from.

  2. Now that I have a line, I use the formula provided by Wikipedia using the vector formulation of the line.
  3. Simply do a loop over the vertices and find the minimum.

Sorry for note posting recently… I got caught up in things… πŸ™

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.