Hi Sara,
On Thu, Mar 12, 2009 at 11:58 AM, Sara <[email protected]> wrote:
> hi Robert,
> variables were all set, I believe, correctly,
Your posted code segment was in error. Perhaps it was just a copy and
paster into email error... but it is wrong in the email. The last
line should be
return viewer.run();
Or
viewer.run();
return 0;
NOT
viewer.run(); return();
> the error of the kernel on me by the staff of "viewer.setSceneData (osgDB::
> readNodeFile (" cow.osg "));"
This type of line is correct, but not necessarily and ideal way to
code as the readNodeFile() could return a NULL if no model is loaded.
Try breaking the readNodeFile out into it's own line and check the
return value before passing to the viewer.
Robert.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org