4
$\begingroup$

Using this simple node setup, i'm able to get a pretty good gradient for this kind of mesh : enter image description here

enter image description here

Could it be possible to get the same kind of gradient with a sphere like this one ? enter image description here

I mean, the further the face get from the center of the sphere, the whiter it will get, and vice-versa. Hope someone here can help me !

PS : I'm french, so my english may not be perfect ^^

$\endgroup$
1

2 Answers 2

2
$\begingroup$

Not sure whether it's the best approach but here's how I would wing it:

gradient node setup

Giving that result:

gradient result

The gradient texture has its origin at the object origin and creates a virtual sphere that gets brighter and brighter which creates darker valleys and brighter mountains. Once upon a time it was called a blend texture.

$\endgroup$
4
  • 1
    $\begingroup$ Why the Diffuse/Emission mix? Could you not just feed the Color from the ramp straight into the Emission color? $\endgroup$ Commented Feb 19, 2018 at 15:37
  • 1
    $\begingroup$ @RichSedman Because I'm 85% dysnodic and I get cheap admission to museums with that disability. Although I'd like to make the lame excuse that mixing different shaders can be more flexible than the gradient which translates to: you're probably right. Just tested it. Move to strike 'probably' $\endgroup$ Commented Feb 19, 2018 at 15:42
  • $\begingroup$ CONVOLUDIRATION RULZ!!! $\endgroup$ Commented Feb 19, 2018 at 15:47
  • $\begingroup$ Either way, it works :-) I believe an emission with no color or zero strength is effectively a black diffuse. $\endgroup$ Commented Feb 19, 2018 at 15:47
2
$\begingroup$

You could try this: enter image description here

This node setup won't take the distance of a point from the origin, but rather the curvature (pointiness) of the surface at a given point, however it might be good enough for your purposes.

$\endgroup$

You must log in to answer this question.

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