camera manipulation

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
Rabid Mantis
Posts: 61
Joined: Sun May 08, 2005 11:30 am

camera manipulation

Post 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?
esmanical
Posts: 2
Joined: Tue Apr 26, 2005 2:20 pm
Location: Serbia

Post 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
jox
Bug Slayer
Posts: 726
Joined: Thu Apr 22, 2004 6:55 pm
Location: Germany

Post 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
It is like it is. And because it is like it is, things are like they are.
Rabid Mantis
Posts: 61
Joined: Sun May 08, 2005 11:30 am

Post 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
Post Reply