why geode==null,please read my following codes.Thanks。

Xiao Han osgforum at tevs.eu
Tue Nov 17 08:12:44 PST 2009


Thanks,Wang Ray

It‘s not a geode. This is a Group.

How can I get group's geodes? Thanks.

Xiao Han


Wang Rui wrote:
> Hi Xiao Han,
>  
> Check the root of 'road_deming.ive' first, is it really a geode?
> 
> Cheers,
> Wang Rui
> 
>  
> 2009/11/17 Xiao Han < ()>
> 
> > Hi,everyone,
> > 
> > Please why gn==null in following codes?
> > 
> > "
> >                osgViewer::Viewer* viewer=new osgViewer::Viewer();
> >        osg::Group*root= new osg::Group();
> >        osg::Node*node=new osg::Node();
> >        node=osgDB::readNodeFile("road_demimg.ive");//cow.osg");
> >        osg::Geode* gn=dynamic_cast<osg::Geode*>(node);
> > "
> > Thank you!
> > 
> > Cheers,
> > Xiaohan
> > 
> > ------------------
> > Read this topic online here:
> > http://forum.openscenegraph.org/viewtopic.php?p=19660#19660 (http://forum.openscenegraph.org/viewtopic.php?p=19660#19660)
> > 
> > 
> > 
> > 
> > 
> > _______________________________________________
> > osg-users mailing list
> >  ()
> > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org (http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org)
> > 
> 
> 
>  ------------------
> Post generated by Mail2Forum


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







More information about the osg-users mailing list