13
$\begingroup$

First of all, I would like to apologize if this question might have been asked already.

So to get to the point, I need to make the transition smoother between the 2 different colored objects in my scene (screenshot below), somehow like one of the colors fades into the other one, while still keeping the line between them.

I'm new to Blender, and I've done some research on how to do a gradient or some similar effects, but couldn't manage to get the desired results .

enter image description here

$\endgroup$
  • 4
    $\begingroup$ what render engine are you using? $\endgroup$ – cegaton Mar 31 '16 at 22:51
  • 2
    $\begingroup$ Use the Gradient and Color Ramp nodes (in Cycles) and use it as a factor for a Mix Shader of two materials. Please see related answer: blender.stackexchange.com/questions/34834/… $\endgroup$ – Paul Gonet Mar 31 '16 at 22:55
  • $\begingroup$ Here's related answer: blender.stackexchange.com/questions/10453/… (though it shows how to do it in Cycles). Judging from your render I assume you want to do it in Blender Internal Render right? $\endgroup$ – Paul Gonet Mar 31 '16 at 23:36
14
$\begingroup$

In Blender Render engine you may achieve it using the material nodes. enter image description here

Being in Edit Mode unwrap your mesh (press U-->Project From View). enter image description here

Create some materials- basic Orange and Pink materials (the ones you want to blend), Transition (this material'll be used for blending the ones above using material nodes) and Gradient (this'll be used to create a gradient texture for blending materials).
enter image description here

With Gradient material selected go to the Texture header, set the texture type to Blend, check the Ramp checkbox in Colors panel, then press the Linear and Vertical buttons in Blend panel. Also set the Mapping coordinates to UV. Your gradient texture is now ready. enter image description here

Now select the Transition material and press Use Shader Nodes button. enter image description here

Go to Node Editor and set up nodes as pictured below. First add two Material nodes- the Orange one and Pink one (Shift+A-->Input-->Material) and mix it using MixRGB node (Shift+A-->Color-->MixRGB). Use the Texture node (previously created Gradient texture) as a factor for blending. Plug in the UV output of the Geometry node (Shift+A-->Input-->Geometry) to the Vector input of the Texture node as shown below. enter image description here

Now you may manipulate the transition between materials (go to the Texture header of the Gradient material and play with the sliders in Colors panel for different results). enter image description here enter image description here

$\endgroup$
  • $\begingroup$ It might also be possible to skip the ramp and scale the UV coordinates. You would have to make sure the texture is clamped instead of repeating (although that is checked by default). $\endgroup$ – Mutant Bob Apr 1 '16 at 15:08
  • $\begingroup$ I'm glad it helped you :). Could you mark this answer as accepted? Thanks! $\endgroup$ – Paul Gonet Apr 8 '16 at 18:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.