Skip to reading
Shaders, Effects & Layered Scenery

55. Give each layer enough spare image

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

Parallax can move a layer’s edges into view. A frame that looks perfect at the center can reveal a transparent strip at the left end of the room. Size the artwork for the full camera route, not only the first shot.

Source table from 55. Give each layer enough spare image, page 59
AdjustmentWhat to look for
Widen a near foreground planeIts faster apparent travel needs extra coverage near the ends.
Oversize a distant skyA slow layer should still fill every revealed part of the view.
Preserve transparent cutoutsTransparent areas should reveal another intended layer, not empty space.
Check top and bottomVertical follow, zoom and camera roll can expose corners even when horizontal coverage looks fine.
Test extreme camera positionsWalk to both edges, use zoomed views if the game supports them, and inspect the final output aspect ratio.

1. Stop the camera at the left limit and inspect the whole frame.

2. Repeat at the right limit.

3. Adjust the layer’s width, position or factor if an edge appears.

4. Repeat after changing camera size or final game resolution.

The current stage planes do not automatically tile a finite image forever. A high parallax factor does not invent extra painted scenery. Use sufficiently wide art or a deliberately designed repeated-layer setup.

Page 59 of 93Permalink
Go to page