maya camera zoom and position

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
HiGuys
Posts: 3
Joined: Wed Jul 27, 2016 11:20 pm

maya camera zoom and position

Post by HiGuys »

im trying to use maya camera to display my 3d data.

i want to set the point of rotation to the center of my 3D data.


ICameraSceneNode* camera = smgr->addCameraSceneNodeMaya();
if (camera){
camera->setTarget(core::vector3df(350, 80, 100));
camera->bindTargetAndRotation(1);
camera->setFarValue(200000.0f);
}

this is the code. how i can control the rotate point?

Also i found that i can use zoom by clicking the mouse wheel and drag the mouse to left of right.

But, i want to use zoom by rolling the mouse wheel.
Can i change it like this?

Im superb beginner.

Please help me :)
Thanks.
CuteAlien
Admin
Posts: 9633
Joined: Mon Mar 06, 2006 2:25 pm
Location: Tübingen, Germany
Contact:

Re: maya camera zoom and position

Post by CuteAlien »

The camera-animators are pretty simple and basically for quick prototyping. If you need more than they offer (like you do here) you will have to write your own camera-animator. You can look at the code of the existing ones to get an idea how to do that.
IRC: #irrlicht on irc.libera.chat
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm
Post Reply