2.0 KiB
Noise properties
Use Noise properties in a Virtual Camera to simulate camera shake. Cinemachine includes a Basic Multi Channel Perlin component, which adds Perlin noise to the movement of the Virtual Camera. Perlin noise is a technique to compute random movement with a natural behavior.
The Basic Multi Channel Perlin component applies a noise profile. A noise profile is an Asset that defines the behavior of noise over time. Cinemachine includes a few noise profile assets. You can edit these and create your own.
To apply noise:
-
Select your Virtual Camera in the Scene view or Hierarchy window.
-
In the Inspector, use the Noise drop-down menu to choose Basic Multi Channel Perlin.
-
In Noise Profile, choose an existing profile asset or create your own profile.
-
Use Amplitude Gain and Frequency Gain to fine-tune the noise.
Properties
Property: | Function: |
---|---|
Noise Profile | The noise profile asset to use. |
Amplitude Gain | Gain to apply to the amplitudes defined in the noise profile. Use 1 to use the amplitudes defined in the noise profile. Setting this to 0 mutes the noise. Tip: Animate this property to ramp the noise effect up and down. |
Frequency Gain | Factor to apply to the frequencies defined in the noise profile. Use 1 to use the frequencies defined in the noise profile. Use larger values to shake the camera more rapidly. Tip: Animate this property to ramp the noise effect up and down. |
Pivot Offset | When rotating the camera, offset the camera's pivot by the indicated x, y, and z distance when applying rotational noise. This generates some positional variation that corresponds to the rotation noise. |