Skip to reading
Shaders, Effects & Layered Scenery

74. Add shake, snow changes and restrained motion

Edition 0.86.4.0

Revised 0.86.4.0 edition with new supplements; earlier 0.86.3.4 lessons and screenshot labels are retained within the supplied PDF.

Download PDFView PDF page
Source table from 74. Add shake, snow changes and restrained motion, page 78
ActionUse
Zoom Blur / Stop Zoom BlurA radial pulse or a deliberately held state. Strength is 0-1; duration is seconds.
Camera ShakeOffsets a 3D camera. It is distinct from shaking the composed screen.
Shake Screen / Stop Screen ShakeShakes scene, FMV and UI layers. Power is in pixels; duration is seconds; choose both/horizontal/vertical.
Set Room TintChanges the room post-process tint color and strength. It sets a custom room treatment.
Set Snow AccumulationChanges visual surface accumulation amount with duration or pace. Author the snow treatment first.
Melt Accumulated SnowAnimates the accumulation down. It does not delete ordinary snow particles.
Code example
await ShakeScreen({"direction":"both",
    "duration":0.3,"power":5.0})
# For an authored Snow screen/surface setup:
await SetSnowAccumulation({"sceneId":"lab","amount":0.8,
    "duration":10.0,"waitForCompletion":false})

Use a small shake for a small event. A player should still understand the room and the hotspot position after it. If you expose an effects preference in the game’s GUI, let it reduce strong grain, blur, flicker and shake as well as particle density.

Depth of field is a camera feature requiring Mobile or Forward+. Volumetric fog requires Forward+. In this version ordinary fog, glow, shadows and reflection probes have paths across the three renderers. Restart the editor/game backend when changing renderer; restarting only the preview does not change the editor backend.

Page 78 of 93Permalink
Go to page