Hi Chris,

There are other better ways to add the alias.  Paul's suggestion of
utilising the OSG's use of the "Chain of Responsibility" pattern to
check for ability to load files from plugin is another approach you
could use, an approach that is similar to use a custom
Registry::ReadFileCallback.

Another approach would be to use a custom CullCallback on the PagedLOD
node, and override the way that the plugin chooses it's children and
dispatches the file requests.

Another approach would be to use a custom DatabaseRequestHandler
attached to the CullVisitor that intercepts all the file requests done
by PagedLOD then passes these on to the DatabasePager with the
filename appropriately modified.

All of these approaches are both more flexible and less intrusive than
embedded the filename suffix into PagedLOD/ProxyNode.   I'll dive into
your other submissions today and if there are points that you rely on
your added PagedLOD functionality I'll review which of the above
approach is most appropriate/easist to implement/less intrusive.

Cheers,
Robert.
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to