I found the problem, and it was mine. It helps if I attach my root node to
the scene BEFORE I try to insect with it. ;)
On Monday, February 3, 2020 at 1:04:10 PM UTC-5, Nonsanity wrote:
>
> Thanks. I had thought to apply the visitor to the scene, but GetScene()
> didn't have Accept(). With your
Thanks. I had thought to apply the visitor to the scene, but GetScene()
didn't have Accept(). With your confirmation that using the scene was
correct, I found that viewer.getSceneData()->accept( iv ) did exist.
However, calling that line just results in a segfault. The rest of the code
is the s
Hi Chris,
I guess you want the scene to accept the IntersectionVisitor, not the
camera.
Laurens.
On Sat, Feb 1, 2020 at 1:18 PM OpenSceneGraph Users <
osg-users@lists.openscenegraph.org> wrote:
> I have a scene built with a few objects loaded, the most pertinent one
> being a large plane surface
I have a scene built with a few objects loaded, the most pertinent one
being a large plane surface centered at the origin. I want to cast a ray
from a particular point at a particular angle inside the scene and get a
list of everything it intersects—both the point of intersection and the
Node o
4 matches
Mail list logo