[osg-submissions] IntersectionVisitor and PagedLODs - falling back on lower resolution
Glenn Waldron
gwaldron at gmail.com
Thu Jun 5 06:50:44 PDT 2008
Robert,
Here is the change. In apply(PagedLOD&): if the call to
_readCallback->readNodeFile() fails, it falls back to selecting the last
child of the PagedLOD instead.
Glenn
---------- Forwarded message ----------
From: Robert Osfield <robert.osfield at gmail.com>
Date: Thu, Jun 5, 2008 at 9:31 AM
Subject: Re: [osg-users] IntersectionVisitor and PagedLODs - falling back on
lower resolution
To: OpenSceneGraph Users <osg-users at lists.openscenegraph.org>
Hi Glenn,
The IntersectionVisitor::accept(PagedLOD&) should fallback to a lower
res child when one is not available. If you've gone ahead and
implemented this missing code then please post it to osg-submissions
so I can review it.
Cheers,
Robert.
On Thu, Jun 5, 2008 at 1:56 PM, Glenn Waldron <gwaldron at gmail.com> wrote:
> Hi everyone,
>
> I'm using an IntersectionVisitor with a PagedLOD database, employing a
> ReadCallback to allow the intersector to traverse the paged nodes. I
> discovered that if the visitor is unable (for any reason) to load a
subtile
> via the ReadCallback, the intersection fails. However, I had the
requirement
> to "fall back" on the lower-resolution parent tile and settle for that
> intersection.
>
> This was easy to implement simply by overriding
> IntersectionVisitor::apply(PagedLOD). My question is: Are there any
opinions
> on whether this should be the default behavior? If it makes sense, I will
> submit the change; if not, no worries.
>
> Glenn
>
> --
> Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : 703-652-4791
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
osg-users at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
--
Glenn Waldron : Pelican Mapping : http://pelicanmapping.com : 703-652-4791
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080605/9a204fa8/attachment.htm>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: IntersectionVisitor.cpp
URL: <http://lists.openscenegraph.org/pipermail/osg-submissions-openscenegraph.org/attachments/20080605/9a204fa8/attachment.txt>
More information about the osg-submissions
mailing list