Forums > Gen

Distributing noise in 3 dimensions using jit.gl.mesh

March 6, 2013 | 3:38 pm

Hello everybody,

I’m trying to generate a 3-dimensional point cloud starting from jit.noise, but I can’t get to "scale" the otuput of jit.noise (which goes from 0 to 1) to the vertex array requested by the jit.gl.mesh (which is signed normalized -1. – 1.)
In the example below, I was trying to use swiz inside jit.gen, but I don’t know if that’s the correct approach.

– Pasted Max Patch, click to expand. –

March 6, 2013 | 5:46 pm

I just found the [scale] operator in jit.gen…

– Pasted Max Patch, click to expand. –

March 6, 2013 | 7:20 pm

Yep. For remapping the range of values, scale is the best operator.


March 7, 2013 | 11:38 am

Here’s a first attempt to give the cloud a less "cube-y" shape and a more interesting "evolving blob" likeness…

– Pasted Max Patch, click to expand. –

I believe something better can be done, if anyone wants to share their ideas, please welcome.


Viewing 4 posts - 1 through 4 (of 4 total)