Hi,

This is a great submission ! I'm also interested if you add more fields 
decoding from FLT files.

In general, I think this is a good thing to have the ability to read nearly all 
data from a file.

I've done something similar in another project with a client specific file 
format which contains special attributes.

I used "descriptions" to store these values because :

- can be added on any object of the graph : some properties have a sense per 
drawable, other per group

- many descriptions can be added to a single node

- descriptions are handled by modern osg serializers


Maybe a nice way to deal with special attributes would be to have a 
"userAttributes" map, something like :

_geometry->getOrCreateUserDataContainer()->getUserAttributes()["attributeKey"] 
= value; 

where "getUserAttributes" return a std::map, with :

- a std::string as key 
- a std::string or maybe an osg::ref_ptr<osg::Object>

This way, it should be easier to add / read a specific value : this is 
identified by a key




Cheers,
Aurelien

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=52003#52003





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

Reply via email to