SebLague / Marching-Cubes

Coding Adventure
https://www.youtube.com/watch?v=M3iI2l0ltbE
MIT License
1.03k stars 190 forks source link

Injecting Noise #8

Open Sergio3355 opened 5 years ago

Sergio3355 commented 5 years ago

This is not perhaps the correct way to ask such a question, I'm trying to use your engine for some research in immersive analytics. I've been trying to use the existing unity implementation of FastNoiseSIMD as a source of noise, as it offers multi-layered 3D cellular noise (I'm not making a minecraft clone, but I do need interconnected caves). I've managed to use the noise library to deform the "density sphere" mesh by deforming the mesh filter on the chunk. What I would like to do is actually get it to define the initial coordinates of the vertices. What I gather is that I need a custom density generator with the specific noise source. Do I need to use a Compute Shader similar to noisedensity and do it within that, or is there a way of determining pointbuffer id coordinates in the C# script and use a more basic density compute shader?!? I would prefere the second option, as I'm not familiar with compute shader syntax...

SimLeek commented 5 years ago

...Do you want a CPU version of marching cubes?

https://github.com/Scrawk/Marching-Cubes

Sergio3355 commented 5 years ago

I'd seen that version of it, and have used voxeland, I liked this version as it has all the features of a terrain generator, and it updates in the editor constantly. As stated on the post, I'd love to be able to write a density generator for this version of marching cubes, using FastNoise SIMD as a source of noise, ideally using C# only, as writing a compute shader is outside my comfort zone! The goal is to use 2 sources of cellular noise with fractal perturbation, to create a series of large caves connected by tunnels. I can currently do that with a custom terrain generator script in the Unity Fast noise implementation listed above, but performance is not ideal, and it uses a voxel renderer instead of marching cubes... Thanks for the reply!

On Wed, 3 Jul 2019, 06:24 Josh Miklos, notifications@github.com wrote:

...Do you want a CPU version of marching cubes?

https://github.com/Scrawk/Marching-Cubes

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SebLague/Marching-Cubes/issues/8?email_source=notifications&email_token=AJTBCXDGBWTMOSV6DWYWIDTP5QZ2NA5CNFSM4H3RR2GKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZDJRGI#issuecomment-507943065, or mute the thread https://github.com/notifications/unsubscribe-auth/AJTBCXAJFBCZQNXRMVYRJPDP5QZ2NANCNFSM4H3RR2GA .