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.
-
4$\begingroup$ what render engine are you using? $\endgroup$– user1853Mar 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 GonetMar 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 GonetMar 31, 2016 at 23:36
1 Answer
In Blender Render engine you may achieve it using the material nodes.
Being in Edit Mode unwrap your mesh (press U-->Project From View).
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).
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.
Now select the Transition material and press Use Shader Nodes button.
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.
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).
-
$\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$ Apr 1, 2016 at 15:08
-
1$\begingroup$ I'm glad it helped you :). Could you mark this answer as accepted? Thanks! $\endgroup$ Apr 8, 2016 at 18:11