Skip to main content
GameDev.net gamedev.net
🔒 Locked

Question on working with noise results

Started by ptietz Sep 1, 2019 at 11:14 AM 0 replies 4.6k views
Original Post
ptietz
ptietz

Hi, everyone!

I recently decided to dig a little deeper into Perlin's rabbit hole.
So far, it's working out nicely. But now, I struggle with things that come on top of that.
Simply put: how will I get the most out of that?

To keep things easy and visual, let's pretend, I'd plot the results onto a texture.
Let's also say, I'd have some pre-defined value ranges like for example 0-.33 would get a red pixel, .34-.66 a green one and .64-1 would get a blue one.
So we'd now have a texture with clear shapes of either one color, right?

Now, my question would then be: Is there a CPU-friendly, algorithmic way to
a) get some information about those shapes (like their center point, area and perimeter).
b) tell something about any given point within those areas (like their distance to the nearest border or to the center)

Thanks a lot! :)

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.