Hi Yann,

On 24/08/11 23:17 , Yann Blaudin de Thé wrote:
> #include <osg/Shape>
> #include <osg/ShapeDrawable>
> #include <osg/Geode>
> #include <osgViewer/Viewer>
> 
> int main(int argc, char *argv[]) {
>     osg::Group* root = new osg::Group;
>     osg::Geode* geode = new osg::Geode();
> 
>     geode->addDrawable(new osg::ShapeDrawable(new 
> osg::Sphere(osg::Vec3(0.,0.,0.), 1.)));
>     root->addChild( geode );
> 
>     osgViewer::Viewer viewer;
>     viewer.setSceneData( root );
>     viewer.realize();
> 
>     while( !viewer.done() )
>         viewer.frame();
> 
>     return 0;
> }

No idea - it looks fine and works for me (also on Lion).
Your best bet is probably to run it from gdb and see where it barfs.

When you say loading a .3ds works fine, is that through osgviewer or your own 
application?

HTH,
Cheers,
/ulrich
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to