PhantomCameraNoise3D
Inherits: Resource
Is a resource type that defines, calculates and outputs the noise values to a Camera3D
through active PCam3Ds
.
It can be applied to either PhantomCameraNoiseEmitter3D or a PhantomCamera3D noise property directly
Properties
amplitude
Type: float
Default: 10
Defines the size of the noise pattern.
Higher values will increase the range the noise can reach.
frequency
Type: float
Default: 0.5
Sets the density of the noise pattern.
Higher values will result in more erratic noise.
randomize_noise_seed
Type: bool
Default: true
If true, randomizes the noise pattern every time the noise is run.
If disabled, noise_seed can be used to define a fixed noise pattern.
Setter
void
set_randomize_noise_seed (bool
value)
Example
pcam.noise.set_randomize_noise_seed(false)
noise_seed
Type: int
Default: 0
Sets a predetermined seed noise value.
Useful if wanting to achieve a persistent noise pattern every time the noise is emitted.
rotational_multiplier_x
Type: float
Default: 1
Multiplies rotational noise amount in the X-axis.
Set the value to 0 to disable noise in the axis.
Setter
void
set_rotational_multiplier_x (float
value)
Example
pcam.noise.set_rotational_multiplier_x(0.42)
rotational_multiplier_y
Type: float
Default: 1
Multiplies rotational noise amount in the Y-axis.
Set the value to 0 to disable noise in the axis.
Setter
void
set_rotational_multiplier_y (float
value)
Example
pcam.noise.set_rotational_multiplier_y(0.42)
rotational_multiplier_z
Type: float
Default: 1
Multiplies rotational noise amount in the Z-axis.
Set the value to 0 to disable noise in the axis.
Setter
void
set_rotational_multiplier_z (float
value)
Example
pcam.noise.set_rotational_multiplier_z(0.42)
positional_multiplier_x
Type: float
Default: 1
Multiplies positional noise amount in the X-axis.
Set the value to 0 to disable noise in the axis.
Note: Rotational noise is recommended to avoid potential issues with the camera clipping with the environment.
Setter
void
set_positional_multiplier_x (float
value)
Example
pcam.noise.set_positional_multiplier_x(0.42)
positional_multiplier_y
Type: float
Default: 1
Multiplies positional noise amount in the Y-axis.
Set the value to 0 to disable noise in the axis.
Note: Rotational noise is recommended to avoid potential issues with the camera clipping with the environment.
Setter
void
set_positional_multiplier_y (float
value)
Example
pcam.noise.set_positional_multiplier_y(0.42)
positional_multiplier_z
Type: float
Default: 1
Multiplies positional noise amount in the Z-axis.
Set the value to 0 to disable noise in the axis.
Note: Rotational noise is recommended to avoid potential issues with the camera clipping with the environment.
Setter
void
set_positional_multiplier_z (float
value)
Example
pcam.noise.set_positional_multiplier_z(0.42)