How to Camera Shake and Camera Smoothmovements?

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
random
Posts: 158
Joined: Wed Aug 11, 2010 6:01 am

How to Camera Shake and Camera Smoothmovements?

Post by random »

is there a script to shake the camera ?
i need that for something like an explosion in a game looks like that

http://www.youtube.com/watch?v=2BA_P-3YlEM
http://www.youtube.com/watch?v=vsM41uPP13Q

and

something like that

http://www.youtube.com/watch?v=r6wmJplF0Lo

for smoother camera movements.

will may bullet help me on the smother camera movements?

thx in advance
Fireblade954
Posts: 4
Joined: Sun Jun 19, 2011 2:33 pm

Re: How to Camera Shake and Camera Smoothmovements?

Post by Fireblade954 »

would like to know the same.
Laptev
Posts: 27
Joined: Tue Jun 03, 2008 4:36 am
Location: Romania

Re: How to Camera Shake and Camera Smoothmovements?

Post by Laptev »

Hello random,
I have done something like that in an old project. I just combined two animators: one for folowing the target smoothly and another one to move the camea around to simulate an explosion.After the second animator moves the camera haoticaly, the first one smoothly returns it to the original position.
You can have a look in the source code if you want.

Btw, in the demo use wasd to move and space bar to set bomb.
Download linke here.
Post Reply