Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Noise function / threshold interaction unclear #58

Open
oldshaghat opened this issue May 22, 2020 · 1 comment
Open

Noise function / threshold interaction unclear #58

oldshaghat opened this issue May 22, 2020 · 1 comment
Labels
question Further information is requested

Comments

@oldshaghat
Copy link

Was looking for documentation on the Wiki about Simplex Noise and how the white color coded output is used with functions like Exclude From Noise.

My initial assumption was that the noise was either on the domain [0:255] or [0..1) or maybe [0..1] - as a spatial noise I'm not sure if it's treated as a sort of static Random call that is going to return a noise value for some (x, y) coordinate, or if there's some hidden sampling / rastering going on, or if there's a dimension reduction from a transform to some UV space ? I see in one of the screen shots that a function uses a negative threshold in Exclude From Noise; I had to set threshold to small numbers to see any exclusion behavior.

@HungryProton
Copy link
Member

HungryProton commented May 22, 2020

The white output means it returns an OpenSimplexNoise object. (There's a pull request on Godot side for more noises types so this will change when FastNoise will be available).

Now each GraphNode may have their own way of using this Noise object. Exclude from curve simply reads it as a 3D texture in world space. It goes like this:

  • For each Node passed in input
    • Call the noise object with the node's transform position
    • This returns a value between -1 and 1
    • If this value is above the threshold : keep the transform
    • If it's below the threshold : remove it from the list
    • Move on to the next node and repeat

@HungryProton HungryProton added the question Further information is requested label May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants