Re: [osg-users] osgDB::readNodeFile question.

2008-11-09 Thread Robert Osfield
Hi YangXiao,

This is basic debugging... is model_geode a NULL??

Also why the word geode in the ptr, readNodeFile returns  Node* not
Geode*.   Most scene graphs will not have a Geode at the top of the
scene graph.  Since you don't supply the offending code we can't
really guess at what mistakes you've actually made.

Robert.

2008/11/9 YangXiao <[EMAIL PROTECTED]>:
> Hi everyone
>   I write a  test.osg file and use osgviewer test.osg .It's OK.
>  But   When i  osgDB::readNodeFile read a *.osg file and ->
> viewer->setSceneData(model_geode);
>  return viewer->run();
> It's a runtime error Below.
>
> Best Regards.
> YangXiao
>
>
>
>
> 
> 雅虎邮箱,您的终生邮箱!
> ___
> 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


[osg-users] osgDB::readNodeFile question.

2008-11-09 Thread YangXiao
Hi everyone
I write a  test.osg file and use osgviewer test.osg .It's OK.
   But   When i  osgDB::readNodeFile read a *.osg file and ->
  viewer->setSceneData(model_geode);

   return viewer->run(); 
  It's a runtime error Below.
   
  Best Regards.
  YangXiao
   
   
   

   
-
 雅虎邮箱,您的终生邮箱!<>___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org