[osg-users] [build] Viewer not working
Robert Osfield
robert.osfield at gmail.com
Mon May 28 23:18:41 PDT 2018
Hi Baka,
You need to pass in a model to the view to see anything i.e.
osgViewer::Viewer viewer;
viewer.setSceneData(osgDB::readNodeFile("cow.osgt");
return viewer.run();
Please have a look at the various OSG examples in OpenSceneGraph/examples.
Robert
On 28 May 2018 at 21:02, Baka Lavr <creeper88555 at gmail.com> wrote:
> Here's code:
>
> Code:
> #include <osgViewer/Viewer>
>
> int main()
> {
> osgViewer::Viewer viewer;
> return viewer.run();
> }
>
>
>
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=73883#73883
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
More information about the osg-users
mailing list