[osg-users] loading animated scene with camera

6 views
Skip to first unread message

Tomas Larsson

unread,
Feb 8, 2008, 10:20:08 AM2/8/08
to openscenegraph maillist

Hi all,

I’m trying to use OSG to load a simple 3d scene with an animated cube and a camera.

I’ve tried different format like collada and osg (exported from max with osgExp) But in all cases the camera in the scene is ignored.

This happens in both my own test app and in the osgviewer app. Anyone know why this happens? And how do I make osg use camera in scene?

 

Tomas

 

Robert Osfield

unread,
Feb 15, 2008, 6:26:53 AM2/15/08
to OpenSceneGraph Users
Hi Tomas,

When you say camera in the scene, what do you mean? The OSG's
osgViewer library has an osg::Camera that you can control via a
CameraManipulator or just directly in the main loop.

Robert.

> _______________________________________________
> osg-users mailing list
> osg-...@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
_______________________________________________
osg-users mailing list
osg-...@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Tomas Larsson

unread,
Feb 15, 2008, 8:45:32 AM2/15/08
to OpenSceneGraph Users
Hi,
I meant the camera in the .osg file. When loading the scene the camera
didn't "setup" automatically as I thought.
But that's not a problem anymore, I noticed that the animated camera was
saved as a "PositionAttitudeTransform" node
So I used that as view matrix manually. Just me not being familiar with osg.

Tomas

Reply all
Reply to author
Forward
0 new messages