7
$\begingroup$

I used some of the suggestions to create a mesh with 2 materials transitioning using a gradient. I can't seem to figure out how to make the transition on an angle rather than horizontal or vertical. Here's the shader setup and the model. cycles material nodes

I want the transition from red to gold (in the center section) to start in the upper left and extend to the lower-right above the blue, as indicated by the white arrow. rendered model with material

$\endgroup$

1 Answer 1

9
$\begingroup$

What you did is "quite" correct, you'll probably just have to find the right transformation parameters for your scene. But with this kind of setup it's not easy to figure them out.

I see you are using a Diagonal Gradient texture type, but at the same time you are also rotating the input coordinates, so as you are rotating something that is already rotated... well, it's easy to get lost.

I would suggest to use a simpler node tree, based on a Linear type, that lead to a behaviour that it's easier to predict, like the floowing.

enter image description here

But my real suggestion would be to use use an Empty to control the Texture Coordinates for the Gradient. This way you'll be able to visually adjust the orientation, the location and the scale of the texture.

Use the Arrows empty's type and remember that the texture lays in the XY plane (so empty's Z axis sould point toward global X).

enter image description here

Here's the shader in action:

enter image description here

$\endgroup$
2
  • 1
    $\begingroup$ Wow, great stuff! I simplified the shader as you suggested and was able to get what I need to finish the image. I tried using the Linear setting for the Gradient, but eventually went back to Diagonal, as it gave me a starting point that I could see and modify right away. Using the empty is a little beyond my needs for this project, but I've learned something new to use in the future. My results are below. $\endgroup$
    – jjfeenix
    Commented Sep 11, 2016 at 14:49
  • 1
    $\begingroup$ Using Carlo's suggestions, I eventually got to this shader configuration and render. $\endgroup$
    – jjfeenix
    Commented Sep 11, 2016 at 15:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .