From dd4b5206db102fb7830fd852daedf10680b2bf7d Mon Sep 17 00:00:00 2001 From: Ian Chen Date: Fri, 1 Oct 2021 10:02:40 -0700 Subject: [PATCH] use ray triangle intersection for ray query (#447) Signed-off-by: Ian Chen --- ogre2/src/Ogre2RayQuery.cc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ogre2/src/Ogre2RayQuery.cc b/ogre2/src/Ogre2RayQuery.cc index ea2468004..fd9f1d1cc 100644 --- a/ogre2/src/Ogre2RayQuery.cc +++ b/ogre2/src/Ogre2RayQuery.cc @@ -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