OpticsLab

Optical design and ray-tracing workbench in Rust, from lens layout to tolerances

Image 1 of 3: Cooke triplet cross-section with ray fans, the lens editor spreadsheet and spot diagrams per field

A desktop workbench on egui and wgpu for sequential and non-sequential ray tracing: exact skew rays through conic and aspheric surfaces, paraxial solvers, Seidel and chromatic sums, OPD maps with Zernike fits, damped least squares optimization, Monte Carlo tolerancing and ISO 10110 export.

Trade-offs

  • Clean-room physics: every formula derives from public literature such as Born and Wolf, instead of reproducing commercial optics software, with a CLI and a C FFI beside the GUI.
  • Pure safe Rust with a zero-panic policy in production code, at the cost of a young 0.1 release against decades-old commercial tools.

Q&A2

Exact skew rays through spherical, planar and conic surfaces, even-order aspheres, biconics, coordinate breaks and diffractive elements, with paraxial and real iterative ray aiming toward pupil coordinates.

Reviews

Loading reviews

    More in Graphics

    See all 13 →
    • MuTracerPhysically based path tracer for the web on WebGPU, with a WebGL 2 fallback
    • Procedural TerrainsGPU-driven terrain studio for the browser: boards, endless worlds, planets
    • WhimTexA sprite and texture editor inside Unity, with layers that stay editable
    • TequilaProduct renderer for CAD models with the final image live in the viewport
    • SculptForgeOpen-source digital sculpting app for Linux, macOS and Windows
    • NerthusA node-based terrain generator in Rust that opens and saves Gaea 2 projects

    More in Desktop apps

    See all 102 →
    • HashCortxLocal-first desktop workspace for chat, coding agents and agent teams
    • Charted RootsGenealogy and worldbuilding inside an Obsidian vault, from GEDCOM to maps
    • AudioRouterVisual audio router for Windows 11: route, process and record on a canvas
    • GridlinePattern-based music workstation in C++17, from channel rack to mixer
    • OmagenImage-to-theme studio for Omarchy with reversible previews and recovery
    • OmarchistNative settings app for Omarchy: themes, Hyprland config, keybinds and flows

    More in Rust

    See all 146 →
    • PaganelData migration engine that verifies the destination down to the row
    • FeOxDBEmbedded key-value store in Rust with write-behind durability
    • ai-memoryPersistent memory for MCP clients in one Rust binary over SQLite
    • AntirionAI gateway in one Rust binary, with the admin console built in
    • jc-rsjc rewritten as one static binary that turns command output into JSON
    • OVLTSelf-hosted OIDC server in one Rust binary, multi-tenant through Postgres RLS