In this tutorial I’ll show you a way to manually add knots into a procedural wood textures for Cycles. You’ll learn how to distort texture coordinates for procedural textures for added control over how your textures are applied to your objects. Procedural wood is extremely convenient if you can dial in the settings right, but getting those extra knot details might seem impossible. But with a little simple texture coordinate trickery we can get the job done.
Introduction This one’s for the Python dabblers that haven’t been able to figure out localOrientation. Using the function localPosition is easy enough because it returns a list of x, y, and z values. Using localOrientation for rotation values, however, returns a 3×3 matrix. So unless you’re brave enough to handle matrices what we’re going to do in this quick tutorial is convert our object’s matrix to degrees for easier reading and changing. For an intro to python scripting in the BGE, check out my beginner’s python tutorial. Reading Your Object’s Rotation Open the text editor in Blender and add a new file. Name this “rotation”. Paste in the following […]