3 ms·
The following is a visualization of electric field lines (for a "quadrupole" of charges): https://twitter.com/jamportz/status/1079777103892135936 https://twitt
by jamportz 8y ago
The following is a visualization of electric field lines (for a "quadrupole" of charges):
https://twitter.com/jamportz/status/1079777103892135936 https://twitter.com/jamportz/status/1079777103892135936
https://tinyurl.com/y859v78t https://tinyurl.com/y859v78t
For magnetic fields, the problem is there are no simple (non-trivial) solutions for the magnetic fields of interesting things like a bar magnet.
Even the magnetic field of a circular loop of current involves elliptic integrals.
(see e.g. https://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/20010038494.pdf https://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/200100...).
What you could do is numerically solve the https://en.wikipedia.org/wiki/Biot%E2%80%93Savart_law https://en.wikipedia.org/wiki/Biot%E2%80%93Savart_law (given your currents) inside the GLSL shader..
Though this will probably be very slow..