6c6c13145247eb45eaf144d553cb3bb7d9e479d3
"Previously, the new OpenFlight plugin only allowed ext ref models to use their own palettes. With this change, parent models can override child model palettes with the parent palettes. These changes are made against very current CVS (just updated about 1/2 hour ago, eliminated conflicts, and retested before this posting). To regurgitate what I did: A new class, ParentPools (public osg::Referenced), is created when an ext ref record is parsed, and it is populated with any parent model pools that should override the child model pools (according to bits in the ext ref record). The ParentPools object is then set as UserData on the ProxyNode corresponding to the ext ref. When the ReadExternalsVisitor hits the ProxyNode, it takes its UserData and sets it as UserData in the Options parameter to the osgDB::ReadNode call, which then read the ext ref model. In the course of parsing the Options string, ReaderWriterFLT also looks at the Options UserData and sets the parent pools in the Document class accordingly. When palette records are encountered while loading a file, they are ignored if the corresponding pool was set by the parent. Thanks to Brede for consulting with me on the implementation. "
Welcome to the OpenSceneGraph (OSG).
For up to date information on the project, how to compile and run libraries
and examples, and see the documentation on the OpenSceneGraph website.
http://www.openscenegraph.org
Robert Osfield.
robert@openscenegraph.com
November 2005.
Description
Languages
C++
89.7%
C
5.1%
CMake
2.3%
HTML
1.6%
Objective-C++
0.9%
Other
0.2%