-
Notifications
You must be signed in to change notification settings - Fork 130
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
How to generate 1D noise? #16
Comments
simplex-noise.js does not have a function specifically for 1D noise. You could use the 2D one just along one axis and fix the other one or derive one from the code if performance is a concern. |
@jwagner , thanks for your reply . Why simplex-noise don't support "1D noise" ? Is '1D noise' is hard to implement ? or it's useless in real world ? |
It's not hard to implement but simplex noise (as in the algorithm) is mostly useful in dimensions. |
I need it in my web game. I like this lib , but because 1D , I have to use another one . it's so sad. |
1D noise is useful for generating a terrain height map for 2d side view games like the popular Worms series. |
Is there any news about 1D ? |
@finscn for now just use 2D while fixing 1 variable. It's not optimal performance wise but for the vast majority of 1d use cases it should do. |
How to generate 1D noise by simplex-noise.js ?
Thanks.
The text was updated successfully, but these errors were encountered: