Skip to content

Commit

Permalink
use ray triangle intersection for ray query (#447)
Browse files Browse the repository at this point in the history
Signed-off-by: Ian Chen <[email protected]>
  • Loading branch information
iche033 authored Oct 1, 2021
1 parent dc2f1a4 commit dd4b520
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ogre2/src/Ogre2RayQuery.cc
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,11 @@ RayQueryResult Ogre2RayQuery::ClosestPoint()
{
RayQueryResult result;

// ray query using selection buffer does not seem to work on some machines
// using cpu based ray-triangle intersection method
// \todo remove this line if selection buffer is working again
return this->ClosestPointByIntersection();

#ifdef __APPLE__
return this->ClosestPointByIntersection();
#else
Expand Down

0 comments on commit dd4b520

Please sign in to comment.