Noise revisited, part 1

For years I have been wanting to implement a version of my 3D noise function that produces the same result on the CPU and GPU. But I also wanted it to do other things as well:

(1) It needs to use only standard WebGL and Javascript
(2) It can’t require loading any data tables
(3) It must run insanely fast — even on my phone

Well, I finally got around to it. I’ve posted a little side by side test of the GPU and CPU implementations, together with the source code for each.

The test shows an X,Y slice of 3D noise traveling in Z over time. You can see it here.

2 thoughts on “Noise revisited, part 1”

  1. Yes, that is a very cool work of art. In my case, I chose the example of moving a slice of 3D noise through time only because it is a good way to see whether the GPU and CPU implementations actually produce the same result.

Leave a Reply

Your email address will not be published. Required fields are marked *