[osg-users] Database pager and failed loading of PagedLOD's children

Robert Osfield robert.osfield at gmail.com
Sun Mar 4 09:51:50 PST 2018


As for the particular question, the OSG requests children that are
required for a given range when then come into range, and while they
aren't available will automatically fallback to the next highest level
of detail until this child is loaded.

So... in your case if child 1 fails to load when request the OSG will
just keep fallback back to child 0 automatically.

On 4 March 2018 at 17:51, Hartwig Wiesmann <hartwig.wiesmann at skywind.eu> wrote:
> Hi,
>
> I use PagedLODs and the database pager to load dynamically nodes. Here is the pseudo code:
>
>
> Code:
>
> pagedLOD->addChild(nodePtr,limit,std::numeric_limits<float>::max);
> pagedLOD->setFileName(1,fileName);
> pagedLOD->setRange(1,0.0,limit);
>
>
>
>
> In case the pseudo-loader for fileName fails I would like to keep the child at position zero (here called nodePtr).
>
> What is the best method to achieve this?
>
> Thank you!
>
> Cheers,
> Hartwig
>
> PS: Sorry for posting this item also in the wrong forum. :'
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=73016#73016
>
>
>
>
>
> _______________________________________________
> 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