Page 1 of 1

camera manipulation

Posted: Wed May 11, 2005 10:15 am
by Rabid Mantis
I'm trying to be able to get the angle/rotation/position of the camera and set it. I looked through some of the api, and I think i might be misusing the functions. here's an example of what I'm doing:

camera = smgr->addCameraSceneNodeMaya();
vector3df bleh;
bleh.X = 0;
bleh.Y = 0;
bleh.Z = 0;
camera->setRotation(bleh) ;
camera->setPosition(bleh) ;

when I run the program, it doesnt seem to do anything, no matter where I move the code around to. I can still rotate, zoom, translate, etc... What am I doing wrong?

Posted: Wed May 11, 2005 2:43 pm
by esmanical
I think that U can't set position of Maya camera as with FPS camera, and rotation is definitivly not working, try with:

camera->setTarget(core::vector3df("some coordinates"));

greetz

Posted: Wed May 11, 2005 7:51 pm
by jox
In Irrlicht 0.9 the maya cams setPosition and setTarget should work properly since Niko included my fixes for that:

http://irrlicht.sourceforge.net/phpBB2/ ... php?t=5969

Posted: Wed May 11, 2005 10:55 pm
by Rabid Mantis
jox wrote:In Irrlicht 0.9 the maya cams setPosition and setTarget should work properly since Niko included my fixes for that:

http://irrlicht.sourceforge.net/phpBB2/ ... php?t=5969

If it's working properly, how do I make it work? Should I do what esmanical said? thanks for helping :D