Hi Trystan,

Try using IntersectionVisitor::setReadCallback() to set a custom
callback for reading paged files into memory (or any other operation
you wish). The node loaded at runtime will automatically be removed
after the traversal of the subgraph.

BTW, thanks for supporting the 3.0 Beginners Guide book. :-)

Cheers,

Wang Rui


2011/3/13 Trystan Larey-Williams <[email protected]>:
> Hi all,
>
> I'm looking for a way to selectively load PagedLODs saved to files on an 
> intersection test. I've built up an Octree represented by a PagedLOD node for 
> each subdivision (similar to the quad-tree example in the 3.0 beginner's 
> guide). Given an arbitrary point or line, I want to be able to test the 
> PagedLODs it intersects with without having unnecessary ones loaded into 
> memory.
>
> I gather that intersection visitors will only traverse loaded PagedLODs but 
> won't automatically trigger the database pager to load additional levels (is 
> that correct?). Would I need to create a custom visitor to do this or is 
> there an easier way that I'm missing?
>
> Thanks in advance,
> Trystan
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=37568#37568
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to