Bulkhead, If you use osgconv to compare your OpenFlight structure with the OSG structure (.osg) don't forget to set the environment variable OSG_OPTIMIZER=OFF. With the preserve??? reader options they should be almost identical.
The reason OpenFlight faces becomes Geode+Drawable is because a drawable can't store flight comments and billboard information. If I remember correct a long time ago the drawables couldn't even store the face id because the drawables didn't have the name attribute. Brede On Mon, Apr 6, 2009 at 11:59 AM, Bulkhead <wgy...@gmail.com> wrote: > Hi Brede, > > Just some updates. I have glanced through the codes for the openflight > plugin, and not sure if this is correct. > > Using the "preserveObject" option, the openflight Object record will be > stored in a osg::Group node. All the faces will be stored as osg::Geode > under the respective group node. Is this correct? > > By iterating through the groups, and collecting the geodes in each group, I > managed to retrieve the land from my openflight terrain file. However, the > buildings are still being grouped based on the texture (i.e. building with > same texture are stored under the same group node). Is this how the > openflight structure organize the record? Is it feasible to seperate these > buildings? > > Thanks in advanced. > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=9778#9778 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org