[osg-submissions] IntersectionVisitor and PagedLODs - falling back on lower resolution

Robert Osfield robert.osfield at gmail.com
Fri Jun 6 08:24:46 PDT 2008


Thanks Glenn, fix now merged and submitted to SVN.

On Thu, Jun 5, 2008 at 2:50 PM, Glenn Waldron <gwaldron at gmail.com> wrote:
> 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
> _______________________________________________
> osg-submissions mailing list
> osg-submissions at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
>
>


More information about the osg-submissions mailing list