simplex-noise.js icon indicating copy to clipboard operation
simplex-noise.js copied to clipboard

higher dimensions

Open dribnet opened this issue 3 years ago • 1 comments

Would you consider supporting dimensions beyond 4D, specifically 5D and 6D?

For me this would simplify use-cases for looping / tiling animations such as #29 which can be implemented by using two of the dimensions to sample along a circle.

dribnet avatar Apr 30 '21 21:04 dribnet

Hi Tom,

I think adding additional code paths for 5D and 6D explicitly would probably be too specific. Adding a slower N dimensional variant would make more sense I think.

I besides my job currently need quite a bit of distraction away from the computer which means my time to hack is fairly limited. I probably won't implement this any time soon but I'd be happy to discuss a contribution of anyone feels like tackling this.

Depending on your needs sampling a displacement vector from a set of 2D noise fields might be an option. You could then modulate the input into the 4D noise field using that. Definitely not the same effect but you might be able to get away with it. :)

Cheers, Jonas

jwagner avatar May 01 '21 18:05 jwagner