Camera Mode: Noise
Simple random noise filter that adds small positional jitter to the camera. Creates a subtle handheld or vibration effect.
Simple random noise filter that adds small positional jitter to the camera. Creates a subtle handheld or vibration effect.
Overview
A hidden camera mode that periodically generates random XYZ offsets and adds them to the camera position. Updates the random offset every 0.1 seconds to create a choppy, realistic noise effect.
Class Properties
| Property | Type | Default | Description |
|---|---|---|---|
hidden | bool | true | Not selectable by the user |
factor | number | 0.2 | Amplitude of random noise |
offset | vec3 | vec3() | Current noise offset vector |
timeSinceRandom | number | 100000 | Timer for offset refresh (starts large to trigger immediately) |
Methods
| Method | Signature | Description |
|---|---|---|
init | C:init(factor) | Set noise amplitude factor |
update | C:update(data) | Apply random noise to camera position |
Noise Generation
-- Refresh random offset every 0.1 seconds
self.timeSinceRandom = self.timeSinceRandom + data.dt
if self.timeSinceRandom > 0.1 then
self.offset = vec3(
(math.random() - 0.5) * self.factor,
(math.random() - 0.5) * self.factor,
(math.random() - 0.5) * self.factor
)
self.timeSinceRandom = 0
end
data.res.pos = data.res.pos + self.offsetKey Notes
- Offset range is
[-factor/2, +factor/2]per axis - Updates at 10 Hz (every 0.1s) - produces discrete, choppy jitter
- Does not affect rotation or FOV - position only
- Not a filter (
isFilternot set) - used as a standalone mode component
See Also
- Camera Mode: Autopoint - Related reference
- Camera Mode: Autozoom - Related reference
- Camera Mode: Big Map - Related reference
- Core Systems Guide - Guide
Camera Mode: Manual Zoom
Filter camera mode providing manual FOV zoom control via player input (zoom in/out bindings). Displays a UI notification when FOV changes.
Camera Mode: Observer
Global camera mode that uses scene-placed camera objects to view the action. Supports bullet-time speed control, position blending, and target override for cinematic scenario cameras.