Zoom Bands

Crossfade 2D detail layers as the camera zooms, with no popping and no blank zoom levels.
Get Zoom Bands 1.0.0 Source and guide
In a script
var bands := ZoomBandController.new()
bands.camera = $Camera2D
bands.bands = [
ZoomBand.make(^"../Near", 0.0, ZoomBands.Hold.ABOVE),
ZoomBand.make(^"../Mid", -2.0),
ZoomBand.make(^"../Far", -4.0, ZoomBands.Hold.BELOW),
]
add_child(bands)Limits
- 2D only: it reads a
Camera2D, or a zoom value you pass toapply_zoom(z). - It reads
camera.zoom.x, so it assumes the same zoom on both axes. - One
band_widthand one falloff (linear or smooth) for all bands of a controller. - GDScript only. Godot 4.3 or later; tested on 4.3, 4.4, 4.5, 4.6 and 4.7.
- The tests in
addons/zoom_bands/tests/need GUT 9.x. Delete that folder if you do not use GUT.
How it was made
The code, demo scene, tests and documentation were written with Claude, Anthropic's AI model, and checked by Revenantworks with the plugin's own test suite on Godot 4.3 to 4.7. No AI-generated images, sound or fonts in the plugin: the demo draws plain shapes in code, and the editor icons are plain shapes written by hand as SVG text. The store icon in media/ is a placeholder of plain shapes, drawn by a script written with Claude.

