Matthias Gabriel wrote:
Hi Roland,
I didn't know about the animation issue. What i'm trying to do is to
find nodes by their name so that i can manipulate it later.
I don't think, that putting the name to description list will do the
job, because other loaders set their names via osg::Node::setName(..)
(i.e. the osg loader)
Wouldn't it be better to have something like osg::Node::setID() or, if
we don't want to change too much in the core library, move the IDs to
description list? Other osgPlugin readers treat the node names as human
readable ones.
If someone names a node in the modeling process, there's a good chance
they're going to need it at runtime. I'd argue alongside Matthias that
the Name is the more important label to preserve. The ID is largely
useless once everything is loaded.
A possible solution would be to subclass osg::Group inside the loader
and add the additional fields to it (one for ID and one for SID). The
TXP loader seems to do something like this, so there's precedent. Just
an idea...
--"J"
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org