Skip to content

4D Support #61

Answered by jwagner
charlie-says asked this question in Q&A
Discussion options

You must be logged in to vote

https://codepen.io/jwagner/pen/MWPNMwL here is an example of creating a '2d looping map' using 4d noise. In short you convert your x and y coordinates into angles alpha and beta. Then you derive x and y from alpha and y and w from beta using cos/sin, converting from polar to cartesian coordinates.

Thinking about getting a 1d loop out of a 2d map is a bit less brainfucky. In that case the 1d loop would just be a circle on the 2d map. :)

I hope that helps.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by charlie-says
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants