[osg-users] camera export and osgexp

Tomas Larsson larsson.tomas at gmail.com
Thu Feb 7 07:40:36 PST 2008


Hi,

 

I've made a scene in 3ds-max and exported the scene to osg with OsgExp. It
works fine except for that the camera is not use when running the scene.

If I open the osg file I see that the camera transformation is in there. I
load the scene like this.

 

osg::Group* root = new osg::Group();

osg::Node* model = osgDB::readNodeFile("test.osg");

root->addChild(model);

viewer.setSceneData( root );

viewer.run()

 

Is there some special care that needs to be taken to make it use the camera
in the osg file?

 

Thanks,

Tomas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20080207/d42e9832/attachment.htm 


More information about the osg-users mailing list