Hi, You can disable optimization of nodes with Optimizer::setPermissibleOptimizationsForObject(const osg::Object* object, unsigned int options)
Regards, Brede On Fri, Apr 3, 2009 at 11:06 AM, Bulkhead <wgy...@gmail.com> wrote: > Hi, > > I'm new to the modelling world, and any help/advice is very much > appreciated. > > I'm using osg openflight plugin to load an flt terrain file. The terrain > consists of a piece of land, and many buildings. What I am trying to achieve > is loading the entire piece of land as one geode, and every building as > individual geode. > > After I have loaded the terrain into osg format, I noticed that the > osgUtil::Optimizer will group some of the buildings that share the same > texture into a single geode. > > In order not to mess up with the original plugin codes (for ease of > upgrading in the future), I disable the optimization by passing > "preserveFace" option to the osgDB::readNodeFile() API, and invoke the > optimizer in my loader codes. I have tried with different combinations of > optimizer options, but couldn't find a combination that can produce the > desired result :( > > Here is the list of options that I have tried with: > SHARE_DUPLICATE_STATE > STATIC_OBJECT_DETECTION > MERGE_GEOMETRY (disabling this will blow my loader [Embarassed] ) > MERGE_GEODES > REMOVE_REDUNDANT_NODES > FLATTEN_STATIC_TRANSFORMS_DUPLICATING_SHARED_SUBGRAPHS > SPATIALIZE_GROUPS > COPY_SHARED_NODES > TESSELLATE_GEOMETRY > > Any suggestions? Am I in the correct direction? Or should I develop a > visitor for this purpose? > > Thank you in advanced :) . > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=9701#9701 > > > > > > _______________________________________________ > 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