-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
[Question] What's the range of the example cave generation nodes tree? #126
Comments
In the NoiseTool the default setting is any value >= 0 is solid You can see the generated min/max values and change the isosurface value in the debug window |
Mmm that's weird cause I am getting a very weird result (https://prnt.sc/XPb80X4USDDK). The max value that I get from the NoiseTool is a 0.02, almost all the values are negative.
|
Sorry I got that the wrong way round, value >= 0 is air. Max is only 0.02 to keep the cave sizes smaller, you can change this by adjusting the Subtract node. |
Hi, thanks for replying so quickly. Given a cube X * Y * Z of size 1625616, running the following code
it should give me a coherent list of coordinates that form up a cave. I also tried a simple terrain generation tree and instead of sampling each 2D coordinate I tried using GenUniformGrid2D; I tried generating two chunks, which means I run the following code:
In that case the surface of the terrain is coherent (meaning it doesn't make any weird jump) only inside the same chunk, making highly noticeble the connection between the two chunks. I also wanted to describe the issue with the terrain generation cause everything is problably related to how I am using the APIs given I couldn't find any documentation. |
It's likely caused by you indexing the noise array using the incorrect axis, in your first code block above your for loops go x, y, z when it should be z, y, x. Have a look at the example code on the wiki. As for the cave noise, I'd guess the issue is somewhere else in your code, what you have posted looks correct. |
Got the cave noise to work using GenUniformGrid instead of GenSingle3D. Weird tough |
Hi, I was trying out your tree example for cave generations (base64: EwCamZk+GgABEQACAAAAAADgQBAAAACIQR8AFgABAAAACwADAAAAAgAAAAMAAAAEAAAAAAAAAD8BFAD//wAAAAAAAD8AAAAAPwAAAAA/AAAAAD8BFwAAAIC/AACAPz0KF0BSuB5AEwAAAKBABgAAj8J1PACamZk+AAAAAAAA4XoUPw==) but I'm a bit confused on the values range and when it is supposed to be hollow. Is it solid on the min/max values or when it's very close to 0?
The text was updated successfully, but these errors were encountered: