How I can add noise for planet generator?

Hello Guys,

I’m very interested at planet generator (based on Cube Sphere with Chunks) and everything works very well.
But my next problem is: Noise! How can I add Noise on Cube-Sphere-Based planet?
At the moment they look like this:

Cutting on part (each face of cube-sphere)

But this is not working perfect, because some of edge didn’t match with other edge, see on picture:

Each face of cube-sphere have their own X and Y position which I can calculate the height of Z with Noise, but this don’t look good at cube-sphere.

Well, I can forget my methods complety. So, does have anybody a idea how to use Noise on Cube-Sphere?

At the moment, I’m using PerlinNoise. (I’ll change it to simplex noise, but I want to try first with perlin noise).

I’d glad if someone could help me! :slight_smile:

  • Chinafreak

I don’t have nearly enough experience with this to say, really, but I don’t think you can do what you want using 2D noise (which it’s sounds like you’re using). You’d need to use 3D noise and feed in something based on the XYZ coordinates of your sphere points to get your seams to calculate the correct surface offset. I may be wrong though.

I was this one in the WIP section earlier: tiny planet generator - Community Showcases - Unity Discussions
might be worth hitting up that forum user and see if they have some pointers?

(cube spheres hurt my head :face_with_spiral_eyes:… runs)

oh, and you might find things like How to Turn a Texture Into a Seamlessly Tiled Background | Envato Tuts+

handy, it’s the manual approach but you might glean some ideas from the process of how they match up the edges

You can do this with 2D Noise, I know this is possible.
But 3D noise… hmm, I’ve thought about that (create 3D Noise and then cut into to sphere), but 3D noise is more complicated, harder and slower than 2D noise. So I’ll take 2D noise. :slight_smile:

Your idea look nice, actually… But if you match up the edges then it’s still visible (straigh-lines at edges, at least on terrain.)

As example: one edge is ocean and other edge is mountain. If you match this edges, then it’s look very weird.
But I should try to experiments with your ideas. Thank you. :slight_smile:

And thank you for fast reply!

However, I looking forward for more solutions!

I guess, with a seamless 2D texture on cube sphere this might not be possible.

This is old post, but I was just playing with mapping with seamless textures.
I have just discovered - cube has 12 edges in total, the mapping on 6 of them fits and on the other 6 (these marked red on the above pic) does not fit.