5
$\begingroup$

I don't quite understand the gradient texture node. In the manual it says that with texture coordinates it outputs texture color (color output) or texture intensity (fac output). I made a simple node tree

enter image description here

And this is the object rendered.

enter image description here

I do know gradients in Photoshop, but I see not much "gradient" here. What is the Gradient Texture exactly doing and does this mean for the color/fac output ?

The background of my question is that I want to apply this node for a sphere (planet earth).

$\endgroup$
4
$\begingroup$

enter image description here

The gradient sphere, linear and others are convenience textures delivered in grayscale.

Above gradient sphere colored with color ramp.

enter image description here

enter image description here

Above is a flat plane with UV Unwrap Projected View Bounds. Cycles Rendered. The Mapping node moved the uv coordinates to the position needed to illustrate the idea for this question. I think the flat plane allows easier explanation than a 3D mesh sphere. First Image uses color, second image uses fac. The resulting renders appears the same. Color has the 3 components. Fac is a single number representing the grey scale. So for this simple example the grey scale appearance is the same. The first image was colored with fac and color ramp.

Note the light is coming only from the texture with the emission surface. So I may have not achieved highest possible contrast. Contrast nodes were not used. Transparent background. The light is not coming from a curved surface. I am not claiming these are high quality comparisons.

If you already have a 3D mesh sphere and use lighting then the sphere gradient may not be particulary useful.

enter image description here

Above image with smaller scale in Mapping node.

In response to the comment about gradual lighting.

enter image description here

In the above image is the sphere gradient and material node group where intensity is based on distance from center. So I do not see a not of difference between the internal and the custom nodes. So perhaps the desired color gradient is not met by this method.

enter image description here

In the image above we see more difference with the quadratic sphere. I do not want to dwell on the fine points of color here because it may be off the main topic and require much attention.

These gradient textures including sphere can be also seen in Blender Internal Render texture pane. You could create a similar sphere texture with a sphere and sun light.

$\endgroup$
  • $\begingroup$ Color has 3 components, not 4. In Cycles nodes (unlike compositing nodes) alpha must be carried separately. $\endgroup$ – PGmath Feb 20 '16 at 18:31
  • $\begingroup$ @atomicbezierslinger Thanks. This makes things more clear. Why the scaling with 0.5 ? Maybe very stupid but I don't understand that. In the examples without the color ramp, why is the light not going "gradually" from 1 to zero ? Now it seems that the light only gradually becomes weaker ? $\endgroup$ – Old Man Feb 21 '16 at 0:29
  • $\begingroup$ Lighting Gradual. Perhaps they chose to light the sphere as a 3D object with geometric normal lighting because its a 3D program, so perhaps sine cosine is involved rather than linear. Also the light intensity was specified in the nodes so if you change that value you will see different results. There is also a quadratic sphere choice. $\endgroup$ – atomicbezierslinger Feb 21 '16 at 18:30
  • $\begingroup$ ok I will first do some experiments of my own (using your examples) to get a better understanding before firing more questions ;) Thanks a lot $\endgroup$ – Old Man Feb 22 '16 at 8:58

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.