Set Camera Rotation with Roll Pitch Yaw

If you are a new Irrlicht Engine user, and have a newbie-question, this is the forum for you. You may also post general programming questions here.
Post Reply
stark
Posts: 7
Joined: Fri Dec 14, 2012 12:57 pm

Set Camera Rotation with Roll Pitch Yaw

Post by stark »

Hi every body,
i want to set my camera rotation by Roll Pith And yaw param...
how to do it ?
why setRotation not work ?

scene::ICameraSceneNode* camera = smgr->addCameraSceneNodeFPS(0, 100.0f, .3f, ID_IsNotPickable, 0, 0, true, 3.f);

camera->setRotation(core::vector3df(9,3,7));


thanks,
stark
Posts: 7
Joined: Fri Dec 14, 2012 12:57 pm

Re: Set Camera Rotation with Roll Pitch Yaw

Post by stark »

No one know how to do it ??????????????????????????????????

really we can't setup camera from Euler in Irrlicht Engine!!!??
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Set Camera Rotation with Roll Pitch Yaw

Post by mongoose7 »

Well, you asked.

The FPS camera is special, so it is not likely you will be able to mess with it in the manner you envisage.

Since you actually want to set the camera, you should use the base camera class: smgr->addCameraSceneNode(...);
stark
Posts: 7
Joined: Fri Dec 14, 2012 12:57 pm

Re: Set Camera Rotation with Roll Pitch Yaw

Post by stark »

Thank You mongoose7 !!!!!, i try this :

scene::ICameraSceneNode* camera =

smgr->addCameraSceneNode(0,core::vector3df(50,50,-60),core::vector3df(-0,30,-60),ID_IsNotPickable,true);

camera->setRotation(core::vector3df(0,0,50));///want to set roll

yaw and pitch worked But when change roll param no effect see .. :(
mongoose7
Posts: 1227
Joined: Wed Apr 06, 2011 12:13 pm

Re: Set Camera Rotation with Roll Pitch Yaw

Post by mongoose7 »

If there is an 'up' vector, maybe you should change that.
Post Reply