Expand description
Headless isometric sprite baker: rasterizes a node subtree into RGBA sprite frames (classic 2:1-ish game isometric) with no window and no GPU.
One frame per azimuth is rendered with an orthographic camera at the given
pitch (true isometric = 35.264°), painter-sorted, Lambert-shaded to match
the viewer’s look, supersampled and box-filtered for crisp sprite edges.
anim_frames > 1 additionally steps the procedural motion
(crate::motion) through one full cycle: the sheet becomes a grid of
views rows × anim_frames columns, each row a seamless animation loop
of one azimuth. anim_frames = 1 keeps the classic horizontal strip.
Encode the result with re_io::png::write_png_rgba8.
Structs§
- Bake
Options - How to bake. Defaults: four frames (N/E/S/W-ish), true isometric pitch, 128 px sprites, 2× supersampling, shaded, one still frame per view.
- Baked
Sheet - A finished sprite sheet. With
anim_frames= 1 a horizontal strip ofviews()images; otherwise a grid ofviews()rows (one per azimuth) ×anim()columns (one per motion sample), row-major in memory.
Functions§
- bake
- Bake the subtree under
rootinto an RGBA sprite sheet:viewsrows (one per azimuth) ×anim_framescolumns (motion samples of one loop).