this question has been asked by sunzhuo before. we cannot initialize MAYA camera position.....
is it possible to add one more parameter in addCameraSceneNodeMaya()
or provide serializeAttributes() function,
so that we can change the camera position??
CameraSceneNodeMaya can't be repositioned
-
- Posts: 51
- Joined: Thu Sep 11, 2008 2:24 pm
- Location: Hong Kong
- Contact:
This is by design. The built-in FPS and Maya cameras are intended mostly for prototyping. If you need to expand beyong the default code, your best bet is to start blank with a ICameraSceneNode. You can proably scrape some code out of Irrlicht's source to help get started with something similar to the maya camera.
~DtD
~DtD
If the built-in camera does what you need, you shouldn't have to write your own. I'm not certain that I understand the problem that you're having. Are you complaining that you can't do something like this?
If so, why not just write this code instead?
Travis
Code: Select all
const core::vector3df pos (100.f, 10.f, 1000.f);
scene::ICameraSceneNode* cam = smgr->addCameraSceneNodeMaya(..., pos);
Code: Select all
scene::ICameraSceneNode* cam = smgr->addCameraSceneNodeMaya(...);
const core::vector3df pos (100.f, 10.f, 1000.f);
cam->setPosition(pos);
// call this if you need the camera position to be up to date before the first render
cam->updateAbsolutePosition();