Obvious Feature Suggestion

Discuss about anything related to the Irrlicht Engine, or read announcements about any significant features or usage changes.
Post Reply
shadov
Posts: 1
Joined: Wed Sep 05, 2007 2:13 pm

Obvious Feature Suggestion

Post by shadov »

Hi all,

I think most members at the Irrlicht would like to see MoveSpeed and RotateSpeed properties added to the CameraSceneNode class.

As you know these can only be set as parameters while creating the camera which won't allow you to change their values at run-time... So the only solution currently I see is creating 3 cameras with different speeds such as CameraWalk, CameraCrouch, CameraRun... And keep all positions tied at all times... Then you can switch between cameras at run-time...

So what do you think?
thanks..
vitek
Bug Slayer
Posts: 3919
Joined: Mon Jan 16, 2006 10:52 am
Location: Corvallis, OR

Post by vitek »

You only need to update the camera properties of the inactive camera when it becomes the active camera. You don't need to do it all the time.

The cameras all implement the ICameraSceneNode interface. Consider that not all cameras have a RotateSpeed and MoveSpeed. Consider a static camera.

One possible solution would be to make an ICameraSceneNodeFPS interface that exposed accessors for getting and setting those properties specific to the fps camera.
It has been discussed several times to seperate the camera controller from the camera concept. The camera would just have properties that all cameras have, and there would be a camera controller that had all of the camera movement logic in it.

Travis
hybrid
Admin
Posts: 14143
Joined: Wed Apr 19, 2006 9:20 pm
Location: Oldenburg(Oldb), Germany
Contact:

Post by hybrid »

Yes, that feature was already under development, but I think that bitplane has postponed it for a while. There will be kind of scene node animators for cameras.
christianclavet
Posts: 1638
Joined: Mon Apr 30, 2007 3:24 am
Location: Montreal, CANADA
Contact:

Post by christianclavet »

That will be very interesting to have. Also a way to change and get the value of the node animator. We would then be able to change the speed of the FPS Camera, jump etc.
Post Reply