Re: [osg-users] loading animated scene with camera

2008-02-15 Thread Robert Osfield
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.

On Fri, Feb 8, 2008 at 3:20 PM, Tomas Larsson [EMAIL PROTECTED] wrote:




 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


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


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


Re: [osg-users] loading animated scene with camera

2008-02-15 Thread Tomas Larsson
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

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Robert
Osfield
Sent: den 15 februari 2008 12:27
To: OpenSceneGraph Users
Subject: Re: [osg-users] loading animated scene with camera

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.

On Fri, Feb 8, 2008 at 3:20 PM, Tomas Larsson [EMAIL PROTECTED]
wrote:




 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


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


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

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


[osg-users] loading animated scene with camera

2008-02-08 Thread Tomas Larsson
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

 

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