On Fri, 2007-02-23 at 10:29 -0700, Paul Martz wrote:
> If those bits specify that the parent palette overrides the child
> palette, and the parent palette is empty, then I believe the behavior
> is undefined.
IIRC, the control is hierarchical. For example, if you have a three deep
hierarchy of external references like this:
file A --- palette, override file B.
|
file B --- no palette, inherit file A palette, override on file C.
|
file C --- palette, inherit file B palette.
... then file C inherits file A's palette because that is the effective
palette for file B.
> Your light points are indexing into an empty palette. I'm not sure
> what the OSG OpenFlight plugin does in that case, but I imagine it
> ain't pretty. :-)
The fallback for a truely missing palette is for a file to use its own
palette. Failing that it really is then undefined behavior depending on
the palette in question (e.g. color is white, texture is null)
Regards,
Marcus
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/