• 2 Posts
  • 49 Comments
Joined 1 year ago
cake
Cake day: June 22nd, 2023

help-circle







  • I implemented this shader in only like 2 evenings, but I also mostly knew the techniques required for this and with a physics major the maths behind it came somewhat naturally to me :) The fact that everything can be done with just the one shader file also made it a lot easier, because I did not have to deal with creating external textures or compute shaders or anything.

    Im also just using a simple quad mesh at the moment, and you can kind of see that the waves are a little short on vertices, so adding a LOD system would probably first be necessary to create more realistic waves. Otherwise, if you play with the parameters and maybe change the function from a sin to something that looks more like an ocean wave, you could probably achieve fairly realistic water with just sum of sine (altough someone will have to calculate the derivative for that new function, or you could think about using a 1d texture and calculating the slope from that).






  • I said that any calculation in electrodynamics CAN be done without imaginary numbers, I never said that it would be the most common or convenient way of doing things.

    If you use a different form of solution to maxwells equations, electrical impedance can totally be expressed as just another real property. Fourier transform also is not necessary to solve maxwells equations or any other physical systems. It just might make it significantly easier and more convenient.

    Obviously imaginary numbers existed and where used way before quantum mechanics was a thing but they werent technically necessary in physics because they never appeared in the equations of fundamental theories (Maxwells equations, general relativity, newtonian mechanics)


  • Up to the introduction of quantum mechanics imaginary numbers where only ever a theoretical tool and any calculation in electromagnetism, mechanics or even relativity can be done without them.

    Also, any measurement you can make will always result in real numbers because there is no logical interpretation for imaginary measurements (a speed of 2+i m/s doesnt really make sense)