SebLague / Godot-Marching-Cubes

MIT License
103 stars 14 forks source link

Weird artifacts #3

Open dario2pro opened 8 months ago

dario2pro commented 8 months ago

artifact1 Hi, i have been having this weird artifacts spawned from compute shader script, does anyone know what they are and how can i fix them?

Aman-Anas commented 1 month ago

I have also experienced these artifacts. Additionally, I sometimes get missing triangles on Terrain Resolutions other than 8, but that may be unrelated.

image

Aman-Anas commented 1 month ago

I have also experienced these artifacts.

The artifacts only occur near the origin (may be related to the noise function implementation, will try another one). Adding a large terrain offset makes it disappear, so there's at least a workaround.

EDIT: Changing the noise function to psrdnoise() does seem to have eliminated the artifacts. This is the one I used: https://github.com/stegu/psrdnoise/blob/main/src/psrdnoise3.glsl