Re: [osg-users] Node to Geode

2009-04-02 Thread Robert
Thanks for your help but you were right robertosfield, I realised I could get 
what I wanted without using geodes so, my fault. Thanks anyway.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=9656#9656





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] Node to Geode

2009-04-01 Thread Robert
Hi,

I'm pretty noob to OSG and I have tried to make it myself but I really need 
some help. I'm using readNodeFile to get a Node but I need a Geode.

How can I convert the node to geode?

Thank you.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=9555#9555





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Node to Geode

2009-04-01 Thread Robert Osfield
HI Robert,

You can using dynamic_castosg::Geode*(node) in C++, but... this doesn't
mean it'll return anything other than a NULL, as most scene graphs will
typically contain a root node that is not a Geode, but something like a
Group.

Perhaps you could explain what you are actually trying to do rather than a
low level request like casting, as it's pretty likely what you are doing
should be done another way.

Robert.

On Wed, Apr 1, 2009 at 6:43 PM, Robert el_mas_fr...@hotmail.com wrote:

 Hi,

 I'm pretty noob to OSG and I have tried to make it myself but I really need
 some help. I'm using readNodeFile to get a Node but I need a Geode.

 How can I convert the node to geode?

 Thank you.

 --
 Read this topic online here:
 http://forum.openscenegraph.org/viewtopic.php?p=9555#9555





 ___
 osg-users mailing list
 osg-users@lists.openscenegraph.org
 http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] Node to Geode

2009-04-01 Thread Paul Martz
If the top level node isn't a Geode (which it isn't except for the very
simplest of scene graphs), you'll need to walk the scene graph to find the
Geode of interest. In OSG this is done with a NodeVisitor. I suggest you get
the OSG Quick Start Guide and read through it (search at www.lulu.com).

Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com
+1 303 859 9466

-Original Message-
From: osg-users-boun...@lists.openscenegraph.org
[mailto:osg-users-boun...@lists.openscenegraph.org] On Behalf Of Robert
Sent: Wednesday, April 01, 2009 11:43 AM
To: osg-users@lists.openscenegraph.org
Subject: [osg-users] Node to Geode

Hi,

I'm pretty noob to OSG and I have tried to make it myself but I really need
some help. I'm using readNodeFile to get a Node but I need a Geode.

How can I convert the node to geode?

Thank you.

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=9555#9555





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org