Guides
How RASM works
Each guide explains one rendering technique on its own, with pictures first, and ends with an "In RASM" part that shows what the engine does and where in the code. Read them to learn a technique or before you change the engine. To build an application, the API reference is the place to start.
Start with the tour →Three pages that show how RASM fits together: the big picture, one frame, and the GPU scene tables.
Find a guide by topic →From a task (shadows, picking, point clouds, …) to the guide that explains it.
All guides →Every guide, in reading order and grouped by theme.
The engine on one page
Each box is a guide. Click one to open it. The top row runs on the CPU, the middle row on the GPU. Boxes with an orange border are tour pages that show how RASM fits together; the others explain one idea each.
CPU work
GPU work
How a guide is built
Every concept guide has the same shape, so you always know where to look.
- In shortthe whole idea in five lines
- The problemwhat goes wrong without it
- How it workspictures, then the math
- Variants and pitfallsthe choices, and the usual bugs
- In RASMwhat the engine does, and where in the code
| On every page | What it does |
|---|---|
| On this page (right side) | The sections of the page. The one you are reading is marked. |
| Find a page (top left, or press /) | Type a few letters to filter the list of pages. Enter opens the first match. |
| ⤢ on a picture | Shows the picture large. Esc closes it. |
| ◀ Back / Next ▶ on a picture | Steps through the states of one diagram. The arrow keys work too. |
| Colors | Blue is CPU work, green is GPU work, amber is memory (buffers, textures), purple is shader code. |
Find a guide by topic
| You want to… | Read |
|---|---|
| use RASM from C, Python, C#, Rust or Zig | A stable C ABI |
| draw Dear ImGui windows from a binding (cimgui, ImGui.NET, imgui-rs) into RASM's frame | Two copies of one library |
| understand the engine before changing it | The big picture, One frame, The GPU scene tables |
| draw map vector data: roads, lakes, points | Vector lines, polygons and points |
| name places on a map: labels that never overlap | Text and labels |
| select what the mouse is over: an object, a road, a point on the ground | Picking |
| show a reference grid, or CAD views that pan and zoom (orthographic) | Reference grids, pan and zoom |
| draw a point cloud (LiDAR, a scan) colored by a value | Point clouds |
| draw a vector field, particles or markers: a shape per data point, colored by a value, and streamlines | Instanced glyphs and data lines |
| draw dense see-through data (nested iso-surfaces, volume slices, see-through parts, glyphs) with no sorting artifacts | Weighted blended transparency, after Transparency and alpha modes |
| save a still far larger than the screen (8K, 16K, a print poster) with no seams, as a 16-bit PNG or an EXR | Tiled offscreen export, after Headless rendering and readback |
| stream a LAS or LAZ scan bigger than GPU memory | Streaming point clouds |
| draw terrain from height map tiles | Terrain from height maps |
| stream a map or an open world under a memory budget | Tile streaming under a memory budget |
| add a render pass or post effect | Render graphs |
| use last frame's image, several outputs, or less memory for render targets | History buffers, Multiple render targets, Transient memory and aliasing, Load and store ops |
| make the image brighter or darker, or change how bright lights look | Tone mapping and exposure |
| smooth jagged edges | MSAA and alpha-to-coverage |
| smooth edges, thin lines and highlights over frames | Temporal anti-aliasing |
| make bright lights glow | Bloom |
| light a scene with a sky photo, show the sky behind it | Image-based lighting |
| add shadows to a scene | Shadow mapping, Cascaded shadow maps, Shadows of spot and point lights |
| play a glTF model's animations | Keyframe animation |
| play a skinned glTF character (joints and weights) | Skinning |
| blend a glTF mesh between shapes (morph targets), from a clip or from the application | Morph targets |
| see normals, UVs, overdraw, LODs, culling, light counts or meshlets on screen | Debug views |
| look at a render target, a depth, a Hi-Z level, the light clusters or an entity's GPU table rows while it runs | Inspecting GPU resources |
| show several views at once: split screen, a map in the corner, editor viewports, a camera's picture on a TV or in the UI | Many views of one scene |
| move cameras with your own input, or several cameras at once | Camera controllers |
| add debug windows, sliders or tool panels to an app | Immediate-mode UI |
| change a GPU struct or a shader | Struct layout rules |
| find why something is slow | GPU timing and frame statistics |
| draw only the visible parts of big, dense meshes | Meshlets and cluster culling |
| keep a frame free of heap allocations, or find the ones it makes | Heap memory in the frame |
| load without slowing the frames: copies on the GPU's copy engine | Transfer queues and ownership transfers |
| run compute work next to graphics work | Async compute and multiple queues |
All guides
The numbers give a reading order, but each guide stands on its own.