Hmm, I never noticed the "DescriptionList" feature before -- I presume
DescriptionList gets saved to and loaded from .osg and .ive files? That
would simplify some other work I did to add custom attributes to nodes
(which I acomplished using UserData, but it is a bit more complicated).
I will take a look at the OpenFlight importer.
Thanks,
Peter
Paul Martz wrote:
You're right, the OpenFlight importer doesn't preserve the record type in
the UserData.
You'll need to modify the OpenFlight importer to store the necessary
information. I'd suggest using the Node DescriptionList and storing the
record as a simple std::string, much less complicated than trying to use
UserData for this task.
If you modify the code in such a way that this is done based on a
ReaderWriter::Option, you could commit your change back to OSG.
Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com
+1 303 859 9466
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org