14
$\begingroup$

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

enter image description here

$\endgroup$
3
  • 4
    $\begingroup$ what render engine are you using? $\endgroup$
    – user1853
    Mar 31, 2016 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, 2016 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, 2016 at 23:36

1 Answer 1

16
$\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$
2
  • $\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, 2016 at 15:08
  • 1
    $\begingroup$ I'm glad it helped you :). Could you mark this answer as accepted? Thanks! $\endgroup$
    – Paul Gonet
    Apr 8, 2016 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.