News for hackers. Stuff that matters.
Re:Mapping Perlin Noise to Angles by elihu on Tuesday July 13, 2021 @04:44AM (#27818778)
I think I would try to solve this by having the angle point towards the gradient. (It's been a long time since I took a calculus class, so I hope I'm using the terminology correctly.) Basically, pick whatever direction points towards the steepest increase in value (or the greatest decrease would work too).

A possible downside depending on what you're doing is that you'd end up where local maxima in the perlin noise have arrows pointing in but not out. (I think this is what a sibling comment is referring to as "divergence".)

Re:Mapping Perlin Noise to Angles by jharsman on Tuesday July 13, 2021 @09:50AM (#27820936)
Yes, the standard solution to this is to use the curl if the scalar valued noise field. This gives you a vector field which is perpendicular to the gradient and i divergence free.
Re:Mapping Perlin Noise to Angles by mcphage on Tuesday July 13, 2021 @08:17AM (#27820008)
Yeah, that seems like the obvious solution—far clearer than playing games with scaling and offsetting.