Hi Ulrich,
It is through my own application. What did you pass as arguments to
cmake? I used :
OSG_WINDOWING_SYSTEM=Coca
CMAKE_ARCHITECTURE='i386;x86_64'
OSG_DEFAULT_IMAGE_PLUGIN_FOR_OSX=imageio
CMAKE_BUILD_TYPE=Release
Le 25 août 2011 à 09:50, Ulrich Hertlein a écrit :
> 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
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org