Skip to reading
Shaders, Effects & Layered Scenery

56. Parallax is not a walk-behind mask

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

A parallax plane creates relative image movement. A walk-behind controls when part or all of a character is hidden by foreground scenery. A screen overlay decorates the view above the world. These are three different jobs.

Source table from 56. Parallax is not a walk-behind mask, page 60
NeedUse
Distant scenery slides slowlyA Parallax Plane with a small factor.
A nearby branch moves fasterA transparent near plane with a larger factor and appropriate composition.
The player walks behind a painted counterA Walk-Behind image/polygon and an authored baseline.
A fixed decorative frame around the gameScreen Overlay with parallax off.
Clickable frame controlsA GUI with buttons or images and event assignments.

For a counter, a walk-behind baseline decides when the player is behind it. Do not try to solve that by changing only a parallax factor. In a current stage, walk-behind image planes and polygons have their own setup and transparency behavior.

For a 3D prop in a 2.5D scene, use the ordinary scene placement and collision controls. Its visual position, physical collider and interaction volume are separate from image-layer scroll.

If the character vanishes unexpectedly, inspect walk-behind visibility/baselines and layer order before changing its model or animation. If the camera will not reveal the rest of the picture, inspect camera bounds separately from navigation.

Page 60 of 93Permalink
Go to page