In order to achieve the desired texture mapping on the object surface, we need a convenient tool for manipulating the texture coordinates. Especially for procedural textures mapped to the object without using UV-s.
The “Mapping” node combines tools for texture moving, rotating and scaling is suitable for most of the texturing tasks. But sometimes its power is not enough. Its major drawback is that it allows setting adjustment values only in certain fields within the node body. These fields have no inputs and cannot be connected to the other nodes.
However, we can implement the required functionality devoid of the “Mapping” node lack with the help of some other nodes. Let’s consider how to build a node tree to rotate the texture around the Z-axis of the object by a random value.
Changed the domain zone.
New site URL: https://b3d.interplanety.org
Redirecting from the old domain will still work for a while.
One of the distinguishing Blender features is that many things can be performed in various ways, choosing the most convenient and fastest for your taste. For example, a screw can be created not only by drawing the profile of its teeth. Let’s try an alternative way:
Creating a node tree in the compositing window, sometimes it is necessary to see the intermediate result given by some parts of the node tree. For fast viewing click left mouse button on the desired node with the “ctrl” and “shift” keys pressed. Blender adds a new View node (or uses one of the existing) and connects the output of the selected node to it. The result is displayed on the backdrop (if the corresponding checkbox checked) or in the UV/Image Editor window in “Viewer Node” mode.
If the clicked node has several outputs, each subsequent click on that node switches the view to its next output.