I have been doing some research on adding this and have some questions. I am trying to look for the best solution (or maybe one that could be implemented into osg later).
The setComment() functionality will work to an extent. I have the smc code being output to the description field of the nodes, but when i call the setcomment() of the Face class within the flight plugin I dont get any outputs. If I put _parent->setcomment() it outputs to the group node. This shouldn't be a big deal but I was wondering why it would not output the descriptions per face. (I had to turn on preserveFace to verify). Also, I am worried that when I try to query this information at run time I won't be able to find out which face I hit with a ray cast (or other means) hence making the comments pointless. The only way, I have found, to keep the face information is to have the preserveFace option on, but I have a feeling that is horribly inefficent. I have some thoughts on better ways to do this but need more direction to know the amount of work required. 1. Since the faces are combined within one Geode within the importer (unless specified) the idea of adding an array similar to the VertexArray or TexCoordArray would seem to work. The problem is to do this I believe that I would have to modify the Geometry class to add this array. I could add it as a generic array of *whatevers* to facilitate others using it but not sure if this would be optimal. Also, i am unsure of the full depth of this process for adding this, or the implications. 2. There is a function setUserData() that is called within PrimaryRecord which puts the lat and lon within a reference pointer. If this is truely a reference to whatever I could create an new Reference subclass that would hold the smc data. I believe that all Record classes have this userData. The problem is that I cant find this data being written out or a way to write that data out. Also I am sure if it isnt written out then i would be unable to query this information at run time. Any directions on these or other possible approaches would be great. Thanks, Kip ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=12138#12138 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

