{"by":"simondanisch","descendants":92,"id":47072444,"kids":[47077348,47073107,47073086,47073312,47077399,47073687,47073372,47082328,47073066,47085535,47093017,47098901,47098071,47073530,47073938,47074504],"score":198,"text":"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.<p>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.<p>Runs on AMD, NVIDIA, and CPU via KernelAbstractions.jl, with Metal coming soon.<p>Demo scenes: github.com&#x2F;SimonDanisch&#x2F;RayDemo","time":1771498513,"title":"Show HN: A physically-based GPU ray tracer written in Julia","type":"story","url":"https://makie.org/website/blogposts/raytracing/"}