Hacker News new | ask | show | jobs
by isgb 456 days ago
Is there any way to simulate (maybe even interactively) things like focus and zoom? It would be cool to have some way to shift lenses (or lens groups) along the optical axis and visualize how light rays get projected onto the image plane.
1 comments

That would be cool indeed! Not really a focus of this project - and kinda complex because it's all in python. Only the rendering widget is in JS, but it's only passively displaying the input data it gets as JSON.

Check out this project[1] which kinda does that, although it's 2D only as far as I know. But it's fully interactive, which is super neat.

[1] https://phydemo.app/ray-optics/