[osg-users] why geode==null,please read my following codes.Thanks。

Wang Rui wangray84 at gmail.com
Tue Nov 17 06:42:07 PST 2009


Hi Xiao Han,

Check the root of 'road_deming.ive' first, is it really a geode?
Cheers,
Wang Rui


2009/11/17 Xiao Han <xhgis at 163.com>

> 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
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20091117/38488daa/attachment.htm>


More information about the osg-users mailing list