Hi Robert,

thanks for having a look through the code and your comments.

Quoting Robert Osfield <[email protected]>:
> If one want to create a custom Node for doing this, then it's place
> would be in osgFX sitting alongside osgFX::Scribe, and something that
> acts as a decorator of the subgraph that we intend to add normals to.
> This would take more effort to code, but it'd also be far more
> flexible and reusable.

While it certainly would be nice to have the normals updated automatically when
the underlying geometry changes I'm not aware of a mechanism to detect changes
to individual nodes.  Is there something for that?  Maybe something that could
detect changes to Nodes in general?

The notorious ShapeDrawable and vertex/geometry shaders would also make it more
difficult if not impossible.

If I refactor the class into a function that returns a Geode, would that be
sufficient?

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

Reply via email to