Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!
This post collects high-signal learning resources for computer graphics—covering physically based ray tracing and 2D vector rasterization—alongside key crates in the Rust graphics ecosystem (see also Useful Rust Crates).
Books & Tutorials¶
Ray Tracing in One Weekend — The Book Series¶
Ray Tracing in One Weekend (written by Peter Shirley, Trevor David Black, and Steve Hollasch, released under CC0) is the standard hands-on introduction to writing a physically based path tracer from scratch. The series consists of three progressive books:
Ray Tracing in One Weekend: Builds a brute-force path tracer from scratch, covering rays, camera geometry, anti-aliasing, and diffuse, metal, and dielectric (glass) materials.
Ray Tracing: The Next Week: Adds motion blur, Bounding Volume Hierarchies (BVH) for acceleration, texture mapping, Perlin noise, quads, volumes/fog, and emissive light sources.
Ray Tracing: The Rest of Your Life: Covers Monte Carlo integration, probability density functions (PDFs), importance sampling, and rendering the Cornell Box accurately.
ray-tracing-rs¶
aarestad
2D & 3D Graphics Crates in Rust¶
tiny-skia¶
tiny-skia is a small, pure-Rust, CPU-only 2D vector graphics library ported from a subset of Google’s Skia engine.
Strengths: High-quality anti-aliased path rendering, strokes, gradients, and blend modes without C++ FFI, OpenGL/Vulkan, or GPU driver dependencies. Supports
no_std(withalloc).API style: Exposes a low-level API (explicit transforms, clipping masks, and shaders) rather than a stateful high-level canvas, making it ideal as a rendering backend.
Ecosystem adoption: Powers major Rust rendering tools such as
resvg(SVG rendering) andtypst-render(Typst typesetting).
Complementary Rust Graphics Crates¶
For broader 2D/3D graphics work in Rust, tiny-skia pairs well with or is complemented by:
Table 1:Rust Graphics Crates Overview
Crate | Domain | Best Use Case |
|---|---|---|
CPU 2D vector graphics | Headless rendering, SVG/PDF rasterization, and portable 2D drawing without GPU dependencies. | |
GPU 2D vector graphics | High-throughput, compute-shader-accelerated 2D vector rendering on top of | |
GPU 3D / compute | Cross-platform WebGPU-style 3D rendering and general GPU compute pipelines (Vulkan, Metal, DX12, WebGPU). | |
Raster image I/O | Encoding/decoding PNG, JPEG, WebP, etc., and basic pixel buffer manipulation. |