Sway Camera smoothly

Status
Not open for further replies.
Level 22
Joined
Sep 7, 2013
Messages
235
Hi,

I use this function in a trigger for a special effect:
Camera - Sway the camera source for Joueur 1 (Rouge) with magnitude 1000.00 and velocity 50.00

Then 2 seconds later, this one:
Camera - Stop swaying/shaking the camera for Joueur 1 (Rouge)


The beginning is good, the camera starts swaying smoothly from its initial angle.

The problem is the end, the camera resets instantly from its current angle (which is random because of the sway) to its initial angle.
I would like the camera to stop swaying and reset its angle smoothly over time, not instantly.

Any idea?
 

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,285
How do sways stack? If you cannot start another smoothly with lower magnitude then such a fade is not possible. In such a case you wlll just have to use low sway magnitudes (as was intended).

You could also simulate way by modifying the camera position periodically. However this will be less perfect and more resource intensive.
 
Level 22
Joined
Sep 7, 2013
Messages
235
I tried to reduce the magnitude of the sway progressively, but it seems that each time you start a new sway it is centered around the current position, not the initial position. So unfortunately it makes the result even worse.
I guess I have to choose between leave it like that, or try hard math to program my own custom sway... does anyone have an idea of the algorithm used for the sway?
 
Status
Not open for further replies.
Top