440 questions
Advice
0
votes
0
replies
33
views
How to modulate Perlin noise with Worley noise for volumetric clouds?
How do I modulate perlin noise with worley noise so that I am getting fine, billowy structures in the resulting noise? I have the noise, it all looks correct, but I have no bloody idea how to combine ...
0
votes
0
answers
126
views
Is there a way to make a single procedural grainy-texture effect on a webpage with HTML, CSS, and SVG filters that adapts to any background color?
I'm attempting to build a webpage where the user can change the color palette between customizable darker and lighter themes. I want the page background to be textured like the following images, with ...
1
vote
0
answers
68
views
How should I go about generating a height/elevation map for a procedurally generated map?
I'm currently working on a personal project on making a procedural map generator. The way it currently is working is not the most intuitive, it's three different scripts all importing from each other, ...
0
votes
1
answer
56
views
I have 2d islands procedural generation on Godot. How can I check if a point is on surface?
By 'point', I mean a RefCounted, with these properties:
var pos: Vector2i
var is_surface: bool
var is_bottom: bool
And by 'surface', I meand a point, that doesn't have another point above it.
The ...
1
vote
1
answer
51
views
my perlin noise in python force close my window
my perlin noise is working good but if i make the generation bigger it will slow down to a point that my window will force close it so im force to make the perlin noise smaller. is there ways to make ...
0
votes
1
answer
80
views
Why do most seeds result in the perlin noise become vertical lines?
I'm trying my hand at perlin noise so that i could make dnd maps, but my python project seems to always come up with either perfectly vertical lines or noise that comes out extremely vertical.Typical ...
1
vote
0
answers
84
views
How to make a 2d simplex noise map that loops in both directions? Godot 3.6
So I've followed a few tutorials to try and do this but I'm not getting anywhere. What I'm trying to do is make a 2D noise map that loops in all directions (I'm making a game map you can walk around ...
0
votes
0
answers
94
views
Perlin noise procedural generation - issue with generating chunks within unity
I am trying to develop a map generation system in Unity. I want to have a system for chunks and have simplified the problem down to a small amount of code, which is not attempting a great deal. I just ...
0
votes
0
answers
46
views
Optimizing Perlin Noise Matching for Binary Image Comparison: Slow Processing and Low SSIM Score
I’m working on a project where I need to generate Perlin noise and match it with a binary (black & white) image. I want to find the Perlin noise pattern that best matches the input image in terms ...
4
votes
1
answer
430
views
Implementation of a Perlin noise Generator in C#
I've been trying to code my own implementation of the Perlin noise algorithm based on this paper.
I initially struggled a lot with the implementation, but I managed to get it working so I thought that ...
0
votes
0
answers
60
views
Smoothing functions in perlin noise
I am trying to make an animated perlin noise simulation in js but got stuck on some problems with the smoothing functions.
Here is my js code (I have removed some irrelevant code for easier reading)
...
1
vote
0
answers
48
views
Is it necessary to use scaled copies of the same noise function when generating Perlin noise?
In applications using Perlin noise, it is common to add multiple octaves of noise together to create finer and finer details in the resulting noise. Here's an animation of this, taken from Wikipedia:
...
1
vote
0
answers
43
views
p5 perlin noise field can't get streaking
I know that if you have an opaque background, the previous frame appears. My goal is that the previous dots from previous frames will appear to give a streaking effect. However, setting the background ...
1
vote
2
answers
115
views
Random gradient generator function in Perlin noise: What algorithm is this?
This is a random gradient generator function for Perlin Noise. The full implementation can be found here. I have little knowledge about RNGs, but the underlying algorithm doesn't seem to be linear ...
1
vote
1
answer
93
views
How to fix script only generating numbers between 0.1 and 0.95
When I try to use Perlin noise in my program, it only seems to generate values between 0.1 and 0.95. I checked the documentation and did research online to try and fix my issue, and I believe the ...
0
votes
0
answers
76
views
Unity 2D Colormap based on Noisemap for terrain generation. Noisemap displaying just fine, but when toggle to Colormap nothing shows
I am trying to display a Unity 2D Colormap based on Noisemap for terrain generation. Noisemap displaying just fine, but when toggle to Colormap nothing shows. By nothing shows I mean the display is ...
0
votes
0
answers
34
views
What is the best way to use perlin noise when generating biomes using pygame. Additionally how would I generate stuctures in specific areas? [duplicate]
This is my second stack overflow post and I am kind of new to the coding scene. I know how to code in python with classes and some mid level structures. I am a student who is working on their software ...
0
votes
1
answer
276
views
How do I get the 3D normal vector from a 2D gradient (generated through gradient (perlin) noise)
I have implemented a gradient noise function in GLSL in order to generate a heightmap for terrain. I am trying to get a normal vector for each pixel of the heightmap so I can calculate directional ...
1
vote
0
answers
86
views
Generated map based on Perlin Noise
I'm trying to implement a terrain based on a noise map. The code is from internet so credits to Sebastian Lague.
Everything went well, the map is generated fine but i wanted to make it bigger. ...
0
votes
0
answers
120
views
Why is there always a symmetry in my perlin noise function in Unity c#
I always have some sort of wierd symmetry in my perlin noise. This always happens and I have tried doing many solutiond
I tried offsetting my code a little, but no matter what I would do, I would ...
0
votes
1
answer
85
views
Ocean Layer Not Working Properly & Too Laggy
Thank you for the help but now the ocean isn't spawning in correctly. I tried making the ocean it's own layer but it over laps the islands (destroys them) I appreciated y'alls help with the color ...
0
votes
1
answer
120
views
Attempted Perlin Noise in C# but results are all too close to 0
So I am trying to use 2D Perlin Noise for a Monogame project and I read through the wikipedia article (https://en.wikipedia.org/wiki/Perlin_noise) covering the approach and tried to code it. After a ...
1
vote
1
answer
421
views
100% predictable results using GDScript's native pseudo-random number generators
I am using GDScript (Godot's Python) attempting to create an algorithm that generates random noise between an integer of 0 or 1, onto a 2 dimensional array. To do so, I am iterating with predefined ...
0
votes
0
answers
126
views
Need help understanding this C function for Perlin noise vector generation
I found this C code on wikipedia. I am new to C. In this C code, why is the value of random not 0 if this (3.14159265 / ~(~0u >> 1)) is always 0 according to this test I wrote (second piece of ...
0
votes
1
answer
276
views
WebGL: INVALID_OPERATION: texImage2D: ArrayBufferView not big enough for request
using twgl.js, I keep getting this error when I call twgl.createTexture. Im making a map using simplex noise from noisejs, and each pixel on the screen has a height value and a moisture value. It ...
0
votes
2
answers
120
views
Unity Procedurally generated GameObjects does not generate in the desired way
I am trying to use Perlin noise as a pattern for generating forests / clusters of 2D prefabs in unity, for my procedurally generated game. So my plan was to generate Perlin noise, and then use the ...
0
votes
1
answer
84
views
mixing of noise from four corner glsl
I am studying noise from the bookofshaders and in 2d noise this is the code in the book or website.
#ifdef GL_ES
precision mediump float;
#endif
uniform vec2 u_resolution;
uniform vec2 u_mouse;
...
1
vote
1
answer
749
views
Using OpenSimplex for simplex or perlin noise without a seed
I'm trying to use perlin or simplex noise on a 3d graphics program in python. I've tried using the "noise" library but it seems to be incompatible. I'm trying to use OpenSimplex, but I want ...
2
votes
0
answers
160
views
Perlin Noise in Python: Noise Values Compacted, Need Help Forming Sinusoidal Pattern
I'm currently working on a project involving Perlin noise generation in Python. I've implemented the Perlin noise generation using the noise library and generated different types of noise values (cave,...
1
vote
0
answers
76
views
Perlin noise function not working as intended
I have a simple perlin noise function that has the parameters x, y, z, and seed. When I draw the perlin noise to the canvas using the function, the pattern which the perlin noise generates repeats ...
0
votes
1
answer
67
views
Chunks not connected
Here is my code:
def generate(octaves):
global world, xpix, chunkSize #set globals (for other references in the rest of the script etc)
chunkSize = (12, 12)
xpix, ypix = chunkSize[0], ...
-1
votes
1
answer
186
views
How do I make the perlin-noise module for python use a seed?
I'm trying to add infinite generation to a game I'm working on in pygame. Here is the code I am having trouble with:
from perlin_noise import PerlinNoise
global world, xpix, chunkSize #set globals
...
0
votes
1
answer
77
views
Is that possible to have grids bigger than 255*255 in the Perlin's improved algorithm?
I have implemented the improved Perlin's algorithm:
#include "lodepng/lodepng.h"
#include <glm/glm.hpp>
#include <vector>
#include <numeric>
#include <iostream>
#...
2
votes
1
answer
337
views
Perlin noise algorithm artefacts
I am tryng to imlpement Perlin 2D noise algorithm. Generally it works well, but it have got some artefacts in it. Here is my code:
#include "lodepng/lodepng.h"
#include <vector>
#...
2
votes
1
answer
129
views
Perlin noise implementation gives bad results
So ive been trying to do my own implementation of perlin noise in unity. I think i have the implementation down however, the result from the function looks nothing like the expected result of what ...
0
votes
1
answer
93
views
What can I do to make this Perlin noise generator more efficient?
from PIL import Image
import math
import numpy
import random
random.seed(10)
a = 2000
br = 200
grad = []
for i in range(int(a/br)+1):
row = []
for j in range(int(a/br)+1):
row....
1
vote
1
answer
97
views
How do I compare two perlin noise images?
Is it possible to tell if two perlin noise images have been generated by the same parameters? and if so how?
For example, both these images:
and
Have been generated by the same code, namely:
import ...
1
vote
1
answer
287
views
Is it possible to make the sum of two random values a uniform distribution?
I'm trying to make Perlin Octaves to generate noise but to get the values, I have a grid of random values. Each grid square gets a random value [-0.5, 0.5] that adds together for potential height ...
2
votes
1
answer
236
views
Why is my perlin noise implementation looking so blocky?
I started to do my own implementation of perlin noise in javascript (using p5js), but the results are not really what I expected:Perlin noise
Here's my code:
let grid, spacement;
function setup() ...
0
votes
0
answers
178
views
Perlin Noise generating weird results
I'm coding an implementation of Perlin Noise in C#.
When I run the program it outputs this:
Every cell individually looks alright but when compared to it's neighbours they don't match.
(In some rare ...
2
votes
0
answers
138
views
Moving Points with 1D Noise
I'd like to move points in X & Y with 1D Noise. To further clarify, I don't want each point to move by a unique random number, but rather a larger noise over the whole line with gradients moving ...
1
vote
1
answer
553
views
Perlin noise returning bigger values than [-1;1] interval
so i tried to implement perlin noise in c++ and render it in raylib. well, i failed to implement it correctly and get crazy results.
]
After printing several variables i detected that perlinNoise ...
2
votes
1
answer
198
views
Issues with perlin noise having discontinuous edges
I created a simple perlin noise generator using p5.js, which is based on
this link
. For the most part, I got 80% of the algorithm working. The only issue is that there is defined discontinuities ...
0
votes
1
answer
143
views
Confusion on the return value of turbulence of Perlin noise
turbulence function
From my understanding, the turbulence in Perlin noise is to accumulate Perlin noise of different frequencies with different weights. Based on this understanding, the return value ...
2
votes
1
answer
511
views
Replacing Mathf.PerlinNoise in Unity
I was following some tutorials on Youtube trying to make my own voxel engine. The problem is, all tutorials I found uses Mathf.PerlinNoise(float x, float z) as the main method from get the noises. So, ...
-2
votes
1
answer
748
views
How solving Problem installing the noise package
I tried to install noise Python package, but I encountered this error
`
PS C:\Users\MacBook\Desktop\python-superhi> python -m pip install noise
Collecting noise
Using cached noise-1.2.2.zip (132 kB)...
0
votes
1
answer
695
views
How do I correctly use 3D Perlin Noise as turbulence for my particle system?
So I am working on a particle system, mainly as a learning exercise on the CPU, using Visual Studio C++. It's looking pretty neat!
The latest thing I'm attempting is to add turbulence using 3D perlin ...
-1
votes
1
answer
304
views
What does it mean to 'instantiate' a class? [duplicate]
I have found this code regarding 3D perlin noise: https://blog.kazade.co.uk/2014/05/a-public-domain-c11-1d2d3d-perlin-noise.html
I created a noise.h file from the first chunk of code.
Then I added the ...
1
vote
1
answer
330
views
Why does my Fractal Noise have lines outlining a grid
I will give some context to the function that I wrote:
getFractalPointHeight() is a function that is supposed to return the height of the fractal noise based on the coordinates of a Perlin noise image ...
0
votes
0
answers
171
views
Generating maps using Noisemap: Tiles are spawning in each other and weird spaces between tiles
I tried to program a map generator using a seed that then generates a noise map.
I can successfully generate noise maps without errors:
The next step was to step through the array of floats and then ...