Auburn / FastNoiseSIMD

C++ SIMD Noise Library
MIT License
609 stars 89 forks source link

F3 F4 and F5 distance for Cellular noise #10

Closed thesteeltoenail closed 7 years ago

thesteeltoenail commented 7 years ago

Would it be possible to add support for F3, F4, and F5 distances in Cellular noise?

Auburn commented 7 years ago

I will look into it

thesteeltoenail commented 7 years ago

Thanks!

thesteeltoenail commented 7 years ago

Maybe a system like this? http://accidentalnoise.sourceforge.net/implicit.html#CellularGenerator Also this may be of use http://www.neilblevins.com/cg_education/cg_education.htm

Auburn commented 7 years ago

The system is used in ANL isn't very optimised and wouldn't support the different Distance2 functions that are there currently. I think I know a way to add it to the current system though.

Auburn commented 7 years ago

I added the feature in the latest commit/release. It works from 0 (closest), up to 3. This is as high as I could go without increasing the search radius on the cellular noise, which would have made it 4x slower.