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.
maya camera zoom and position
Re: maya camera zoom and position
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
Code snippet repository: https://github.com/mzeilfelder/irr-playground-micha
Free racer made with Irrlicht: http://www.irrgheist.com/hcraftsource.htm