Hi Robert Borchers,

Anyway, you can implement your own NodeVisitor, to do all you need,
The example of FindNamedNodeVisitor is only an example, and you could
begin with it. I think there is no easy or generic solution, as Robert said you
should know how your scene is loaded.

You could get the intermediate transforms for any
object in the scene using osg::computeWorldToLocal(nv->getNodePath())
inside the node visitor. This maybe could also help you.


Rafa.

On 11/16/07, Robert Osfield <[EMAIL PROTECTED]> wrote:
> On Nov 16, 2007 7:34 AM, Robert Borchers <[EMAIL PROTECTED]> wrote:
> > Hi Rafa,
> >
> > I tried this but it's the same problem. I get also my 12 objects instead
> > of the wanted 3. It's the same output as in my version.
> > Is there an easy way to get the whole objects or do I have to run
> > through the graph collecting the names an then adding all objects with
> > the same name to one single transform to let them stay together? And
> > what if a user give two objects the same name?
>
> You scene will be stored as 12 objects, the OSG will be loading these.
>  Now you might be associating these twelve objects in some manner to
> logically be treated as just 3, but how are you doing this
> association?  By naming?  Is it something you are doing in the
> modeller?  How are you doing it?  The OSG can't "automagic"
> associations that it knows nothing about, and it can't recover things
> that are lost in export to some formats.
>
> To understand what the OSG is generating convert the file to a .osg
> ascii and that have a read through it with an editor.
>
>    osgconv myfile.obj myfile.osg
>
> Robert.
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>


-- 
Rafael Gaitán Linares
Instituto de Automática e Informática Industrial  http://www.ai2.upv.es
Ciudad Politécnica de la Innovación
Universidad Politécnica de Valencia
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to