Hi H?,

I am not aware of any outstanding bugs w.r.t OVERRIDE and PROTECTED.
There is nothing special about osg::Material it should be possible to
override and protect it like any other StateAttribute and mode.

As to whether there might be a bug lurking in the OSG, or whether you
have simply set up the scene graph incorrectly I cannot say as I have
no code or scene graph example to illustrate what you are doing.

Robert.

On 8/21/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> I'm having a problem when trying to apply material and setting state
> attribute to PROTECTED when at higher level in the tree there is another
> material with stateset attribute set to OVERRIDE.
>
> I want to set a particular material to entire model and set some other
> material attributes to sub-geometries in that tree.
> The OVERRIDE works just fine but, setting PROTECTED at lower levels in the
> tree doesn't work and geometrie's material remains overridden with the
> material from above.
>
> Actually, setting stateset attribute for material with PROTECTED doesn't
> work at all and the previous state is not replaced.
>
> I found in 2004 some other reference to this problem that seemed to be
> concluded as bug in osg... is it really so or anybody knows how both
> OVERRIDE and PROTECTED can be applied
>
> thank
> h
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to