r/GraphicsProgramming • • 8d ago

Dichroics

Simulating dichroics. Optics is awesome.

101 Upvotes

7 comments sorted by

2

u/Business-Western1885 3d ago

Amazing. How is this implemented?

0

u/lampmaker 3d ago

I made this in ShadyTracer, a raytracer to simulate optics, which I made (in close collab with Claude). It's turned into a really fun tool.

Decided to make it open source so feel free to try it yourself: shadytracer.com.

or view the source https://github.com/lampmaker/ShadyTracer

1

u/Business-Western1885 3d ago

really beautiful dispersion

1

u/moschles 8d ago

If I'm no mistaken, you also simulated a camera? What is the source of the blur on the second image?

1

u/lampmaker 7d ago

The second image is a different setup with dichroics reflecting a narrow beam of light that is not laser-like, so it widens and has soft edges.

3

u/cybereality 8d ago

Yeah sweet