Brede Johansen, now there's a name I haven't seen on this list for a while.
I thought we lost you when you left Kongsberg Maritime, good to see you're
still around. Sorry I missed you when I was in Norway this past December.
 
Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com <http://www.skew-matrix.com/> 
+1 303 859 9466
 

  _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of Brede
Johansen
Sent: Friday, April 03, 2009 4:33 AM
To: [email protected]
Subject: Re: [osg-users] [osgPlugins] OpenFlight-Plugin - How to
storeindividual object in seperate geode?


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 <[email protected]> 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
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org



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

Reply via email to