Hi,
I am currently trying to retrieve some specific triangles in a PagedLOD
model. To do so, I use a PolytopeIntersector with an IntersectionVisitor.
As my model is a PagedLOD, I have set up a reader callback, directly taken
from osgSim::LineOfSight.
The intersector works, but not as expected: it gives me the triangles at
the lowest resolution, whereas I would expect to have them at the finest
LOD. Debugging my program showed me that the void
IntersectionVisitor::apply(osg::PagedLOD& plod) method goes where it has to
(i.e., it traverses correctly all childs until the best resolution).
As the IntersectionVisitor sets up by default to use
the USE_HIGHEST_LEVEL_OF_DETAIL flag, I am wondering if I am missing
something and if you could give some pointers on how to achieve triangles
extraction at the finest LOD.
The "header" root file is:
osg::PagedLOD {
UniqueID 1
Name "Tile_+001_+006.osgb"
CenterMode USER_DEFINED_CENTER
UserCenter -741.555 904.039 94.1168 213.403
RangeMode PIXEL_SIZE_ON_SCREEN
RangeList 2 {
0 106.702
106.702 1e+030
}
DatabasePath FALSE
RangeDataList 2 {
""
"Tile_+001_+006_L15_0.osgb"
}
PriorityList 2 {
0 1
0 1
}
The "header" of the child file (Tile_+001_+006_L15_0.osgb) is:
osg::PagedLOD {
UniqueID 1
Name "Tile_+001_+006_L15_0.osgb"
CenterMode USER_DEFINED_CENTER
UserCenter -741.869 906.466 94.7166 206.312
RangeMode PIXEL_SIZE_ON_SCREEN
RangeList 2 {
0 206.312
206.312 1e+030
}
DatabasePath FALSE
RangeDataList 2 {
""
"Tile_+001_+006_L16_00.osgb"
}
PriorityList 2 {
0 1
0 1
}
Hope you could help
Regards,
Olivier
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org