14

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

Duarte Farrajota Ramos
  • 59,425
  • 39
  • 130
  • 187
Bullet93
  • 155
  • 1
  • 1
  • 6
  • 4
    what render engine are you using? –  Mar 31 '16 at 22:51
  • 3
    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: http://blender.stackexchange.com/questions/34834/how-to-create-a-gradient-texture-from-one-material-to-another-opaque-to-clear – Paul Gonet Mar 31 '16 at 22:55
  • Here's related answer: http://blender.stackexchange.com/questions/10453/how-can-you-smooth-the-edge-between-two-materials (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? – Paul Gonet Mar 31 '16 at 23:36

1 Answers1

16

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

Paul Gonet
  • 33,368
  • 17
  • 91
  • 171
  • 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). – Mutant Bob Apr 01 '16 at 15:08
  • 1
    I'm glad it helped you :). Could you mark this answer as accepted? Thanks! – Paul Gonet Apr 08 '16 at 18:11