DocsGRADEEffects

Ghost World

6 min read

On this page

Ghost World ("Beyond the Veil") lays a spirit realm over the scene: the world drained of colour and tinted with the light of the other side, wavering in slow curling currents, ethereal mist in the distance, spectral outlines, floating motes, a heartbeat, glowing spirits only visible on this side, and screen transitions to cross between the physical world and the ghost world.

Studio categoryGameplay (Add Effect > Gameplay > Ghost World)
Pipeline stagePost Colour, right after Supernatural (display colour)
Works inLive views (viewports, PIE, games, Movie Render Queue) and Image mode; the scene depth adds features in live views
C++ / BlueprintFGradeLayer::Effects.GhostWorld (FGradeGhostWorld), paths Effects.GhostWorld.<Field>
ReferenceGhost World parameters

Two controls: Intensity and Transition Progress

  • Intensity (0..100, keyable) is how strong the ghost world look is: 100 = fully in it.
  • Transition Progress (panel: Ghost world (progress), shown as 0..100 %; the property is 0..1, keyable) is where the switch stands: 0 = the physical world, 1 = the ghost world; in between, the chosen transition plays.

A new Ghost World effect starts at progress 1 (you see the ghost world at once while you design it). For gameplay, set it to 0 in your level's look and let the Blueprint nodes (or a cinematic, see below) cross over.

Transitions

TransitionWhat you seeStart point
FadeA cross fade with a spectral flash half way (Front glow)-
Ripple (default)A shockwave ring with refraction spreads and leaves the ghost world inside itStart X / Y, or the anchor actor on screen
Noise DissolveThe world burns away through noise with a glowing edge-
Depth SweepA wave travels outward through the world by distance: near things switch first, far things and the sky lastOutward from the camera, or as a sphere around the anchor actor; without depth: a ring from Start X / Y
Radial WipeA clock wipe around a pointStart X / Y, or the anchor actor on screen
Vertical WipeA wipe from top to bottom-
GlitchDigital tearing and flicker-

Transition settings (group Transition):

SettingMeaning
DurationSeconds of a whole switch for the Preview button and for the Blueprint nodes called with a negative Duration (default 1.5)
Front width, Front glow, Front colourThe glowing border between the two worlds
Front refractionThe image bends along the front (the shockwave of Ripple, the heat of Noise Dissolve, the tearing of Glitch)
Pattern sizeSize of the Noise Dissolve pattern and of the Glitch blocks
Sweep distanceDepth Sweep: distance in cm the wave has travelled when the switch ends (default 6000)
Start X / Start YStart point on screen (0,0 top left .. 1,1 bottom right)
Start from actorAn actor the switch spreads from (the player, a relic). Live views only; empty = Start X / Y

Switching from Blueprint

Nodes of the Ghost World library (category GRADE > Ghost World):

NodeWhat it does
Enter Ghost World (Volume, Transition = Ripple, Duration = -1) > SuccessCrosses over into the ghost world with Transition
Exit Ghost World (same pins) > SuccessReturns to the physical world; false when the volume has no Ghost World
Toggle Ghost World (same pins) > EnteringEnters when in the physical world (or on the way back to it), else exits; returns true when it now goes to the ghost world
Is In Ghost World (Volume)True when the volume is in, or switching towards, the ghost world
Get Ghost World Progress (Volume)Transition Progress, 0 physical .. 1 ghost (0 when the volume has no Ghost World)

Advanced pins of Enter / Exit / Toggle: Anchor (an actor the switch spreads from: Ripple, Radial Wipe and Depth Sweep), Override Center + Center (a start point on screen instead; it also clears an older anchor).

How they work:

  • Volume empty = the main volume (the enabled unbound volume with the highest priority). They act on the top-most enabled layer with Ghost World on. Enter switches Ghost World on in the top layer when no layer has it, starting from the physical world.
  • Duration is seconds of game time for a whole switch (a negative value uses the layer's Duration). A switch reversed half way takes half the time; a new call replaces the running switch smoothly from where it is. 0 jumps at once.
  • The switch runs in a small world subsystem: no Tick in your Blueprint. A paused game holds the switch; it also plays in editor worlds (Editor Utility previews).
  • In a game or PIE, a volume that uses a preset gets its own copy of the layers first (the preset asset is never changed).

Example (step list): a "spirit sight" ability.

  1. In your level's look, add Ghost World and set Ghost world (progress) to 0.
  2. On the ability key, call Toggle Ghost World with Transition Depth Sweep, Duration 1.2 and Anchor = the player pawn: the ghost world spreads out from the player through the world.
  3. Use Is In Ghost World to enable the gameplay that only exists on the other side (and give spirit actors Render CustomDepth Pass, see below).

Sequencer: the layers live in an array that Sequencer cannot key directly. Key Preset Blend between your look at progress 0 and a copy saved as a GRADE Preset at progress 1 (same transition), or drive Effects.GhostWorld.TransitionProgress with Set Layer Parameter from a Blueprint float exposed to cinematics (see In Sequencer). The transition type is a setting of the layer.

Preview switch (editor)

The Transition group has a Preview switch button. It plays the selected node's switch in the viewport or the image: into the ghost world over Duration, a short hold, then back to the physical world, with the node's transition and settings. Transition Progress is put back afterwards; there is no undo step and nothing is saved. Click again (Stop) to stop; it also stops when you change node, volume or mode, or edit something. Editor viewports must be Realtime to animate.

The look of the ghost world

GroupSettings
LookGhost colour and Tint, Desaturation (default 75), Shadows / Highlights colours and Split tone, Darkness, Ethereal glow (a soft tinted bloom that lifts the shadows like light through a veil), Vignette, Chromatic split
DistortionStrength, Scale, Speed (0 = frozen): flowing, curling currents rising like smoke. More with distance: with depth, near things stay readable and the far world wavers
Mist & EdgesMist, Mist colour, Half density at (cm), Wisps (0 = smooth fog); Spectral outlines, Outline colour, Outline width
ParticlesMotes (floating motes of light drifting upwards), Mote size, Mote colour; Heartbeat (vignette, outlines and a slight pull throb with a double beat) and Beats per minute; Spirit glow and Spirit colour
AdvancedAfterimages (moving things leave fading ghost copies, live views only), Spirit stencil

Spirits (Custom Depth)

Actors with Render CustomDepth Pass on glow in Spirit colour, but only in the ghost world: on the physical side they look as usual. Requirements:

  1. Project Settings > Rendering > Custom Depth-Stencil Pass: Enabled, or Enabled with Stencil to pick one group.
  2. On the spirit's meshes, Render CustomDepth Pass on (and a CustomDepth Stencil Value to filter by Spirit stencil; 0 = every actor with Custom Depth).

See also Custom Depth setup.

Live views and Image mode

FeatureLive viewsImage mode and stills
MistFills the distance from the scene depthA faint drifting veil
DistortionGrows with distance (More with distance)Even over the frame
Spectral outlinesDepth and surface creasesBrightness edges
Depth SweepTravels through the world (or around the anchor)A ring from Start X / Y
Start from actorYesNo
AfterimagesYes (per-view history)No
SpiritsYes (Custom Depth)No

Cost and memory

Estimated GPU time at 1080p on a mid-range GPU (not measured on your hardware; events GRADE.GhostWorld*): Low about 0.35 ms, Medium 0.5 ms, High 0.6 ms, Epic 0.8 ms, plus about 0.1 ms with spirits. While Afterimages is above 0, each live view keeps one RGBA16F history frame (16 MB at 1080p), recreated on a size change and released when the view stops rendering.

Looks

Four looks in the Worlds group:

LookCharacterTransition
Beyond the VeilCold cyan, slow rising currents, mist, glowing outlines, motes, a faint heartbeatRipple
Spectral RealmA green-teal soul realm, almost no colour, strong currents, thick wisps, bright spirit outlinesNoise Dissolve
Wraith SightDark violet night world, hot magenta spirits, sharp outlines, afterimages, a racing heartbeatDepth Sweep
LimboA pale bleached limbo, warm white veil of glow and mist, golden motes, barely any distortionFade

Ghost World is independent from the older Supernatural spirit world (one kept hue, portal, aura, upside down), which is still available: see Game Effects.