I think there is a bug in the osg reader/writer for PagedLOD nodes. If you set 
the LOD::CenterMode to USE_BOUNDING_SPHERE_CENTER then it doesn't get written 
to the output .osg file because the writer ignores its value unless it is set 
to USER_DEFINED_CENTER, in which case it just writes out the user defined 
center, but not the center mode (see LOD_writeLocalData() function in the osg 
plugin). This doesn't cause a problem for regular LOD nodes because their 
bounds can be computed from their children, but if you have a PagedLOD node 
that has no children (because its children area loaded by the pager) then its 
not possible to compute a valid bounding sphere to use (and it won't try to 
anyway because the center mode defaults to USER_DEFINED_CENTER). This is 
different than the way the ive writer works - when I write my PagedLOD nodes to 
the ive file format and then view them with the osgviewer it works fine, but 
when I write to osg the externally referenced files are never paged in because 
it thinks the center of the PagedLOD nodes is (0,0,0).

Alex
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to