[osg-users] Building KdTrees

Robert Osfield robert.osfield at gmail.com
Wed Dec 7 02:38:04 PST 2016

Hi Ale,

There isn't any way for me to know what might be amiss with the
details provided.

You have your code, your data and the potentially the whole OSG source
code (it's easier to debug if you've built the OSG yourself) so should
be in a good position to step through your own and the OSG code to see
what is happening.  For instance putting a break point into the
OpenSceneGraph/src/osgDB/DatabasePager.cpp where the kdTree code is to
see whether it's being invoked and if not why not.  This should give
you clues to why things aren't working as desired and how then you
might fix them.


On 7 December 2016 at 09:58, Ale Maro <sasha71 at teletu.it> wrote:
> Hi Robert,
> I already tried to set the hint before loading any data but drawable->getShape() returns always NULL.
> It works fine if I call kdtree->build(...) and then drawable->setShape(kdtree) explicitly.
> I am not sure if DatabasePager and KdTrees works automatically only using OSG IO plugins.
> Ale
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=69624#69624
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list