On Fri, 2007-02-23 at 11:57 -0700, Paul Martz wrote: > Thanks for your input, Marcus.
You're welcome Paul :) > > The fallback for a truely missing palette is for a file to > > use its own palette. > > Sounds very reasonable. I don't believe our OpenFlight plugin does this > currently. The logic for this would be something like: > IF ext ref record says use parent palette > AND parent palette exists THEN This condition also has to handle the case where the "parent palette exists" because it is inherited from a grand-parent one level (or more) up the hierarchy. This can be done recursively or with a palette proxy at each level (faster). > use parent palette > ELSE > use child palette > And that needs to be done for each of the palette types, not just light > points. Right. Each external reference (object) resolves it's palettes and when queried it can return its effective palette. Regards, Marcus _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
