ScintillatorSynth / Scintillator

A Video Synthesis Engine for SuperCollider
https://scintillatorsynth.org
56 stars 8 forks source link

Randomness in VGens #75

Open lnihlen opened 4 years ago

lnihlen commented 4 years ago

GPU-side randomness is not nearly as robust as is CPU-side, but it can be done. Implement support for the rand and rand2 UnaryOpsVGens.

lnihlen commented 4 years ago

Also linrand, bilinrand, sum3rand, coin.

Many of these have first-class VGen objects, see ExpRand, IRand, and LinRand

lnihlen commented 4 years ago

Some notes from the glm website about randomness:

Defines 2D, 3D and 4D procedural noise functions Based on the work of Stefan Gustavson and Ashima Arts on "webgl-noise": https://github.com/ashima/webgl-noise Following Stefan Gustavson's paper "Simplex noise demystified": http://www.itn.liu.se/~stegu/simplexnoise/simplexnoise.pdf <glm/gtc/noise.hpp> need to be included to use these functionalities