Page 1 of 1

Tile a gradient

Unread postPosted: Thu Oct 03, 2019 2:51 pm
by dane
Is it possible to use the gradient node and repeat it in uv space?

Say your doing corrugated metal, you'd make a ramp go black to white to black and then repeat 100x to make the effect. Is this possible?

Re: Tile a gradient

Unread postPosted: Fri Oct 04, 2019 8:39 am
by dboude
Hi Dane,

As the gradient hasn't any projection attribute this is not possible. You have to UV bake it on a square plane and use the result with a texture map file.

If you have to go back and forth when tweaking your gradient you can use the render to picture technique. In an isolated context create a simple render setup (image (with 3dlayer) + raytracer + camera) then add a polygrid with a matte material assigned to it. Plug your gradient in the matte and activate the UV baking in the layer attribute and add the polygrid to the UV bake geometry attribute. Make sure to have a square Image. You have now your texture. Go in the material editor and drag and drop the image into it. Clarisse will create a TextureMap in which you will able to set projection. With that, you have a live projected gradient to do your tweak. When done with the gradient setup just save the baked image on your drive. You can now remove the render to texture setup and import back the saved texture.

An example is better than a long speech, here we go :

(71.55 KiB) Downloaded 140 times

Cheers ;)