Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Computer Graphics Resources and Rust Crates

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:

  1. 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.

  2. 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.

  3. 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/ray-tracing-rs is a Rust implementation following the Ray Tracing in One Weekend tutorial series, serving as a practical reference for translating the C++ book code into idiomatic Rust.

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.

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

tiny-skia

CPU 2D vector graphics

Headless rendering, SVG/PDF rasterization, and portable 2D drawing without GPU dependencies.

vello

GPU 2D vector graphics

High-throughput, compute-shader-accelerated 2D vector rendering on top of wgpu.

wgpu

GPU 3D / compute

Cross-platform WebGPU-style 3D rendering and general GPU compute pipelines (Vulkan, Metal, DX12, WebGPU).

image

Raster image I/O

Encoding/decoding PNG, JPEG, WebP, etc., and basic pixel buffer manipulation.

References