scott wrote:
> I made some POV code to simulate the wave equation a long time ago, see
> attached. Maybe you can compare with your code and see where it's
> giving different answers?
How did you arrive at
#local XD = waveHeight[X+1][Y] - 2*waveHeight[X][Y] + waveHeight[X-1][Y];
According to my calculations,
(v[x-1] - v[x]) + (v[x] - v[x+1]) =
v[x-1] - v[x] + v[x] - v[x+1] =
v[x-1] - v[x+1]
which is completely different to what you have.
Post a reply to this message
|