Making random stripes material?

I need random horizontal stripes material, something one would apply to gas giant planet or rings.

I tried multiple sinus nodes with different periods. But i went up to 12 of them and material still does not look that random, {it is hard to get rid of visible tiling).

Is there method to get random value without using textures?

Whole point of making this material is having it look well from close up without worry about texture scale or polar stretching on planet surface.

There is a noise node in the material editor. Stretch that in one dimension, it should give you stripes.

Thanks! I knew there is something but could not guess the name. Was looking for “perlin”, and I never tried “noise”.

There is also a node GeneratedOffsetBands that can do horz/vert stripes.

2 Likes

Thanks I will check them all later today.

Edit:

I checked, and noise is not supported on mobiles.
Bands node is basically sinus with few more options, which makes unnecessary overhead in shaders.

Can you afford to use a texture ? If so generate some noise in Photoshop, and either stretch the texture or use it as the seed for your random stripe generator.

That is the problem with textures, and android. Gas giant is visible from close up, unless i use 2k texture (or even then) pixels are visible.
Then other side of problem is having complicated materials. Some older devices just do not work with those.
I hoped for something like “random float in range from stream” in blueprints.

And with textures biggest problem is packaged game size, got it down from 200mb to 80mb by cutting out every texture i could.
One of them was gas giant stripe mask. Currently I am trying to not use textures bigger than 512x512. Even skybox uses 256x256 with some trick in material.

But this problem will be solved soon (hopefully):