O'Reilly logo

Blender 2.49 Scripting by Michel J. Anders

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Wuthering heights—a slope-dependent material

In Blender it is quite simple to generate a fractal terrain (just add a plane, go to edit mode, select all, and then subdivide fractal a few times W → 3). If you want something more elaborate a few excellent scripts exist to help you (see for example http://sites.google.com/site/androcto/Home/python-scripts/ANTLandscape_104b_249.py). But how would you apply textures to such a terrain? In this example, we will examine a method to choose between different material inputs based on the slope of the surface that we're shading. This will allow us to create the effect that very steep slopes are generally devoid of greenery even though they might be well below the tree line. Combined with a height-dependent ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required