artemonigiri / light-simulation-js Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
would be awesome if there were some comments throughout the code :))
just more simple to catch up
Line 1 in 74a8c95
I've ported the code to C++ (using Qt for graphics): https://github.com/VioletGiraffe/Light-Simulation-cpp
Performance is quite decent as it is (on the CPU, single thread), but I'll optimize a few things some more.
This got me curious and I wondered if it's possible to converge to a steady state solution rather than a time-dependent solution.
In theory for monochromatic light it should be possible possible to represent oscillation at every point of the scene with just its complex amplitude (so amplitude + phase) and nothing else.
I wrote a quick test to see what the steady state solution looks like:
My approach is not grid-based, so I'm not sure if it's relevant to discuss it in a context of cellular automata, but I still think it is certainly relevant to try and find a steady state solution for your approach too because the process of waves actually propagating is not really needed for the final image.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.