# A physically-based GPU ray tracer written in Julia

We ported pbrt-v4 to Julia and built it into a Makie backend. Any Makie plot can now be rendered with physically-based path tracing. Julia compiles user-defined physics directly into GPU kernels, so anyone can extend the ray tracer with new materials and media - a black hole with gravitational lens…

- **Page:** https://magpie.gallery/i/a-physically-based-gpu-ray-tracer-written-in-julia-dlnc
- **Type:** Link to an idea elsewhere
- **Category:** Creative & design
- **Runs on:** windows, macos, linux
- **Tags:** ray-tracing, gpu, rendering, julia, physics

## Source

Web · simondanisch: A physically-based GPU ray tracer written in Julia

- **Original:** https://news.ycombinator.com/item?id=47072444

> We ported pbrt-v4 to Julia and built it into a Makie backend. Any Makie plot can now be rendered with physically-based path tracing. Julia compiles user-defined physics directly into GPU kernels, so anyone can extend the ray tracer with new materials and media - a black hole with gravitational lensing is ~200 lines of Julia. Runs on AMD, NVIDIA, and CPU via KernelAbstractions.jl, with Metal coming soon. Demo scenes: github.com/SimonDanisch/RayDemo https://makie.org/website/blogposts/raytracing/

## GitHub projects

- https://github.com/SimonDanisch/RayDemo

## Rules for reuse

- Build your own version: don't copy another product's code, look, icons, colours or copy.
- The original belongs to its author; Magpie only links to it.
- The original content's copyright belongs to its creator. Magpie doesn't download or re-upload it; we only show the link and the official preview.
