Re: [osg-users] [osgPlugins] OpenFlight-Plugin - How to store individual object in seperate geode?

2009-04-06 Thread Bulkhead
Hi Brede, Thanks very much for the info. Yup, with osgconv, I managed to compare the source flt database and the coverted osg format. Seems like the objects are already merged in the flt database. So I guess I have to find a way to modify the source before loading it to osg [Wink] Once again

Re: [osg-users] [osgPlugins] OpenFlight-Plugin - How to store individual object in seperate geode?

2009-04-06 Thread Brede Johansen
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 dra

Re: [osg-users] [osgPlugins] OpenFlight-Plugin - How to store individual object in seperate geode?

2009-04-06 Thread Bulkhead
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 n

Re: [osg-users] [osgPlugins] OpenFlight-Plugin - How to store individual object in seperate geode?

2009-04-06 Thread Bulkhead
Hi Brede, Glad to hear from you again :D I've written a geodeVisitor class to return all the loaded geodes. But before that, I would like to clarify something with you. For experiment purposes, I've disabled totally the optimization (i.e. setting preserveObject and preserveFace) and commente

Re: [osg-users] [osgPlugins] OpenFlight-Plugin - How to store individual object in seperate geode?

2009-04-06 Thread Brede Johansen
Hi Bulkhead, I don't know about a reference manual but you have the source. The Optimizer header file is a good reference. Yes, you typically create a custom visitor and set the permitted optimization for the objects (node,stateset, drawable etc.) in question. For the option parameter I would pro

Re: [osg-users] [osgPlugins] OpenFlight-Plugin - How to store individual object in seperate geode?

2009-04-05 Thread Bulkhead
Hi Brede, Thanks for the reply. I did a search on the setPermissibleOptimizationsForObject() fucntion and read your posting on osg-users mail-archive, and yup, I think very high chance that this will solve my problem [Wink] But unfortunately, I couldn't find any reference on how to use this

Re: [osg-users] [osgPlugins] OpenFlight-Plugin - How to store individual object in seperate geode?

2009-04-03 Thread Brede Johansen
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 wrote: > Hi, > > I'm new to the modelling world, and any help/advice is very much > appreci

[osg-users] [osgPlugins] OpenFlight-Plugin - How to store individual object in seperate geode?

2009-04-03 Thread Bulkhead
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 bui