I was going to use this library but the demos didn’t work on my Mac, and they didn’t work on my Linux machine either. It turns out other people were having similar issues:
- issue 1: problem making macosx benchmark
- issue 2: put demos online
- issue 7: demo fails to build on OS X
- issue 1: Feature request: Shadertoy versions
On OS X, the GL paths are weird. On both OS X and Linux, the demos want glfw2 and the standard package is glfw3.
The demo takes noisedemoMain.frag and runs it through the C preprocessor to insert noise3D.glsl into it. I guess in C this is easier than doing string processing in the code! I don’t know if the demo works with any of the other glsl files. I started out using the C demo code, but then ended up rewriting it with regl.js, then rewrote it to use WebGL directly.
I submitted this change to the author of the library, and it’s now live!
I also found some other noise-related things for my bookmarks:
- A Survey of Procedural Noise Functions is a nice overview of different approaches to noise functions
- slides explaining curl noise, with pretty pictures too