Hi Anthony,

I'm afraid I've never tried to combine TerraPage databases with the
osg::Sim lntersection classes, so can't point you in any particular
direction.  In theory the .txp plugin creates PagedLOD's and then
leverages the osgDB::DatabasePager for paging, so should be mappable
across to how the osgSim intersections classes read tiles in, but
clearly there must be something amiss as to what it might be I can't
say.  You'll need to step through the .txp plugin with a debug to see
what the difference are between when it's paged by the normal viewer
vs the osgSim intersection classes.

Robert.

On Mon, Dec 22, 2008 at 10:34 PM, I-Nixon, Anthony D
<anthony.d.ni...@boeing.com> wrote:
> Hello everyone:
>
> I'm trying to compute LOS on a scene graph that is not being displayed
> (this is for "offline" analysis).
>
> Code looks a bit like this:
>
>
>        osgDB::FilePathList
> filePath(osgDB::Registry::instance()->getDataFilePathList());
>        filePath.push_front(dirContainingTerrain);
>        osgDB::Registry::instance()->setDataFilePathList(filePath);
>
>        osg::ref_ptr<osg::Node> terrain =
> osgDB::readNodeFile("archive.txp");
>
>        osgSim::LineOfSight::Intersections ints =
> osgSim::LineOfSight::computeIntersections(terrain.get(), aPoint,
> theOtherPoint);
>
> The issue is that the TerraPage loader doesn't seem to load in the paged
> LODs.  Is there something I need to do to trigger this?  The above code
> works fine for ive based Paged terrain (generated using osgdem).
>
> The LineOfSight is functioning as expected if the scene graph is
> displayed in a viewer.
>
> Any pointers would be most appreciated.
>
> This is with OSG 2.6.1
>
> Thanks in advance.
>
> // Anthony Nixon
> // Modelling & Simulation Architect
> // Systems Analysis Laboratory
> // Boeing Defence Australia
>
> _______________________________________________
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to