Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Blender 2.6 Cycles: Materials and Textures Cookbook
Blender 2.6 Cycles: Materials and Textures Cookbook

Blender 2.6 Cycles: Materials and Textures Cookbook: With this book you'll be able to explore and master all that the Cycles rendering engine is capable of. From the basics right through to refining, this is a must-read if you're serious about the realism of your materials and textures.

Arrow left icon
Profile Icon Ton Roosendaal Profile Icon Enrico Valenza
Arrow right icon
$48.99
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.7 (10 Ratings)
Paperback Jun 2013 280 pages 1st Edition
eBook
$19.99 $28.99
Paperback
$48.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Ton Roosendaal Profile Icon Enrico Valenza
Arrow right icon
$48.99
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.7 (10 Ratings)
Paperback Jun 2013 280 pages 1st Edition
eBook
$19.99 $28.99
Paperback
$48.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$19.99 $28.99
Paperback
$48.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Table of content icon View table of contents Preview book icon Preview Book

Blender 2.6 Cycles: Materials and Textures Cookbook

Chapter 1. Overview of Materials in Cycles

In this chapter, we will cover:

  • Material nodes in Cycles

  • Procedural textures in Cycles

  • How to set the World material

  • Creating a mesh-light material

  • Using displacement (aka bump)

Introduction


Cycles materials work in a totally different way than in Blender Internal.

In Blender Internal, you can build a material by choosing a diffuse and a specular shader from the Material window, by setting several surface options, and then by assigning textures (both procedurals or image maps as well) in the provided slots—all these steps make one complete material. After this, it's possible to combine two or more of these materials by a network of nodes, thereby obtaining a lot more flexibility in a shader's creation. But, the materials themselves are just the same you used to set through the Material window, that is, shaders made for a scan-line rendering engine as Blender Internal is, and their result is actually just an approximation of a simulated light absorption-reflection surface behavior.

In Cycles the approach is quite different: all the names of the closures describing surface properties have a Bidirectional Scattering Distribution Function (BSDF), which is a general mathematical function that describes the way in which the light is scattered by a surface in the real world. It's also the formula that a path tracer such as Cycles uses to calculate the rendering of an object in a virtual environment. Basically, light rays are shot from the camera, they bounce on the objects in the scene and keep on bouncing until they reach a light source or an "empty" background. For this reason, a pure path tracer such as Cycles can render in reasonable times an object set in an open environment, while instead the rendering times increase a lot for closed spaces. For example, furniture set inside a room, and this is just because the light rays can bounce on the floor, the ceiling, and the walls a good many times before reaching one or more light sources.

In short, the main difference between the two rendering engines is due to the fact that, while in Blender Internal the materials use all the traditional shader tricks of a scan-line rendering engine such as, for example, the simulated specular component, the Cycles rendering engine is a path tracer trying to mimic the real behavior of a surface as closely as possible as in real life. This is the reason why in Cycles we don't have, for example, the arbitrary Spec factor simulating the reflection point of the light on the surface, but a glossy shader actually mirroring the light source and the surrounding, to be mixed to the other components in different ratios and so behaving, in this respect, in a more correct way.

In any case, just for explanatory purposes, in this book I will still refer to the more or less blurred point of light created by the reflection of the light source on a mirroring glossy surface as Specularity.

Be aware that the rendering speed in Cycles depends on the device—CPU or GPU—you use to render your scenes. That is, basically you can decide to use the power of the CPU (default option) or the power of the graphic card processor, the GPU.

To set this:

  1. Call the User Preferences panel (Crtl + Alt +U) and go to the System tab, the last one to the right of the panel.

  2. Under the Compute Device tab to the bottom-left of the panel, select the one to be used for the computation; to make this permanent, click on the Save User Settings button or press Crtl + U. Now close the User Preferences panel.

  3. In the Properties panel to the right of the interface, go to the Render window and, under the Render tab, it's now possible to configure the GPU of the graphic card instead of the default CPU (the option is present only if your graphic card supports CUDA, that is, for NVIDIA graphic cards; OpenCL, which is intended to support rendering on AMD/ATI graphics cards, is still in a very incomplete and experimental stage and therefore not of much use yet).

A GPU-based rendering has the advantage of literally increasing the Cycles' rendering speed several times, albeit with the disadvantage of a small memory limit, so that it's not always possible to render big complex scenes made by a lot of geometry; in such cases, it's better to use the CPU instead.

There are other ways to reduce the rendering times and also to reduce or avoid the noise and the fireflies (white dots) produced in several cases by the glossy, transparent, and light-emitting materials. All of this doesn't strictly belong to shaders or materials, by the way, you can find more information related to these topics at the following addresses:

Material nodes in Cycles


A Cycles material is basically made up of distinct components, initially named closures and later more traditionally renamed shaders (by Brecht Van Lommel himself), which can be combined together to build even more complex surface shaders.

In this recipe, we'll have a look at the basic necessary steps required to build a basic Cycles material, to activate the rendered preview in the 3D window, and to finally render a simple scene.

Getting ready

In the description of the following steps, I'll assume that you are starting with a brand new Blender with the default factory settings; if not, start Blender and just click on the File menu item to the top main header bar to select Load Factory Settings from the pop-up menu.

  1. In the upper menu bar, switch from Blender Render to Cycles Render (hovering with the mouse on this button shows the Engine to use for rendering label).

  2. Now split the 3D view into two horizontal rows and change the upper one in to the Node Editor window by selecting the menu item from the Editor type button at the left-hand corner of the bottom bar of the window itself. The Node Editor window is, in fact, the window we will use to build our shader by mixing the nodes (it's not the only way, actually, but we'll see this later).

  3. Put the mouse cursor in the 3D view and add a plane under the cube (press Shift + A and navigate to Mesh | Plane). Enter edit mode (press Tab), scale it 3.5 times bigger (press S, digit 3.5, and hit Enter) and go out of edit mode (press Tab). Now, move the plane one Blender unit down (press G, then Z, digit -1, and then hit Enter).

  4. Go to the little icon (Viewport Shading) showing a sphere in the bottom bar of the 3D view and click on it. A menu showing different options appears (Bounding Box, Wireframe, Solid, Texture, Material, and Rendered). Select Rendered from the top of the list and watch your cube being rendered in real time in the 3D viewport.

  5. Now, you can rotate or/and translate the view or the cube itself and the view gets updated in real time (the speed of the update is only restricted by the complexity of the scene and by the computing power of your CPU or of your graphic card).

  6. Let's learn more about this:

  7. Select Lamp in the Outliner (by default, a Point lamp).

  8. Go to the Object Data window under the Properties panel on the right-hand side of the interface.

  9. Under the Nodes tab, click on Use Nodes to activate a node system for the selected light in the scene; this node system is made by an Emission closure connected to a Lamp Output node.

  10. Go to the Strength item, which is set to 100.000 by default, and start to increase the value—as the intensity of the Lamp increases, you can see the cube and the plane rendered in the viewport getting more and more bright, as shown in the following screenshot:

