Skip to content
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

Can you add support for tileable 2d noise patterns? #29

Open
zachdyer opened this issue Jul 1, 2020 · 1 comment
Open

Can you add support for tileable 2d noise patterns? #29

zachdyer opened this issue Jul 1, 2020 · 1 comment

Comments

@zachdyer
Copy link

zachdyer commented Jul 1, 2020

I think it would be useful in game development to make tileable noise patterns for textures and planet generation.

@jwagner
Copy link
Owner

jwagner commented Jul 12, 2020

Hi Zach, sorry for the delayed reply.

I'm not sure if it makes much sense to add this to this library. At least for most of my cases where I needed tile-able textures having support at the noise function level would have been of limited use because the noise is composed at a higher level. I think hardly anyone uses straight single octave simplex noise. If you could share more details about your exact case and what you would expect the API to look like that could help me to understand.

Regarding the planet case, there are a few approaches to this. The simplest being that you just use a 3D noise texture and sample along the sphere. That way you don't need to project the sphere down to 2d. Another alternative is triplanar mapping: https://www.ronja-tutorials.com/2018/05/11/triplanar-mapping.html

I hope that helps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants