Tileable open_simplex #259
Replies: 3 comments
-
The method to create tilable procedural noise is to make each input dimension get mapped onto a circle, and then use the equivalent point on the circle to get determine the noise value. So 2d procedural noise would require 4d noise, and 3d noise would require 6d. Not that hard to figure out, just takes some time to implement. You could do it yourself by mapping the input values and then feeding them to the correct noise generator. Would only work with 2d since there's implementations for 3d and 4d. You could do it with 3d if you only wanted to tile it on one axis. |
Beta Was this translation helpful? Give feedback.
-
Hi, is it possible to add an example about how to do so? I'm trying right now to create a wrapping heightmap by combining several |
Beta Was this translation helpful? Give feedback.
-
Sorry about the double post, but I've found by myself how to do this. Here is the code. This is very easy to create a tileable 2D texture with your crate, and I'd like to make a PR to add this example, but I'm not sure what I should push. The whole color interpolation, while it render nicely, has nothing to do with noise generation. |
Beta Was this translation helpful? Give feedback.
-
I think it would be very useful to have a function or an example of how to use open_simplex to generate a tileable image. Possibly tileable on the horizontal, vertical or both sides
Beta Was this translation helpful? Give feedback.
All reactions