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

Reply via email to