How to do it...

We just prepared the scene and had a first look at one of the more appreciated features of Cycles: the real-time rendered preview. Now let's start with the object's materials:

  1. Select the cube to assign the shader to, by left-clicking on the item in the Outliner, or also by right-clicking directly on the object in the Rendered viewport (but be aware that in Rendered mode, the object selection outline usually around the mesh is not visible because, obviously, it's not renderable).

  2. Go to the Material window under the Properties panel: even if with the default Factory Settings selected, the cube has already a default material assigned (as you can precisely see by navigating to Properties | Material | Surface). In any case, you need to click on the Use Nodes button under the Surface tab to activate the node system; or else, by checking the Use Nodes box in the header of the Node Editor window.

  3. As you check the Use Nodes box, the content of the Surface tab changes showing that a Diffuse BSDF shader has been assigned to the cube and that, accordingly, two linked nodes have appeared inside the Node Editor window: the Diffuse BSDF shader itself is already connected to the Surface input socket of a Material Output node (the Volume input socket does nothing at the moment, it's there in anticipation of a volumetric feature on the to-do list, and we'll see the Displacement socket later).

  4. Put the mouse cursor in the Node Editor window and by scrolling the mouse wheel, zoom in to the Diffuse BSDF node. Left-click on the Color rectangle: a color wheel appears, where you can select a new color to change the shader color by clicking on the wheel or by inserting the RGB values (and take note that there are also a color sampler and the Alpha channel value, although the latter, in this case, doesn't have any visible effect on the object material's color):

  5. The cube rendered in the 3D preview changes its material's color in real time. You can even move the cursor in the color wheel and watch the rendered object switching the colors accordingly. Set the object's color to a greenish color by setting its RGB values to 0.430, 0.800, and 0.499 respectively.

  6. Go to the Material window and, under the Surface tab, click on the Surface button, which at the moment is showing the Diffuse BSDF item. From the pop-up menu, select the Glossy BSDF shader item. The node now also changes in the Node Editor window and so does accordingly the cube's material in the Rendered preview, as shown here:

Note that although we just switched a shader node with a different one, the color we set in the former one has been kept also in the new one; actually, this happens for all the values that can be kept from one node to a different one.

Now, because in the real world a material having a 100 percent matte or reflective surface could hardly exist, a more correct basic Cycles material should be made by mixing the Diffuse BSDF and the Glossy BSDF shaders blended together by a Mix Shader node, in turn connected to the Material Output node.

  1. In the Material window, under the Surface tab, click again on the Surface button that is now showing the Glossy BSDF item and replace it back with a Diffuse BSDF shader.

  2. Put the mouse pointer in the Node Editor window and, by pressing Shift + A on the keyboard, make a pop-up menu appear with several items. Move the mouse pointer on the Shader item, it shows one more pop-up where all the shader options are collected.

  3. Select one of these shader menu items, for example, the Glossy BSDF item. The shader node is now added to the Node Editor window, although not connected to anything yet (in fact, it's not visible in the Material window but is visible only in the Node Editor window); the new nodes appear already selected.

  4. Again press Shift + A in the Node Editor window and this time add a Mix Shader node.

  5. Press G to move it on the link connecting the Diffuse BSDF node to the Material Output node (you'll probably need to first adjust the position of the two nodes to make room between them). The Mix Shader node gets automatically pasted in between, the Diffuse node output connected to the first Shader input socket, as shown in the following screenshot:

  6. Left-click with the mouse on the green dot output of the Glossy BSDF shader node and grab the link to the second input socket of the Mix Shader node. Release the mouse button now and see the nodes being connected.

  7. Because the blending Fac (factor) value of the Mix Shader node is set by default to 0.500, the two shader components, Diffuse and Glossy, are now showing on the cube's surface in equal parts, that is, each one at 50 percent. Left-click on the Fac slider with the mouse and slide it to 0.000. The cube's surface is now showing only the Diffuse component, because the Diffuse BSDF shader is connected to the first Shader input socket that is corresponding to a value set to 0.000.

    Tip

    Downloading the example code

    You can download the example code files for all Packt books you have purchased from your account at http://www.packtpub.com. If you purchased this book elsewhere, you can visit http://www.packtpub.com/support and register to have the files e-mailed directly to you. The high resolution colored images of the book can also be found in the code bundle.

  8. Slide the Fac slider value to 1.000 and the surface is now showing only the Glossy BSDF shader component, which is, in fact, connected to the second Shader input socket corresponding to a value set to 1.000.

  9. Set the Fac value to 0.800. The cube is now reflecting on its sides, even if blurred, the white plane, because we have a material that is reflective at 80 percent, matte at 20 percent, and so on:

  10. Lastly, select the plane, go to the Material window and click on the New button to assign a default whitish material.

How it works...

So, in its minimal form, a Cycles material is made by a closure (a node shader) connected to the Material Output node; by default, for a new material, the node shader is the Diffuse BSDF with RGB color set to 0.800, and the result is a matte whitish material (with the Roughness value at 0.000 actually corresponding to a Lambert shader). The Diffuse BSDF node can be replaced by any other one of the available shader list. For example, by a Glossy BSDF shader as in the former cube scene, which produces a totally mirrored surface material.

As we have seen, the Node Editor window is not the only way to build the materials; in the Properties panel on the right-hand side of the UI, we have access to the Material window, which is usually divided as follows:

  • The material name, user, and the datablock tab

  • The Surface tab, including in a vertical ordered column only the shader nodes added in the Node Editor window and already connected to each other

  • The Displacement tab, which we'll see later

  • The Settings tab, where we can set the object color as seen in the viewport in not-rendered mode (Viewport Color), the material Pass Index, and a Multiple Importance Sample option

The Material window not only reflects what we do in the Node Editor window and changes accordingly to it (and vice versa), but also can be used to change the values, to easily switch the closures themselves and to some extent to connect them to the other nodes.

The Material and the Node Editor windows are so mutual that there is no prevalence in which one to use to build a material; both can be used individually or combined, depending on preferences or practical utility. In some cases, it can be very handy to switch a shader from the Surface tab under Material on the right (or a texture from the Texture window as well, but we'll see textures later), leaving untouched all the settings and the links in the node's network.

There is no question, by the way, that the Material window can become pretty complex and confusing as a material network grows more and more in complexity, while the graphic appearance of the Node Editor window shows the same network in a much more clear and comprehensible way.

There's more...

Looking at the Rendered viewport, you'll notice that the image is now quite noisy and that there are white dots in certain areas of the image; these are the infamous fireflies, caused mainly by transparent, luminescent, or glossy surfaces. Actually, they have been introduced in our render by the glossy component.

Follow these steps to avoid them:

  1. Go to the Render window under the Properties panel. In the Sampling tab, set Samples to 100 both for Preview and Render (they are set to 10 by default).

  2. Set the Clamp value to 1.00 (it's set to 0.00 by default). Go to the Light Paths tab and set the Filter Glossy value to 1.00 as well. The resulting rendered image, as shown here, is now a lot more smooth and noise free:

  3. Save the blend file in an appropriate location on your hard drive with a name such as start_01.blend.

Samples set to 10 by default are obviously not enough to give a noiseless image, but are good for a fast preview. We could also let the Preview samples as default and increase only the Render value, to have longer rendering times but a clean image only for the final render (that can be started, as in BI, by pressing the F12 key).

By using the Clamp value, we can cut the energy of the light. Internally, Blender converts the image color space to linear. It then re-converts it to RGB, that is, from 0 to 255 for the output. A value of 1.00 in linear space means that all the image values are now included inside a range starting from 0 and arriving to a maximum of 1, and that values bigger than 1 are not possible, so usually avoiding the fireflies problem. Clamp values higher than 1.00 can start to lower the general lighting intensity of the scene.

The Filter Glossy value is exactly what the name says, a filter that blurs the glossy reflections on the surface to reduce noise.

Be aware that even with the same samples, the Rendered preview not always has a total correspondence to the final render, both with regards to the noise as well as to the fireflies. This is mainly due to the fact that the preview-rendered 3D window and the final rendered image usually have very different sizes, and artifacts visible in the final rendered image may not show in a smaller preview-rendered window.

Procedural textures in Cycles


In this recipe, we'll see the several kinds of textures available in Cycles and learn how to use them with the shaders.

Similar to Blender Internal, we can use both procedural textures and image textures in Cycles. However, the Cycles procedural textures are not exactly the same as in Blender Internal; some are missing because of being replaced by an improved version (for example, Clouds has been replaced by particular settings of the Noise Texture) and a few are new and exclusive to Cycles.

Getting ready

We have already seen a simple construction of a basic Cycles material by mixing the diffuse and the glossy ("specular") components of a surface. Now let's have a look at the textures we can use in Cycles to further refine a material.

Because Cycles has a node-based system for the materials, the textures are not added in their slot under a tab as it is in Blender Internal, but they just get added in the Node Editor window and directly connected to the input socket of the shaders or other kind of nodes. This gives a lot more flexibility to the material creation process, because this way a texture can be used to drive several options inside the material network.

  1. Starting from the previously saved start_01.blend blend file, where we already had set a simple scene with a cube on a plane and a basic material, select the cube and go to the Object Modifiers window under the Properties panel to the right of the UI.

  2. Assign to the cube a Subdivision Surface modifier, set the Subdivisions level to 4, both for View as for Render.

  3. In the Object Tools panel to the left of the 3D window, under Shading, set the subdivided cube (let's call it spheroid from now on) to Smooth.

  4. Just to make things clearer, click on the color box of the Glossy BSDF shader to change it to a purple color (RGB set to 0.800, 0.233, and 0.388 respectively). Note, only the glossy reflection part on the spheroid is now purple, whereas the rest of the surface, the diffuse component, is still greenish.

  5. Save the blend file and name it start_02.blend.

How to do it...

  1. Put the mouse pointer in the Node Editor window and press Shift + A.

  2. In the contextual menu pop-up, go to the Texture item, just under Shader, and left-click on Wave Texture to add the texture node to the Node Editor window.

  3. Grab and connect the Color yellow output socket of the texture to the yellow input socket of the Diffuse shader, the one close to the Color rectangle that we had formerly set as a greenish color:

  4. In the Wave Texture node, change the Scale value to 8.500, Distortion to 12.000, Detail to a maximum value of 16.000, and the Detail Scale value to 6.000.

  5. Now disconnect the texture color output from the Diffuse node and connect it to the color input socket of the Glossy shader:

  6. Now disconnect the texture color output from the Glossy shader. Grab and connect the texture node's Fac output to the Roughness input socket of the Glossy BSDF shader, as shown in the following screenshot:

  7. Save the file.

  8. Delete the Wave Texture node (X key), press Shift + A with the mouse pointer in the Node Editor window and add a Checker Texture node.

  9. Connect the Fac output of the Checker Texture node to the Fac input socket of the Mix Shader node, as shown here:

  10. Save the file as start_03.blend.

How it works...

As is immediately visible in the Rendered viewport, at the moment the Wave Texture node color output is connected to color input of the Diffuse BSDF shader node, the spheroid looks as if it's painted in a black and white series of bands; actually, the black and white bands output of the texture node override the green color of the diffuse component of the shader, while keeping the material's pink glossy component unaltered (steps 1 to 3).

Exactly the opposite as you disconnect the texture output from the diffuse to connect it to the Glossy shader color input. Now we have the diffuse greenish color back and the pink has been overridden, while the reflection component is visible only inside the white bands of the wave texture (step 4 and 5).

In addition to the color output, every texture node has also a Fac output socket, outputting gray-scale linear values: connected to the Roughness input socket of the Glossy shader, the texture is working has a factor for its reflectivity. The working texture has a factor for its reflectivity; the spheroid keeps its colors and gets the specular-mirrored component only in the white-colored areas on the surface (that is, white bands equal to total reflecting and black bands equal to no reflection; step 6).

The Checker Texture fac (factor) output connected to the Fac input socket of the Mix Shader node works in a similar way: the numeric slider for the mixing factor on the Mix Shader node has disappeared, because now we are using the black and white linear values of the Checker Texture fac output as a factor for the mixing of the two components—the Diffuse and the Glossy—which, therefore, appear on the spheroid surface accordingly to the black and white quads (steps 8 and 9).

Every texture node has several setting options; all of them have the Scale value to set the size, the others change accordingly to the type of texture.

There's more...

At this point you could wonder: "ok, we just mapped a texture on the spheroid, but what's the projection mode of this mapping?"

Good question. By default, if not specified and if the object doesn't have any UV coordinates yet, the mapping is Generated, which is the equivalent of the Original Coordinates mode (now renamed Generated as well) in Blender Internal.

But what if I want to specify a mapping method? Then, just follow these steps:

  1. Press Shift + A on the keyboard with the mouse pointing in the Node Editor window again, go to the Input item and select the Texture Coordinate item, which is a node with several mapping modes and their respective output sockets.

  2. Try to connect the several outputs to the Checker Texture | Vector input (the blue socket on the left-hand side of the node) to see the texture mapping on the spheroid change in real time, as shown in the following screenshot:

By the way, I'd like to point your attention to the UV coordinates output. Connect the link to the texture's vector socket and see the mapping on the spheroid disappear. Why is this? Put simply, because we haven't assigned any UV coordinates to our spheroid yet. Follow these steps to do so:

  1. Go in the UV Maps tab in the Object Data window under the Properties panel on the right and click on the + sign. This just adds a one-to-one Reset UV projection UV layer to the object, that is, every face of the mesh is covering the whole area of the UV window (remember that although the cube looks like a spheroid now, this is only due to the effect of the assigned Subdivision Surface modifier; the UV coordinates work at the lowest level of subdivision, which is still a six-face cube).

  2. A second option is to just place the proper seams on the cube's edges and directly unwrap the object in an UV/Image Editor window. Press Tab to go to edit mode, press A to select all the vertexes (if the vertexes are deselected). Now, press U and chose an unwrapping method from the pop-up menu (Smart UV Project and Cube Projection don't even need the seams), then go out of edit mode to update the Rendered preview.

The Texture Coordinate node is not needed in the case you unwrap an object and then use an Image Texture node, because in that case Cycles will automatically use the available UV coordinates to map the image map.

Obviously, the Texture Coordinate node alone is not enough. What we need now is a way to offset, rotate, and scale this texture on the surface:

  1. Select the Texture Coordinate node and grab it to the left of the window, as far as suffices to make room for a new node. In the Add menu, go to Vector and choose Mapping.

  2. Grab the Mapping node on the middle of the link that is connecting the Texture Coordinate node to the Checker Texture node; it will be automatically pasted in-between them, as shown in the following screenshot:

  3. Now, start playing with the values inside the Mapping node. For example, set the Z Rotation value to 45°, the X Scale value to 2.000 and then slide the X Location value, while looking at the texture changing orientation, dimension and actually sliding on the x axis in the Rendered viewport.

  4. Save the blend file as start_04.blend.

The Min and Max button on the bottom of the Mapping node are used to clip the extension of the texture mapping. That is, check both Min and Max to avoid the texture to be repeated n times on the surface and shown only once. A minimum value of 0.000 and a maximum value of 1.000 give a correspondence of one to one with the mapped image. You can tweak these values to even limit or extend the clipping. This is useful to map, for example, logos or labels on an object and avoiding repeating.

Setting the World material


In this recipe, we'll see the properties and the settings of the World window in Cycles.

The main characteristic of the Cycles World is that it can emit light, so it practically behaves as a light source. Actually, its effect is the famous "Global Illumination" effect.

As in Blender Internal, it is considered as a virtual dome at a large distance from the camera and never touching the scene's objects. Nothing in the 3D scene can affect the World. Actually, only the World can emit light on the scene and on the objects.

Getting ready

  1. Open the start_04.blend file and go to the World window under the Properties panel to the right of the interface. This is where we see the usual Use Nodes button under the Surface tab.

  2. Although no node system for the World window is set by default, the World window has a dark medium gray color already slightly lighting the scene. Delete the default lamp or put it on a different and disabled layer to see that the spheroid in the scene is dark but still visible in the rendered 3D viewport.

  3. It's already possible to change this gray color to some other color by clicking on the Color button right under Use Nodes (color at the horizon). This brings up the same color wheel we have seen for the shader colors. Set the color to R 0.179, G 0.152, and B 0.047 and save the file as start_05.blend.

Note that both the intensity as well as the general color graduation of the World are driven by this color. To have more light, just move the Value slider (the vertical one) towards a whiter hue. To give a general color mood to the scene, pick a color inside the wheel. This will affect all of the scene's illumination but will show mainly in the shadows, as shown in the following screenshot:

How to do it...

However, to have access to all the options for the World, we have to initialize it as a node system:

  1. Look in the bottom header of the Node Editor window, on the left-hand side of the material datablock, there are two little icons: a little cube and a little world and, yes, the cube icon is used for creating materials, while the world icon is for the World window. At the moment, because we were working on the spheroid material, the cube icon is the one selected.

  2. Click on the little world icon. The material's node disappears and the Node Editor window is empty now, because we entered the World mode. Check the little Use Nodes box on the right of the datablock to make a default world material appear. Or else, go to the World window under the Properties panel and click on the Use Nodes button under the Surface tab, as shown here:

    Also, for the World, the default material is simply made up of two nodes: a Background node connected to a World Output node. In the Background node, there are two setting options: the Color box and the Strength slider, both of which are quite self-explanatory.

  3. Go to the World window under the Properties panel and click on the little square with a dot to the right side of the Color slot. From the resulting menu, select the Sky Texture node item. This replicates a physical sky model, with an atmospheric Turbidity value slider and the Strength slider, as shown here:

    Note that you can also modify the incoming direction of the light, that is, the location of the sun, by rotating the sphere icon inside the node interface.

  4. Save the file as start_06.blend.

  5. Click on the Color button, which is now labeled as Sky Texture under the Surface tab in the Properties panel and select the Environment Texture node to replace it:

  6. Looking in the Rendered view, you'll see that the general lighting has turned to a pink color. This is to show that the World material is now using a texture to light the scene, but that at the moment there is no texture yet.

  7. Click on the Open button both in the World window under the Properties panel or in the just added node inside the Node Editor window. Browse to the texture folder and load the Barce_Rooftop_C_3k.hdr image (a free high dynamic range image licensed under the Creative Commons Attribution-Noncommercial-Share Alike 3.0 License from the sIBL Archive http://www.hdrlabs.com/sibl/archive.html).

  8. To better appreciate the effect, click on the little eye icon on the side of the Lamp item in the Outliner to disable its lighting. The spheroid is now exclusively lit by the .hdr image assigned to the World material. Actually, you can also see the image as a background in the Rendered preview. You can also rotate the viewport and watch the background texture, "pinned" to the World coordinates, rotate accordingly in real time.

  9. As for object's materials, the mapping of any texture you are going to use for the World can be driven by the usual Mapping and Texture Coordinates nodes we have already seen. Generally, for the World materials, only the Generated coordinates output should be used, and actually it's the one used by default if no mapping method is specified. Add the Mapping and Texture Coordinates nodes and connect them to the Vector input socket of the Environment Texture node, as shown in the following screenshot:

  10. Save the file as start_07.blend.

But now, let's imagine a case in which we want to assign a texture to the World material and use it for the general lighting of the scene, but we don't want it to show in the background of the render. That is, for example, we are using the hdr image to light the spheroid and the plane, but we want the two objects rendered on a uniform blue background, then how to do it? This is how we do it:

  1. One way is to go in the Render window and, under the Film tab, check the Transparent option. This will show our spheroid and plane rendered both in the 3D viewport as well as in the effective final rendered image on a transparent background, that is, with a pre-multiplied alpha channel:

  2. It's enough, then, to compose the rendered objects with a blue background image, both in an external image editing software (such as The Gimp, to stay inside F/OSS) or directly in the Blender compositor.

But the simplest way to render the two objects on a uniform blue background is to use a Light Path node:

  1. If it's the case, uncheck the Transparent box in the Render window to restore the sky in the preview and in the render.

  2. Left-click the World Output node in the Node Editor window, and press G and move it to the right.

  3. Add a Mix Shader node (press Shift + A and select Shader |Mix Shader) and move it to the link connecting the Background node to the World Output node, to paste it automatically between the two nodes. Connect it to the Surface input socket of the World Output node.

  4. Select the Background node in the Node Editor window. Press Shift + D to duplicate and move it down.

  5. Connect its output to the second input socket of the Mix Shader node. Click on its Color box to change the color to R 0.023, G 0.083, and B 0.179.

  6. Now, add a Light Path node (press Shift + A and go to Input | Light Path).

  7. Connect the Is Camera Ray output of the Light Path node to the Fac input socket of the Mix Shader node, and voilà—the objects in the scene are lit by the hdr image connected to the first Background node, but they appear on a "sky" that is colored as set in the Color box of the second Background node:

  8. Save the file as start_08.blend.

How it works...

To better explain this "trick", let's say we just created two different World materials: the first one with the texture and the second one with a plain light blue color (this is not literally true, actually the material is just one containing the nodes of both the "ideally" different worlds).

We mixed these two materials by using the Mix Shader node. The upper green socket is considered equal to a value of 0.000, while the bottom green socket is considered as a value of 1.000. As the name itself suggests, the Light Path node can set the path for the rays of light that, if you remember, are shot from the camera. Is Camera Ray means that only the rays directly shot from the camera have a value of 1.000, that is, not the reflected ones, or the transmitted ones, or whatever, which instead have a value of 0.000.

So, because the textured world is connected to a socket equal to the value 0.000, we don't see it directly as a background but only see its effect on the objects lit from the reflected light or from the hdr image. The blue sky world that is connected to the value 1.000 input socket instead shows as a background because the light rays shot from the camera directly hit the sky.

There is more...

Just after the Surface tab, in the World window, there is the Ambient Occlusion (AO) tab. AO is a lighting method used to emphasize the shapes or the details of a surface, based on how much a point on that surface is occluded by the nearby surfaces. Although not exactly the same thing, AO can replace, in some cases, the Global Illumination effect. For example, to render interiors having fast and noise-free results, AO is a cheap way to get an effect that looks a bit like indirect lighting.

There is a checkbox to enable AO along with the following two sliders:

  • Factor: Used for the strength of the AO. A value of 1.00 is equivalent to a white World.

  • Distance: Is the distance from a shading point to the trace rays. Shorter distance emphasizes nearby features, a longer distance makes it take objects further away into account.

The Ambient Occlusion feature is only applied to the Diffuse BSDF component of a material. Glossy or Transmission BSDF components are not affected. Instead, the transparency of a surface is taken into account. For example, a half transparent surface will only half occlude the other surfaces.

Creating a mesh-light material


In this recipe, we will see how to create a mesh-light material to be assigned to any mesh object and used as source light to light the scene.

Getting ready

Until now we have used the default lamp (a Point light) already present in the scene for lighting the scene. By enabling the node system for the lamp, we have seen that the lamp uses a material created by connecting an Emission node to the Lamp Output node.

The good news is that, exactly because it's a node material, we can assign an Emission shader also to a mesh. For example, to a plane conveniently located, scaled, and rotated to point to the scene. Such a light emitting mesh is called a Mesh-light. Being a mesh, the Emission shader node output must be connected to the Surface input socket of a Material Output node instead of the Lamp Output node.

The light emission, coming from a surface and not from a point, is a lot more diffuse and softer than a lamp. A mesh-light can be any mesh of any shape and, therefore, can be easily used as an object taking part in the scene and being, at the same time, the real light source of the rendering—for example, a table lamp, or a neon sign, or a television screen. As a pure light-emitting plane, it's usually used as a sort of photographic diffuser. Two or three mesh-lights strategically placed can realistically simulate a photo studio situation.

  1. Starting from the start_07.blend file, click on the eye lamp icon in the Outliner to enable it again.

  2. Right-click the lamp in the 3D view and press Shift + S to bring up the Snap menu. Left-click on the Cursor to Selected item.

  3. Press Shift + A with the mouse pointer in the 3D view and add a plane to the scene at the cursor's location.

  4. Come out of edit mode (press Tab). Shift select the lamp; now you have both the just added plane and the lamp selected, and the latter is the active one.

  5. Press Crtl + C to bring up the Copy Attributes menu and select the Copy Rotation item.

  6. Rename this plane to Emitter.

  7. Right-click the lamp in the 3D view and press X to delete it.

  8. Put the mouse pointer in the 3D view and press 0 from the numpad to go to Camera view.

  9. From the Viewport Shading menu in the window header, select the Rendered mode:

  10. Save the file as start_09.blend.

How to do it...

  1. Select the Emitter plane and click on the little cube icon on the header of the Node Editor window.

  2. Click on the New button in the header and rename the material as Emitter.

  3. In the Properties panel, go to the Material window and under the Surface tab, click on the Surface button to switch the Diffuse BSDF shader with an Emission shader. Leave the default color unchanged (RGB 0.800) and set the Strength slider to 35.000.

  4. Save the file.

  5. In the 3D view, scale the Emitter plane five times bigger (press S, digit 5, and hit Enter), then set the Strength slider to 3.500.

  6. Save the file as start_10.blend.

  7. Now let's scale the Emitter plane a lot smaller (press S, digit 0.05, and hit Enter) and set the Strength slider to 350.000.

  8. Save the file as start_11.blend.

How it works...

From step 5 to step 7, we saw how a mesh-light can be scaled bigger or smaller to obtain a softer (in the first case) or a sharper (in the second case) shadow. The Strength value must be adjusted for the light intensity to remain consistent, or the mesh-light must be moved closer or more distant from the scene.

Scaling the mesh-light basically is the same as setting the size value for a lamp. For lamps, the softness of the shadows can be set by the Size value on the left of the Cast Shadow option in the Lamp window under the Properties panel (by default, the Size value is set to 1.000). At a value of 0.000, the shadow is at its maximum crispness, or sharpness. By increasing the Size value, the softness of the shadow increases too.

Differently from the mesh-light, varying the Size value of a lamp doesn't require us to adjust the Strength value to keep the same light intensity.

There's more...

In several cases, you would want the emitters to not appear in your render. There are node arrangements to accomplish this (by using the Light Path node in a very similar way to the Setting the World material recipe we have seen before), but the easiest way to do this is as follows:

  1. Start with the last saved blend (start_11.blend) with the 3D window on the left also set to the Rendered mode, to see the scene out of the Camera view (so the Emitter plane is rendered too).

  2. With the Emitter plane still selected, go to the Object window under the Properties panel.

  3. Look in the Ray Visibility tab (usually, at the bottom of the Properties window), where there are five items: Camera, Diffuse, Glossy, Transmission, and Shadows with corresponding checked boxes.

  4. Uncheck the Camera item and watch the Emitter plane disappear in the rendered 3D window, but the scene still lit by it, as shown in the following screenshot:

    By checking any one of the items, the corresponding property won't take part in the rendering. In our case, by unchecking the Camera box, the mesh won't be rendered, although still emitting light. Be careful that, at this moment, the Emitter plane is not renderable but, because all the other items in the tab are still checked, it can be reflected, and if this is the case, can cast its own shadow on the other objects.

  5. Now reselect the spheroid (remember that, unless you have renamed it, its name in the Outliner still shows as Cube). Next, from the Ray Visibility tab in the Object window under the Properties panel, uncheck the Camera item as well.

    Now the spheroid has disappeared, but it's still casting its shadow on the plane, as shown in the following screenshot:

  6. Now uncheck the Camera and the Shadow checkboxes. In this case, the spheroid is visible again but is not casting any shadow, as shown here:

  7. Save the file as start_12.blend. Let's try tweaking this a little.

  8. Check the Shadow box for the spheroid and select the bottom plane.

  9. In the Material window under the Properties panel, switch the Diffuse BSDF shader with a Glossy BSDF shader. The bottom plane is now acting as a perfect mirror, reflecting the spheroid and the .hdr image, which we had formerly set in the World material.

  10. Go back to the Object window and reselect the spheroid. In the Ray Visibility tab, uncheck the Glossy item and watch the spheroid still rendered but no more reflected by the mirroring plane, as shown here:

  11. Save the file as start_13.blend.

The Ray Visibility trick we've just seen, of course, is not needed for lamps, because a lamp cannot be rendered in any case. At the moment, only Point, Spot, Area, and Sun lamps are supported inside Cycles; Hemi lamps are rendered as Sun lamps.

Both lamps and mesh-lights can use textures to, for example, project colored lights on the scene, but only a mesh-light can be unwrapped and UV mapped with an image map.

More, it seems that mesh-lights work better than lamps in Cycles, that is, the light casting and diffusion looks better and more realistic with an emitting plane. It's not clear if this is just a technical lamp limitation or if it will be improved in the future.

One advantage lamps have on mesh-lights is that they are easily made unidirectional, that is, apart from Point lamps, they cast light in only one direction, as shown in the following screenshot:

In the preceding screenshot, you can see that only the plane and the sphere in front are lit by the Spot lamp. With a mesh-light plane replacing the Spot lamp, instead, both the sphere and the cylindrical green wall behind are lit, as shown here:

So what if we want to only light the object in one direction (plane and sphere in front) with a mesh-light? Is there a way to make a light-emitting plane to emit it only from one side and not the opposite one? Yes, of course, there is:

  1. Open the 1301OS_01_meshlight.blend file, which has a prepared scene similar to the one used for the preceding screenshots, and set the bottom 3D window to the Rendered mode by clicking on the Viewport Shading button in the header and selecting the upper item.

  2. Left-click the Emitter item in the Outliner and put the mouse pointer in the Node Editor window. Add a Mix Shader node (press Shift + A and go to Shader | Mix Shader) and move it to the link connecting the Emission node to the Material Output node to paste it in between.

  3. Add a Geometry node (press Shift + A and go to Input | Geometry) and connect its Backfacing output to the Fac input socket of the Mix Shader node.

  4. Switch the Emission node output from the first Shader input socket of the Mix Shader node to the second one, as shown in the following screenshot:

  5. Save the file as 1301OS_01_meshlight_final.blend.

The plane is now emitting light only in one direction.

How it works...

We have already seen that in a Mix Shader node the first (upper) green Shader input socket is considered equal to a 0 value, while the second one to a 1 value. So, the Backfacing output of the Geometry node is stating Cycles to make the plane emit light only in the face-normal direction, and to keep black and non-emitting (just like a blank shader) the opposite "backfacing" side of the plane.

By switching the Emission node connection to the first Mix Shader input sockets, it's obviously possible to invert the direction of the light emission.

Using displacement (aka bump)


To obtain both bumps and displacement effect in Cycles, there are a few options.

The simplest way to have bumps on our material's surface is by connecting the Color or the Fac output of a texture node to the Displacement input socket of the Material Output node. Despite the fact that the socket's name is Displacement, the effect I'm writing at the moment is just a simple bump effect (by the way, a very good one), affecting as a whole the total result of the sum of the material's nodes.

How to do it...

Just as we did for color textures, the bump textures can also be mapped on the object with the Mapping and Texture Coordinate nodes. There is naturally also a way to set the amount (the strength) of bumpiness of the texture on the object's surface:

  1. Open the start_02.blend file and set the 3D view to the Rendered mode.

  2. Put the mouse pointer in the Node Editor window and press Shift + A to bring up the Add menu and select a Math node from the Convertor item (press Shift + A and go to Convertor | Math).

  3. Connect the Fac output of the Wave Texture node, already connected to the Roughness input socket of the Glossy BSDF shader node, to the first upper gray Value input socket of the Math node. Connect the Math node output to the Displacement input socket of the Material Output node.

  4. Set the operation mode of the Math node to Multiply. By sliding the second Math node Value, we can set the influence, the strength, of the bumping. Try, for example, to set it to 3.000, as shown in the following screenshot:

  5. Save the file as start_14.blend.

How it works...

Put simply, the gray-scale values of the texture are multiplied for the value we put in the second slider of the Math node. For example, if we set a value of 0.500, the intensity of the effect will be the half of the default one (1.000 x 0.500 = 0.500). With a value of 3.000, the effect will be three times the default one. Similar to Blender Internal, the value can also be set as negative (-3.000 in this case), thereby inverting the direction of the bump effect.

Note that there is an evident problem at the terminator of the spheroid (that is, at the limit of the lit surface with the self-shadowed one) that seems as a general limit of path tracers. To get rid of it, you can try to subdivide the mesh by a higher value (a little impractical method, honestly), but this not always is enough. A different way is to modify the Size value of the lamp (or the scale if you are using a mesh-light). Select the lamp in the Outliner, and in the Size button under the Type of Lamp row in the Object Data window, set Size to 1.000. The terminator looks a lot smoother now (along with also, obviously, the projected shadow on the plane):

There is more...

From Blender 2.65 onwards, a Normal input socket has been added to all the appropriate shader nodes, to input values for the bump of each shader node itself. This input socket must be fed by a Bump node (press Shift + A and go to Vector | Bump). This is how we do so:

  1. Starting from the start_14.blend file, select the Math node in the Node Editor window and delete it (press X).

  2. Put the mouse pointer in the Node Editor window and press Shift + A to add a Bump node (press Shift + A and go to Vector | Bump).

  3. Connect the Fac output of the Wave Texture node to the Height input socket of the Bump node and the output of the latter to the Normal input socket of the Diffuse BSDF shader node. Set the Strength value to 0.050.

  4. Add a Voronoi Texture node (press Shift + A and go to Texture | Voronoi Texture) and a new Bump node (press Shift + A and go to Vector | Bump). Connect the Fac output of the Voronoi Texture node to the Height socket of the new Bump node and connect the latter to the Normal input socket of the Glossy BSDF shader node:

  5. Save the file as start_15.blend.

As you can see in the preceding image, it's now also possible to have the bump effect per node. That is, every shader node can have a different bump with different strength (note that it's no more needed to connect anything to the Displacement input socket of the Material Output node). This way, we can have a certain bump effect only on an established component of the shader (the diffuse shader), and a different bump on the other components (the glossy shader), as shown here:

As far as displacement is concerned, we can use the Displace Modifier option in the Object Modifiers panel, using a texture to be set in the Textures tab under the Properties panel. It seems no Cycles texture can be used for this at the moment, but only the old Blender Internal textures at disposal from a menu. In this case, the displacement is not behaving any differently from the displacement we have in BI. The mesh must be subdivided (usually the Subdivision Surface modifier is used, but also the Multiresolution modifier can be used) and then displaced. In short, there is nothing as a "micro-polygon displacement rendering" yet.

By the way, by enabling Experimental in the Feature Set tab under Render in the Render window, it's possible to have access to a (still incomplete) displacement feature:

  1. Go to the Render window under the Properties panel. In the Render tab click on the Feature Set button, by default labeled with Supported, and select Experimental.

  2. Go to the Object Data window to find a new tab named Displacement, where we can choose between three options: Bump, True, or Both (the Use Subdivision and Dicing Rate buttons don't seem to work yet).

    Note

    Bump will give us the average bump effect, which is the same as connecting the texture output in the Displacement input of the Material Output node (that we'll have to do in any case).

    By setting the method to True, we can have a displacement effect not different from the Displace Modifier output, and the mesh must be subdivided.

    Both will use the texture gray-scale values' information for a displacement and the bump effect together.

  3. Select True.

  4. Reselect the spheroid. Go in the Material window under the Properties panel, and in the Displacement tab click on the blue Value button labeled Wave Texture to select an Image Texture node from the pop-up menu.

  5. Click on the Open button, browse to the textures folder, and load the quads.png image.

  6. Just under the Open button, click on the Color Space button to set it to Non-Color Data.

  7. Split the bottom 3D window to open a UV/Image Editor window. Press Tab to go in edit mode and then press U with the mouse pointer in the 3D window. In the UV Mapping menu, select Smart UV Project, then press Tab again to go out of edit mode (this is a quicker way of unwrapping the spheroid which, remember, at its lower level of subdivision is still a cube. If you want, you can do a better unwrapping by placing seams to unfold it and by selecting a normal Unwrap from the menu).

  8. Go to the Object Modifiers window and raise the Subdivisions levels for both View and Render to 6:

In any case, this is just for a temporary demonstration, the feature is still incomplete and at the moment seems to work (quite) properly only if the texture is mapped with UV coordinates. This is definitely going to change in the future.

Left arrow icon Right arrow icon

Key benefits

  • Create naturalistic materials and textures - such as rock, snow, and ice - using Cycles
  • Learn Cycle's node-based material system
  • Get to grips with the powerful Cycles rendering engine

Description

Cycles is Blender's new, powerful rendering engine. Using practical examples, this book will show you how to create a vast array of realistic and stunning materials and texture effects using the Cycles rendering engine. Blender 2.6 Cycles: Materials and Textures Cookbook is a practical journey into the new and exciting Cycles rendering engine for Blender. In this book you will learn how to create a vast array of materials and textures in Cycles, including glass, ice, snow, rock, metal and water. If you want to take your 3D models to the next level, but don't know how, then this cookbook is for you! In this practical cookbook, you will learn how to create stunning materials and textures to really bring your 3D models to life! Diving deep into Cycles you will learn Cycle's node-based material system, how to set-up a 3D scene for rendering, how to create a natural and man-made materials as well as the correct organization and re-use of Cycles materials to save you time and effort. To ensure that your creations look stunning you will learn how illumination works in Cycles, improve the quality of the final render and to avoid the presence of noise and fireflies. Each chapter of Blender 2.6 Cycles: Materials and Textures Cookbook builds on the complexity of the last so that by the end of this book you will know how to create an impressive library of realistic-looking materials and textures.

Who is this book for?

This book is perfect for you if you have used Blender before but are new to the impressive Cycles renderer. You should have some knowledge of the Blender interface, though this is not a strict requirement. If you want to create realistic, stunning materials and textures using Cycles, then this book is for you!

What you will learn

  • Create a basic Cycles material mixing the closure components
  • Connect nodes of different kinds to build more advanced materials
  • Add node-based textures to the shaders
  • Create simple and complex materials such as glass, stone, fire and ice
  • Switch shader components without affecting a possibly complex network of links
  • Parent and rename the nodes to better organize the ‚ÄúNode Editor‚Äù window
  • Build material interfaces for general use in complex materials by grouping the shaders inside groups
  • Set-up light-sources and the ‚ÄúWorld‚Äù Global Illumination
Estimated delivery fee Deliver to Egypt

Standard delivery 10 - 13 business days

$12.95

Premium delivery 3 - 6 business days

$34.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Jun 25, 2013
Length: 280 pages
Edition : 1st
Language : English
ISBN-13 : 9781782161301
Vendor :
Blender Foundation
Tools :

What do you get with Print?

Product feature icon Instant access to your digital eBook copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Estimated delivery fee Deliver to Egypt

Standard delivery 10 - 13 business days

$12.95

Premium delivery 3 - 6 business days

$34.95
(Includes tracking information)

Product Details

Publication date : Jun 25, 2013
Length: 280 pages
Edition : 1st
Language : English
ISBN-13 : 9781782161301
Vendor :
Blender Foundation
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 158.97
Blender 2.6 Cycles: Materials and Textures Cookbook
$48.99
Blender 3D Basics
$54.99
Blender Cycles: Lighting and Rendering Cookbook
$54.99
Total $ 158.97 Stars icon

Table of Contents

7 Chapters
Overview of Materials in Cycles Chevron down icon Chevron up icon
Managing Cycles Materials Chevron down icon Chevron up icon
Creating Natural Materials in Cycles Chevron down icon Chevron up icon
Creating Man-made Materials in Cycles Chevron down icon Chevron up icon
Creating Complex Natural Materials in Cycles Chevron down icon Chevron up icon
Creating More Complex Man-made Materials Chevron down icon Chevron up icon
Creating Organic Materials Chevron down icon Chevron up icon

Customer reviews

Top Reviews
Rating distribution
Full star icon Full star icon Full star icon Half star icon Empty star icon 3.7
(10 Ratings)
5 star 30%
4 star 40%
3 star 10%
2 star 10%
1 star 10%
Filter icon Filter
Top Reviews

Filter reviews by




Drtomtron Aug 08, 2013
Full star icon Full star icon Full star icon Full star icon Full star icon 5
PROS: Detailed Explanation of creating materials Wide variety of materials, both man made and natural (Over 40) Mainly created using procedural textures, so you don't require textures Pictures included to show node setups and finished effectCONS: After the initial materials, it ramps up in complexity and might be a little confusing for beginners until they get the hang of the advanced node setups Sometimes it goes pages at a time with no pictures and just list after list of nodes to add, maybe a little dry (disclaimer, I read the ebook version)The "Blender 2.6 Cycles: Materials and Textures Cookbook" written by Enrico Valenza is chock full of node "recipes" to create a huge variety of materials in cycles. It spans from simple man made materials such as plastic and rubber, to advanced natural materials like faded copper, or even an ocean material with foam. The majority of these materials are created using blenders procedural textures, which means you don't even need external textures to create these.The author writes these in a simple to follow, step by step fashion. Beginners to blender, or at least cycles, may have a little learning curve to get over, but the book ramps up in such a way that it begins with simple materials to get you to understand the basics, and as it progresses, the materials get more and more advanced.Overall, this book is a great value as it not only gives you exact recipes for creating materials, but it also gives you a strong foundation in cycles to create your own materials that might not be included. This is a very useful book that would be a welcome addition to any blender 3D artist's library that wants to learn how to create complex materials using cycles, or for advanced users that want an easy step by step guide to creating these materials.
Amazon Verified review Amazon
rschiwal Dec 02, 2014
Full star icon Full star icon Full star icon Full star icon Full star icon 5
Love owning it. If you can master materials in Cycles you are a CGI artist and your work is pure genius.
Amazon Verified review Amazon
christopher Perdue Jan 07, 2014
Full star icon Full star icon Full star icon Full star icon Full star icon 5
The downloadable example files are also very useful as starting points. This book explains the core concepts of cycles nodes and will get you going in the right direction for your own projects.
Amazon Verified review Amazon
Red Lantern. Sep 19, 2013
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
I like this after looking it over, but when I downed the sample files and tried to load in the underwater files it crashed my copy of blender. I have a decent system with 4 gigs of ram and a cuda processor pci express video card with 2 gigs of ram on it, but still some of the sample files crash blender when I try to open them.Edit: I tried to contact the publisher about the problems I have with a couple files but they never replied. Disappointed.Edit2: No sooner than I typed the above than the author himself replied to an email with a helpful suggestion.
Amazon Verified review Amazon
Feeding Back Sep 30, 2013
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Unfortunately it comes a bit late as there are enough changes that can effect the results of the materials that you want to create. That said, it is still worth the price of admission. Solid examples and are well planned out. The one observation I would say for most of the books in this category is that they can benefit from having a proof reader familiar with the product they are writing about. Some documentation refers back to steps that do not exist either in set up or procedural steps. These criticisms are not show stoppers though as the formulas are fairly rock solid.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela