procedural generation
116 subscribers
4.65K photos
1.39K videos
2 files
10.1K links
Created by @r_channels
Download Telegram
Reworked the boring static forest into procedural vector art!
https://redd.it/1npmd6q
@proceduralgeneration
A norm-13 self avoiding space filling curve
https://redd.it/1nq5e0y
@proceduralgeneration
Nth-Dimentional Perlin Noise

Lately I got into a little rabbit whole of wanting to make shifting perlin noise that loops perfectly.

My train of thought was to trace a looping path through a 4th dimentional space and project that onto an image at each step, then finally turning it into a gif.

Well I'm almost completely done with my implementation but my pseudo random number generator sucks.

There are probably also some issues with the logic itself as the image does not look like perlin noise even if the pseudo random vectors were actually how they should be but I'll tackle those issues later.

Any suggestions are be appreciated.

Here is the code I'm using for it along with an example of what it produced.

typedef struct {
sizet size;
float *array;
} vec
t;

sizet dbj2 (unsigned char *str, sizet size)
{
unsigned long hash = 5381;

for (sizet i = 0; i < size; i++)
{
hash = (hash * 33) + str[i];
}

return hash;
}

size
t linearcongruentialgenerator (sizet state) {
state *= 7621;
state += 1;
state %= 32768;
return state;
}


void srand
vec (vect out, vect seed) {

sizet size = seed.size * sizeof(float);
void *mem = seed.array;

size
t state = dbj2(mem, size) % 10000;

float mag = 0;

for (sizet i = 0; i < out.size; i++)
{
state = linear
congruentialgenerator(state);
float value;
value = (state % 1000) / 1000.f; // normalizing [0, -1]
value = (value * 2) - 1; // mapping [-1, 1]
out.array[i] = value;
mag += value * value;
}

mag = sqrtf(mag);

for (size
t i = 0; i < out.size; i++)
{
out.arrayi /= mag;
}
}

https://preview.redd.it/69o03n07ncrf1.png?width=1024&format=png&auto=webp&s=689c69c21d6152865ca85294e29e6539aaef69b6



https://redd.it/1nqdl99
@proceduralgeneration
what is the best way to generate river like pattern as noise

hi

is there away beside using perlin noise to generate river pattern, i try a lot of thing but every look so of and not natural , so if there any way you know happy to read it .

thanks

https://redd.it/1nr6yos
@proceduralgeneration