The ID's is just an internally .osg plugin id used for helping shared
objects, it doesn't directly relate to the final scene graph.

On Jan 22, 2008 2:54 PM, alessandro terenzi <[EMAIL PROTECTED]> wrote:
> Thank you for your help, I turned the optimizer off before running osgconv
> and when I compared the original .osg file with the new one I found out that
> they are almost the same...they're exactly the same for my purposes, so my
> application works fine now.
>
> I just noticed one difference yet: in the converted .osg, UniqueIDs
> properties are missing, for example:
>
>     UniqueID StateSet_0
>
> ...
>
>         UniqueID Geode_1
>
> ...
>
> and some others UniqueIDs... could be this a problem? I don't use such IDs
> explicitly...
> Thank you again.
> Regards.
> Alessandro
>
>
>
> On Jan 22, 2008 11:01 AM, Robert Osfield <[EMAIL PROTECTED]> wrote:
>
> >
> >
> >
> > Hi Alessandro,
> >
> > Just turn of various elements of the osgUtil::Optimizer.
> >
> >  osgconv --help-env
> >
> > And then look for the entry about OSG_OPTIMIZER.
> >
> > To switch off the optimizer just use one of the below:
> >
> >  set OSG_OPTIMIZER=OFF
> >  export OSG_OPTIMZER=OFF
> >  setenv OSG_OPTIMIZER OFF
> >
> > Then rerun osgconv, doing the round trip to double check.
> >
> > The Optimizer has a purpose though... its to optimizer what may well
> > be a very poorly conditioned database, most source models are really
> > bad from a run-time performance point of view so optimization is often
> > key to getting good performance.
> >
> > Robert.
> >
> >
> >
> >
> >
> >
> >
> > On Jan 22, 2008 9:40 AM, alessandro terenzi <[EMAIL PROTECTED]> wrote:
> > > Thank you for your suggestion :) I tried it and noticed some
> differences.
> > >
> > > Comparing the .osg files I noticed that, while in the starting .osg file
> I
> > > had 'MatrixTransform' nodes, in the final .osg file those nodes are
> > > converted to 'Group' nodes...as you already told, the nodes names are
> kept
> > > but, on the other hand, nodes descriptions are discarded.
> > >
> > > Actually both these behaviours are really a problem for my application
> > > because I have to look for some nodes searching by name (and this is
> ok),
> > > but I also need to dynamic_cast the found nodes to MatrixTransform to
> get
> > > the nodes transforms (and this will fail) and then I also need to
> retrieve
> > > some information that I previously stored in the node's description
> field
> > > (which is not available anymore).
> > >
> > > Best regards.
> > > Alessandro
> > >
> > >
> > > On 1/21/08, Robert Osfield <[EMAIL PROTECTED]> wrote:
> > > >
> > > >
> > > >
> > > > Hi Alessandro,
> > > >
> > > > The names of nodes will be written and read from .ive.  The structure
> > > > of the scene graph can change though is you run the osgUtil::Optimizer
> > > > through it, but this isn't isn't directly related to .ive rather its
> > > > something that your app might be running, or something that osgconv
> > > > has invoked before writing the file.
> > > >
> > > > To know for sure what has happened do a round trip conversion i.e.
> > > >
> > > > osgconv test.osg test.ive
> > > > osgconv test.ive test2.osg
> > > >
> > > > Then compare test.osg and test2.osg.
> > > >
> > > > Robert.
> > > >
> > > > On Jan 21, 2008 6:59 PM, alessandro terenzi <[EMAIL PROTECTED] >
> wrote:
> > > > > In my application I use a .osg file which contains simple objects.
> Using
> > > a
> > > > > text editor I give those object different names and descriptions. At
> > > runtime
> > > > > I look for some nodes which I previously gave names to, and perform
> some
> > > > > actions on them.
> > > > >
> > > > > Now I need to convert those .osg files to .ive and it looks like
> that my
> > > > > application cannot find those named nodes anymore...
> > > > >
> > > > > I used osgconv.exe to do the conversion from .osg to .ive. Am I
> doing
> > > > > something wrong or maybe osgconv.exe discards nodes names?
> > > > > Anyway, I wonder if, during the conversion, the topology of the
> > > scenegraph
> > > > > is changed in some way or not?
> > > > >
> > > > > Thank you very much :)
> > > > > Regards.
> > > > > Alessandro
> > > > > _______________________________________________
> > > > > 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
> > > >
> > >
> > >
> > > _______________________________________________
> > > 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
> >
>
>
> _______________________________________________
> 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