Re: [osg-users] Intersection tests on paged PagedLODs

2011-03-31 Thread Trystan Larey-Williams
I finally got some time to try this and it's exactly what I needed. Another 
point I was missing was setting the range on the PagedLODs. I had a bounding 
vol defined but not the range. 

Thanks for the tip!

-Trystan

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=38143#38143





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Intersection tests on paged PagedLODs

2011-03-13 Thread Trystan Larey-Williams
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
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Intersection tests on paged PagedLODs

2011-03-13 Thread Wang Rui
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 trys...@trystan.org:
 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
 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