Menu
Lumberyard
User Guide (Version 1.13)

Creating Camera Shake

This topic references tools and features that are legacy. If you want to use legacy tools in Lumberyard Editor, disable the CryEntity Removal gem using the Project Configurator or the command line. To learn more about legacy features, see the Amazon Lumberyard Legacy Reference.

Most moving cameras in the real-world have some degree of shake. You can add shake to your cameras for more realism.

Unlike the amplitude parameter in the ViewShakeEx Flow Graph node, camera shake involves separate overlapping and accumulating values and multipliers of amplitude and frequency parameters in both the Rollup Bar and the Track View editor to achieve the final effect.

The following guidelines can be followed to achieve realistic camera shake effects:

  • Keep shaking restrained, don't overdo it.

  • Vary the amplitude and frequency values.

  • Edit curve and key values appropriately.

  • Try to mimic the corresponding effect in the real-world for what is happening in the scene.

You can adjust the following static parameters in Rollup Bar (under Camera Params) for a camera entity for the desired effect. These parameters are the primary, non-animating parameters which you can further tweak in the Track View editor.

Camera Shake Parameters

Parameter Description
Amplitude A Intensity of the camera shake
Amplitude A Mult. Multiplier for Amplitude A value
Frequency A How rapidly the camera changes orientation
Frequency A Mult. Multiplier for Frequency A value
Noise A Amp. Mult. Multiplier for Noise A Amp value
Noise A Freq. Mult. Multiplier for Noise A Freq value
Time Offset A Delay time for camera shake
Amplitude B Intensity of the camera shake
Amplitude B Mult. Multiplier for Amplitude B value
Frequency B How rapidly the camera changes orientation
Frequency B Mult. Multiplier for Frequency B value
Noise B Amp. Mult. Multiplier for Noise B Amp value
Noise B Freq. Mult. Multiplier for Noise B Freq value
Time Offset B Delay time for camera shake

To achieve realistic camera shake, it is important to edit the fCurves using the Curves editor in the Track View editor. When you add a shake keyframe, the default fCurve values have wide tangents which cause extreme easing in and out time values. However, most of the time, the goal is to have an immediate shake effect, such as for punches or explosions. In this case, the curve must be edited to have very rapid build up time, as shown below.