Optics is a 2D geometric optical simulator running in browser, written in javascript. It creates colorful and realistic pictures of light rays traveling throw various medium.
Try it and share it !
- place and tweak a light source and some items by clicking on presets.
- maintain right clic on an item to rotate it, left clic to move it.
- don't forget to change the max ray number to get smoother rendering over time.
- reflective surfaces
- wavelength-dependent refractive surfaces
- diffusing surface
- more to come?
- better drawing engine for smoother result
- GPU utilisation for better performance and realtime previewing
- more items to place
- scene save as URL
- more user-friendly interface
Optics uses only JQuery as dependency. You can use this software and its source-code in any way you like. Contributions and credits are very welcome.
Let's stay in touch via my twitter !