Professional Documents
Culture Documents
Cinema 4D 11 Workshop TQW - Darksiderg
Cinema 4D 11 Workshop TQW - Darksiderg
Copyright © 2008 by Pearson Education Deutschland GmbH. All rights reserved. First published in the German language
under the title “Cinema 4D Release 11” by Addison-Wesley, an imprint of Pearson Education Deutschland GmbH,
München. Cover image: © Marco Lindenbeck, webwo GmbH, mlindenbeck@webwo.de. 3d object: © Digitalstudios I
Dreamstime.com
No part of this publication may be reproduced, stored in a retrieval system, or transmitted in any form or by any means,
electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher.
Permissions may be sought directly from Elsevier’s Science & Technology Rights
Department in Oxford, UK: phone: (+44) 1865 843830, fax: (+44) 1865 853333,
E-mail: permissions@elsevier.com. You may also complete your request online
via the Elsevier homepage (http://elsevier.com), by selecting “Support & Contact”
then “Copyright and Permission” and then “Obtaining Permissions.”
Recognizing the importance of preserving what has been written, Elsevier prints its books on acid-free paper whenever
possible.
ISBN: 978-0-240-81195-6
09 10 11 12 13 5 4 3 2 1
1. Short Projects 1
Modeling with Parametric Objects—A Flashlight 1
Modeling with the HyperNURBS Object 32
Modeling an Antique Vase 71
2. Advanced Workshops 91
Illuminating a Room 91
Lighting an Outdoor Scene 141
Index 323
— Figure 1.1: A cone object will create the head of the flashlight.
quickly with a Bulge deformer. Subordinate flashlight on or off and regulates the focus of
the deformer under the cone, as shown in the light beam for different distances. As the
Figure 1.2. Make sure that the Y axis of the name indicates, it is a simple ring that is avail-
deformer points vertically up or down because able as a primitive. I would like to use a spline
the constriction or bulging of this deformer is with a NURBS object, though. Add a Rectan-
always calculated vertically to the Y axis. This gle spline and place it in the front viewport
should automatically be the case if you (XY viewport), above the right edge of the
haven’t changed the position or direction of upper cone cap, as shown in Figure 1.3.
the cone. I gave the rectangle a width of 30 and a
Now increase the value for Strength of height of 100 units. Zoom in to make sure
the Bulge object in the Attribute Manager. the lower edge of the spline is level with the
You should be able to see now how the sur- cone. You can see also the numerical value of
face of the cone bulges outward in the mid- the position in Figure 1.3.
dle. Increase the Y part of the deformer size Instead of using the built-in Rounding
to 320 units and the strength to about 12% option of the Rectangle spline, we convert
in order to get a result like that shown in the spline with Make Editable in the Func-
Figure 1.2. If the bulge of the cone appears tions menu or by using the (C) key. The
too angled, then increase the number of seg- parameters of the spline in the Attribute
ments along the height of the cone in its dia- Manager are lost but we can now edit the
log box, as shown in Figure 1.1. points of the spline directly in Use Point Tool
mode.
The Focus Ring Use the Live or Frame Selection to select
either the upper or lower two points of the
Above the head of the flashlight is the sepa- rectangle. Then right click into an empty area
rately rotating focus ring, which turns the in the viewport and use Chamfer from the
Modeling with Parametric Objects—A Flashlight
— Figure 1.3: A rectangle spline is used as the profile for the focus ring.
context menu. This command can also be the Attribute Manager after selecting the
found in the Structure menu under the Edit tool.
Spline entry. While holding the mouse but- In this case, that should be enough to cre-
ton, drag the mouse to the left or right to ate an optically pleasing result. When you
round the spline points, or enter a value in are done with the two points, select the
Chapter 1: Short Projects
— Figure 1.5: The focus ring gets volume by using the Lathe NURBS.
Modeling with Parametric Objects—A Flashlight
This completes the outer shape of the flash- The Bottom Cap of the Flashlight
light head, and we now can concentrate on
the handle. It can be made out of a cylinder The screw-on bottom of the flashlight is
object, the Height of which should be 940 more difficult because there is an additional
and the Radius 85 units. Here I use 72 seg- hole that can be used for a wrist strap. First
ments again around the circumference and a we will take care of the outer shape of the
small rounding at the caps. Be sure that the bottom cap and again use a rectangle spline,
cylinder is aligned along the Y Orientation. as shown in Figure 1.7. Change its size to a
Use the Orientation menu within the cylin- height of 90 and a radius of 170 units, and
— Figure 1.7: Another rectangle spline as the base for the bottom cap of the flashlight.
place it as level as possible under the cylinder is rotated. Of course we could have used a
of the handle. cylinder for this part, but with the spline it
In order to gain direct access to the rect- is easier to create round corners, especially
angle, you need to convert the spline with when different radii are used. We already did
the (C) key as well as select the two points that with the focus ring of the flashlight.
on the left side of the rectangle in the Use As mentioned, we will now create a new
Point Tool mode. Switch the mode in the Lathe NURBS object and place the open
Coordinate Manager to World and set the spline as its child, as shown in Figure 1.9. If
X position value to 0. This should move the location of the spline wasn’t changed,
the two selected points to the world Y axis. then a cylindrical object should appear imme-
Now select the lower of the recently diately. Then select the left points of the
moved points and right click in an empty spline one by one and use the Chamfer
spot in the viewport. In the context menu function to round the corners with different
choose Set First Point. Then deactivate the radii, as shown in Figure 1.9. This function
Close Spline option of the former rectangle can be found in the context menu after a
spline in the Attribute Manager, as shown in right click into the empty viewport. If you
Figure 1.8. In case you can’t see this option, have problems seeing the points on the spline,
click on the converted spline again in the then deactivate the Lathe NURBS for a
Object Manager to select it. moment by clicking on the green checkmark
The reason for this action is that the spline behind the name in the Object Manager.
can now be used with the Lathe NURBS to Another click on the checkmark activates the
create a massive cap. Because the two points Lathe NURBS again. The Enabled option in
are positioned on the world Y axis, a closed the Basic settings of the Lathe NURBS in the
cap is automatically created when the spline Attribute Manager has the same purpose.
Modeling with Parametric Objects—A Flashlight
— Figure 1.9: The Lathe NURBS rotates the spline and creates a closed volume.
— Figure 1.10: The volume of two cylinders is supposed to be subtracted from the bottom cap.
In the ZY viewport, which is the side view fore has to be set to ZY in the Attribute
of the scene, the cylinder should be located Manager so the mirrored cylinder appears to
slightly in front of the bottom cap of the the right of the original. Correct the position
flashlight and close to the middle axis. The of the cylinder if necessary to get the result
image on the bottom left of Figure 1.10 shows shown in Figure 1.10. Also add a fillet to the
that placement. caps in the Attribute Manager so a rounding
In order to create a symmetrical cylinder is created when the cylinder is subtracted
on the other side, it is possible to just make a from the bottom cap of the flashlight. A
copy of the cylinder. It would have to be radius of 5 units should be enough. Since we
placed manually, though, and adjusted every work entirely parametric, this setting can be
time the first cylinder is changed. It is easier changed anytime.
to use the Symmetry object, which can be
found in Objects>Modeling or in the corre-
sponding icon menu. Place the cylinder as a Connecting Objects with
child of the Symmetry object. Depending on the Boole Object
the chosen symmetry plane, a virtual copy of
the cylinder appears in the scene. The axis Many complex forms can be created by com-
system of the Symmetry object acts as the bining simple shapes. The Boole object can
base for the mirroring. The mirror plane there be helpful, especially with mechanical parts.
Modeling with Parametric Objects—A Flashlight
— Figure 1.11: The Boole object enables the subtraction of objects from each other.
— Figure 1.13: Boole objects can be combined to create more complex shapes.
mode to get a solid unit, one volume created eled or whether it is enough to use a mate-
from the three cylinders. This unit can then rial property. In the case of the knurling on
be subtracted from the Lathe NURBS as we the head piece of the flashlight, I decided to
did before. Figure 1.13 shows the structure of model it with a ready-to-use Star spline. I’ve
the hierarchy between the Boole objects on set the number of points to 160 teeth and
the left and the result on the right. Since all oriented the star spline along the XZ plane.
objects remain parametric, the width of the An inner radius of 126 and an outer radius
bridge can be changed anytime by moving of 127 generate flat spikes that are well suited
the cylinder in the Symmetry object. The bore for our purpose. Place the Star spline as a
can also be adjusted by changing the radius child of a new Extrude NURBS object from
of the slim cylinder. the Objects>NURBS menu. A movement of
50 units along the Y direction should be
enough.
The Knurling at the Head Now move the star under the focus ring
of the Flashlight so that the knurling is positioned as shown in
Figure 1.14. The figure also shows the other
When adding roughness to surfaces, we have settings of the Extrude NURBS and the Star
to first ask whether these need to be mod- spline.
Modeling with Parametric Objects—A Flashlight 11
mouse in the Object Manager. Then select interpolation can be used for both segments.
Make Editable in the Functions menu or sim- In the case of the linear interpolation, it
ply use the (C) key. The result can be seen in would look like the left side of Figure 1.16.
the upper right of Figure 1.15. The two still The star remains unchanged, while the circle
selected splines can now be combined into a on the inside, since its points are no longer
new spline with Functions> Connect. This connected in a cubic manner but in a linear
new spline now appears on the top of the list one, changes to a square.
in the Object Manager. The two original In this case you can switch to Bezier inter-
splines still remain. The center image on the polation. Select the inner four points belong-
right side of Figure 1.15 shows this situation. ing to the circle and right click into the empty
You can now delete the two original splines. area of the viewport. Select Soft Interpola-
Just use the (Delete) key or select the Delete tion in the context menu. The selected points
command under Edit in the Object Manager. automatically receive soft interpolated tan-
Of course, the two splines about to be deleted gents. Now the circle gets its shape back
have to be selected first. almost completely, as seen in the right part
The newly connected spline can now be of Figure 1.16.
placed as a child of the Extrude NURBS, as In order to get back the outer corners of
shown on the bottom right of Figure 1.15. the star spline, invert the current point selec-
Before the connection we dealt with two tion of the four inner points by selecting
individual splines that used different interpo- Selection>Invert and right clicking in the
lations. The star had a linear interpolation viewport. Choose Hard Interpolation in the
and the circle a cubic interpolation. After context menu to reduce the tangents of
connecting the two splines, only one type of the points to 0 lengths.
Modeling with Parametric Objects—A Flashlight 13
The Reflector of the Flashlight and this opening is always located between
the first and last point of the spline. Deselect
When looking through the focus ring, we see the Close Spline option of the spline in the
the cap of the deformed cone. This will now Attribute Manager and delete the two ellipse
be changed by adding some more parts. Start points on top and on the left. What remains
with a new Circle spline, which can be is the lower right quarter part of the ellipse,
deformed individually along its two axes by as shown on the right side of Figure 1.18.
using the Ellipse option in the Attribute Now we will shape the part of the spline
Manager. As you can see in Figure 1.17, I that protrudes from the flashlight without
aligned the ellipse in the front view so it changing the remaining shape of the spline.
remains exactly on the world Y axis. Its lower Therefore, we need to add a point to the
end protrudes into the head part of the flash- spline. Activate the Move tool in Use Point
light in such a way that the curve of the Tool mode and hold the (Ctrl) key while
ellipse portrays the reflector. clicking on the spline. This creates a new
I used a radius of 105 units in the X direc- point at the spot where we clicked without
tion and 100 units in the Y direction. This is changing the course of the spline.
not set in stone, though. The ellipse shouldn’t Click the mouse in the area of the spline
extend to the upper part of the focus ring. just before where it reaches the inner wall of
Instead it should extend into the lower part. the focus ring. The left part of Figure 1.19
Similar to the bottom part of the flash- shows the location and the newly created
light, the reflector will be built by rotating point. Then select the point at the upper end
the ellipse spline using a Lathe NURBS. But of the spline and select Hard Interpolation
we only need the bottom part of the ellipse. in the context menu. Now move this point
Therefore, convert the Circle spline by press- down as far as is shown on the right side of
ing the (C) key, switch into the Use Point Figure 1.19. You will have to adjust the upper
Tool mode, and select the lowest point, as tangent of the new spline point, so hold the
shown in Figure 1.18. With a right click into (Shift) key in order to move the tangent
an empty part of the viewport, open the con- arms independent of each other. The goal is
text menu and select Set First Point. This is to soften the transition between reflector
necessary because the spline has to be opened, and focus ring.
14 Chapter 1: Short Projects
— Figure 1.17: The basic shape of the reflector in the head of the flashlight is created with the help of
the Circle spline.
Add a Lathe NURBS object and subordi- into the reflector so the light bulb can
nate the spline under it. For a better view of protrude through it. Generally it would be
the reflector it might be helpful to make the enough to move the lowest point of the
surrounding objects invisible. Use the upper reflector spline away from the Y axis, creat-
of the two gray dots behind the objects in ing an opening at the Lathe NURBS. The
the Object Manager. Double clicking on the flank of the reflector would change its tilt at
dot changes its color to red and makes the the same time, though, and I want to avoid
object invisible. Another click on the dot this.
allows the object to appear again. As a result we will use a new slim Cylin-
der and combine it with a Boole object, as
The Light Bulb in the Reflector shown in Figure 1.20. The volume of the
vertical cylinder is then subtracted from the
In order to get our flashlight to illuminate, reflector bowl and creates the desired
we need a light bulb at the base of the opening. Note that the Boole object does not
reflector. We could just put an object at the use the A subtract B mode this time since
reflector, but instead I want to cut a hole we aren’t working with two volumes. The
Modeling with Parametric Objects—A Flashlight 15
— Figure 1.20: Cutting out the opening for the light bulb.
reflector is just a thin-walled bowl. To create tor. Figure 1.21 shows my settings and the
the opening we have to use the A without B finished result on the right.
mode. The volume of the cylinder will then
be subtracted from the open bowl and cre-
ates the desired effect. Figure 1.20 shows, The Cover Glass of the Flashlight
superimposed on the right, the cylinder and
underneath the reflector with the resulting The only thing missing is the cover glass on
opening. top of the reflector. It is very thin and
For the actual light bulb we don’t need doesn’t have any special facets. As a result
many details. I recommend using the Capsule we can use a simple flat cylinder for this
object of CINEMA 4D. Its shape is close part. Add a new cylinder, align it vertically,
enough to the shape of a light bulb. Choose and match its radius to the upper edge
a capsule Radius slightly under the radius of of the reflector. One unit is enough for
the cylinder used to cut the hole in the reflec- the height. Make sure that the cylinder lies
Modeling with Parametric Objects—A Flashlight 17
flush on top of the reflector, as shown in the way. We could convert the cone into a
Figure 1.22. Polygon object and delete the cap, but then
we would lose the parametric properties of
Finishing the Model the cone. Therefore, I decided to use a Boole
object to subtract a cylinder from the upper
After making all parts of the flashlight visible part of the cone.
again, depending on the intrusion depth of Figure 1.23 shows the necessary hierarchi-
the reflector, we notice something. Even cal structure and the position of the cylinder
though we have faded out the knurling on the left side. As for the size of the
by building the hole spline for the reflector, cylinder, it is important only that it doesn’t
the upper cap of the deformed cone is still in penetrate the sides of the cone and that it
leaves enough space for the lower end of right side. There we will need a diamond-
the reflector and the light bulb. This com- shaped structure. Of course, we could find an
pletes the model and we can now focus our image of this structure in an image collection
attention on the surface and the lighting. or create it ourselves in Photoshop. We have
more flexibility, however, when we build
these kinds of structures with shaders directly
The Texturing of the Flashlight in CINEMA 4D.
For all structures that are constructed by
Part of the flashlight handle has a diamond- straight lines, the Tiles or Gradient shader
shaped pattern, which makes it less slippery. can be used. The latter gives us more control
I don’t want to use additional geometry, like over the width and direction of the lines. The
with the knurling beneath the focal ring. This Gradient can be found in the menu that
time I will use bump, a material property. opens after clicking on the triangle button in
This is always recommended when the struc- the Texture area of the Bump channel. The
ture is so flat that it doesn’t significantly settings of the Gradient shader can be
change the shape of the object. accessed by clicking on the large button in
We start by creating a new material in the Texture area of the material channel or
the Material Manager by going to File>New by clicking on the preview image of the
Material. A double click on the gray preview shader.
sphere in the Material Manager opens the
settings of this material in a separate Mate- Controlling the Gradient
rial Editor. These settings could also be done
in the Attribute Manager. Figure 1.24 shows the Gradient shader loaded
We will disregard all the color settings for inside the Bump channel and all the settings
now and concentrate on the roughness of necessary to create a diamond-shaped pat-
the material. The Bump channel is used for tern. Choose the gradient type 2D-Diagonal
simulating this roughness. It can be activated and adjust the color handler so the middle
on the left side of the Material Editor with color of the gradient is black and the left and
a checkmark and edited by clicking in the right sides are white.
— Figure 1.24: A gradient helps with the visualization of the roughened handle structure.
Modeling with Parametric Objects—A Flashlight 19
The color tabs can simply be moved with sure that the Texture Tag behind the cylin-
the mouse. These positions can also be set der is active, which is indicated by the white
numerically in the advanced settings by dou- frame around the symbol. This mode shows a
ble clicking on the small triangle in front of preview of the projection in the viewports. A
the gradient, making these settings visible. yellow grid indicates the size and position in
New color tabs can be added with a mouse 3D space. The common tools for moving,
click directly under the gradient. Obsolete rotating, and scaling can be used to change
color tabs can be removed from the gradient the direction of the material projection.
by pulling them upward with the mouse. The In order to fit the projection to the dimen-
color values of the color tabs can be edited in sions of the object, use the Fit to Object
the advanced settings under the gradient or command in the Tags menu of the Object
by opening the system color chooser and Manager. In our case the corrugation is not
double clicking on the color tab. supposed to cover the entire length of the
The goal is to create a diagonal black line. handle, but only a part of it. We will look
In order to turn this line in a diamond pat- into that in a moment. First, we must deter-
tern, the Cycle option has to be activated in mine the correct proportion of the bump so
the shader. It allows us to tile the shader, or that the corrugation has the proper size and
repeat it multiple times, on the surface. number on the cylinder.
The size, shape, and number of diamonds
Applying the Material are determined by the size of the projection
and controlled by the number of tiles in the
In order to increase the effect of the bump, Texture Tag. As shown in Figure 1.25, I used
we need to return to the level of the Bump 100 tiles in the X direction and 50 in the Y
channel. To return, use the upward arrow in direction, with a Y length of the projection
the upper right corner of the Material Edi- of 300 units. In addition, the options Tiles
tor or just click on the word Bump in the and Seamless need to be activated. The Seam-
channel list on the left side. Then increase less option alternately mirrors the tiles and
the intensity of the bump to 1000% using actually generates the diamond structure,
the Strength value. Values above 100% can since the gradient itself shows only a diago-
be entered directly in the numerical field. nal line. The alternate tiling of these lines to
The slider itself can only go up to 100%. one another builds the diamond shape. By
placing the Interactive Render Region, which
Adjusting the Texture Tag can be found in the Render menu in CIN-
EMA 4D, over the cylinder in one of the
Pull the material from the Material Man- viewports, we can easily follow the changes
ager onto the handle cylinder in the Object made by the number of tiles or the size of
Manager. To make the projection onto the the projection. Figure 1.25 shows the desired
object easier, choose a projection type similar result on the right.
to the shape. In the Texture Tag settings,
which can be seen in the Attribute Manager, Restricting the Material
choose Cylindrical as the Projection of the
material. If you can’t see these settings, sim- Upon a closer look, we realize that when til-
ply click on the small material symbol behind ing the texture, the covered area became
the cylinder in the Object Manager. The size larger than the original area of the projec-
of the projection can be found and adjusted tion. Even when the area for the corrugation
in the Coordinates section of the Attribute is defined by the Y length of the projection,
Manager. the pattern continues beyond these limits.
If you prefer more visual options, then This is always the case when the Tiles option
activate the Use Texture Tool mode. Make has been activated. The preview of the
20 Chapter 1: Short Projects
We will now switch to the Use Polygon eral buttons. For applying a material, though,
Tool mode and use the Ring Selection, in only the name is of importance. As shown in
the Selection menu, to select the polygon Figure 1.27, I used the name “grooved” and
strip that is between the two previously entered this name into the Selection field of
moved subdivisions. With the Ring Selection the Texture Tag. An even easier way is to
tool activated, move the mouse over the simply pull the selection tag from the Object
middle polygon strip and click on it when the Manager directly to the Selection field of
desired faces are highlighted. Then select Set the Texture Tag dialog in the Attribute
Selection, also located in the Selection menu. Manager. From now on, the material will
This saves the information of the selected be restricted to the faces saved in the selec-
faces in a polygon selection tag, which then tion tag.
appears in the Object Manager, behind the
cylinder. Creating the Rest of the Materials
The selection tag becomes active when
you click on it once. Its name can be changed All the remaining materials will not need vis-
in the Attribute Manager and the saved ible structures and can be applied by a simple
selection can be accessed by means of sev- drag and drop onto the object. But first we
need to finish the texturing of the flashlight rial with reflective properties and a highlight.
handle. Open the material with the gradient But we have to keep in mind that there are
in the Bump channel using a double click in not many objects, or even an environment,
the Material Manager. Activate the Color available around the flashlight. Even with
channel by clicking on it in the channel list high reflection values, not much would be
on the left. There, use a very dark and desat- reflected in the reflector. Consequently, we
urated blue. Metals generally have a very will use a trick and simulate a light reflection
dark color. in the reflector by using additional material
Metals get their appearance more by way properties.
of their reflective properties, which we will Create a new material that you could call
now apply by using the Reflection channel. Reflector, and apply a strong Reflection of
Activate the Reflection channel with a about 95% and a small intense Specular. In
checkmark and set a slightly blue color with addition, activate the Luminance channel, set
medium brightness. In order to make the it to 50%, and reduce the color brightness of
metal appear less polished, increase the value the Color channel to about 40%. Figure 1.29
for the Blurriness to 20%. This increases the shows all settings in detail. This causes the
render time but looks more natural for a reflector to react, in addition to the reflec-
basic commodity like a flashlight. The high- tion, to the incoming light and be brightened
light should be relatively small but intense. through luminance. We will see if all this
This setting can be made with the Height looks as desired at the end, after the lighting
and Width settings in the Specular channel. is added.
Lastly, go to the Illumination channel
and switch to the Oren-Nayar Model. This The Glass Material
increases the impression of a slightly rough
surface. All these settings can be seen in The material for the lens is structured in a
detail in Figure 1.28. Use the same settings simple way. One main part, of course, is a
for a second new material that will be used high brightness in the Transparency channel.
for the head and bottom of the flashlight. The Exit Reflections option can be turned
No bump is necessary in these areas. off since this doesn’t matter with such thin
objects and would only use up valuable ren-
The Material of the Reflector der time. A Refraction of 1.5 is enough for
glass. In addition, I want to strengthen the
The reflector is nothing more than a mirror. reflective properties by activating the Reflec-
It often would be enough to just use a mate- tion channel with a brightness of 100%. This
high value will be balanced by the strong floor should simply have a white color.
transparency. The brightness of the color We will create a new material and give it
is reduced to 20%. I don’t use a highlight a brightness of 100%, as shown in Fig
this time, since the reflector behind deliv- ure 1.31. The desired overall matte look is
ers enough brightness. All these settings are generated by the settings in the Illumina -
shown in Figure 1.30. tion channel. We use again the O ren -
Nayar Model and increase the Diffuse
The Floor in the Scene Reduction value to 100%. This widens and
d iffuses the highlighted area on the object
I want to add a floor to put the flashlight as seen at the preview sphere of the
on so it doesn’t just float in 3D space. This material.
24 Chapter 1: Short Projects
Negative values can also be used when We will add this Floor object, which can
polished surfaces are portrayed. Then the be found in Objects>Scene, and apply the
brightness is more concentrated around previously created material to it. Don’t be
the highlight and less scattered across the fooled by the small square area in the view-
surface. port. The floor will cover the entire area of
As the object for the floor, either a Poly- the scene after the image is rendered. The
gon or Plane object could be used. However, Floor object can also be moved and rotated
in some cases it is better to use the Floor just like any other object. Therefore, it can
object since it has a special property. It auto- also be used for different purposes, like the
matically expands up to the horizon of the roof of a very large hangar or the sky.
scene when rendered, actually becoming The parts of the flashlight should now get
infinite. the appropriate materials. Simply pull the
Modeling with Parametric Objects—A Flashlight 25
— Figure 1.32: The building of the scene with the flashlight on the floor.
materials from the Material Manager onto placed on the bottom, to the left of the cor-
the respective object in the viewports or onto rugated material. Then group all the parts of
the names in the Object Manager. Only the the flashlight with a Null object. The fastest
corrugated part of the handle that already way to do this is to select all objects, except
has a material applied has to be treated the floor, with a frame selection in the Object
differently. Manager and then press the key combina-
Although the handle already has a mate- tion (Alt) + G. This will group the selected
rial applied to it, the remaining faces have to objects under a Null object that can then be
receive a material as well. This is no problem, renamed to flashlight.
since an object can receive multiple materi- Then rotate and move the flashlight so it
als. What is important here is the order of appears to lie on the floor. This can be seen
the materials behind the object in the Object in Figure 1.32 on the right.
Manager. The material on the very top is
always placed on the far right behind the The Compositing Tag
object. This works just like a layer system.
First pull the blue flashlight material without Many properties of the objects can be con-
the Bump channel onto the handle cylinder. trolled during the rendering with a Composit-
The corresponding Texture Tag symbol will ing Tag. We want to try this with the Floor
then appear to the right of the previously object. Right click on the Floor object in the
applied Texture Tag of the corrugated part. Object Manager and choose CINEMA 4D
The flashlight material now covers the corru- Tags>Compositing Tag from the context
gated material. menu.
As a result, we have to change the order The Compositing Tag offers many options
of the Texture Tags manually. Drag and drop in the Attribute Manager for determining
in the Object Manager in such a way that how the object should behave in the scene
the material without the bump structure is later on. For example, the object could be set
26 Chapter 1: Short Projects
to invisible for the camera, yet remain visible it would appear way too bright. Pull the
in reflections or behind glass walls. Shadows Floor object from the Object Manager into
could also be turned off, or the precision the Objects list found in the Scene portion of
level for the global illumination or the edge the light source dialog. With the Mode menu
smoothing could be altered. Other options set to Exclude, the objects listed will not be
adjust the calculation of individual alpha affected by the light source. The icons behind
masks, like with the Multi-Pass rendering. In the listed objects, representing single attri-
our case we just need to deactivate the shad- butes like highlight, diffuse illumination, or
ows and the Seen by GI options. This will pre- shadows, can be used to exclude certain attri-
vent the floor from participating in the global butes from this restriction. For example, if
illumination. we deactivate the icon for the highlight by
clicking on it, the object won’t be diffusely lit
and won’t cast any shadows, but it would
The Light Sources in the Scene still have a highlight from the light source,
provided of course that the material of the
Every scene automatically contains a light floor permits a highlight.
that can have its position adjusted in the Figure 1.33 shows the settings of this light
Display>Default Light menu in every view- source in detail on the left. On the right are
port. This light source is not suitable for the the parameters for the second light source. It
final lighting, though, since neither the inten- is also an Area light but with much less
sity nor the shadows can be edited. There- intensity and without reflective properties.
fore, we will place other light sources into Here we permit global illumination by acti-
the scene. As soon as a light is added to the vating the GI Illumination option.
scene the default light turns off. In this case, As for the positioning of the lights, just
I’d like to use a classic studio light setup with take a look at Figure 1.34. The intense and
a main light and a fill light. Both lights should reflective light is positioned as a small strip to
be Area lights because these lights simulate a the left of the flashlight. The weaker fill light
very realistic behavior. Real light sources also is opposite as a slim, vertical strip. These posi-
have a certain areal expansion and don’t con- tions should be tested with test renderings
sist of just a point in space. or, even better, with the Interactive Render
I place one of the Area lights, based on Preview to adjust them to your liking.
the view through the camera, behind the Figure 1.35 shows the desired effect after
flashlight. This light is very intense and will the rendering of the current viewport. I had
also appear in the reflections of the flashlight set the Anti-Aliasing to Best in the Render
by activating the Show in Reflection option Settings in order to be able to judge the
in the Details section of the light source. The effect of the bump material on the handle.
Visibility Multiplier will increase the reflec- I also activated the Ambient Occlusion in
tion even more. Because this light is posi- the Render Settings to create shading in the
tioned right behind the flashlight I increase area between the flashlight and the floor
its Intensity manually to 200%. As with without a real shadow generated by a light
many parameters controlled by sliders, values source. I increased the Maximum Ray Length
larger than 100% can be set by entering them to 500 units, which is adjusted to the dimen-
directly into the numerical field. The option sions of our flashlight. A Dispersion of 80%
for GI Illumination remains deactivated. Such restricts the scattering of the samples and
an intense light would overpower the scene thereby increases the contrast of the Ambi-
in a global illumination calculation. ent Occlusion at the edges.
It is also important to be sure that the I already like the intensity of the reflec-
floor isn’t affected by the light source; if it is, tion at the head of the flashlight. Only the
Modeling with Parametric Objects—A Flashlight 27
— Figure 1.34: The position and size of the two Area lights.
28 Chapter 1: Short Projects
Lighting with Global Illumination the global illumination calculation. Figure 1.38
shows a visual comparison of the light bulb
To simulate the switched-on flashlight, we material and the results after activating the
could place a spotlight on the reflector and global illumination and changing the Sampling
adjust its opening angle to the width of the Mode. It also lists the render times, showing
lens. We can go a step further, though, by how increasing the sample accuracy has a
using global illumination. Not only does this direct influence on the render time. We have
define the light bulb itself as the light source, to find a compromise between quality and
but also the indirect light and the light render time here. Keep the Sampling Mode
reflected from the hemisphere will enhance Oversampling for now and apply the mate-
the look of the image. rial to the light bulb by pulling it onto the
In order for the light bulb to emit light, it Capsule object in the Object Manager.
has to receive a material with illuminating
properties. Also, the intensity for the global Using GI Portals
illumination and the Sampling Mode has to
be defined on the Illumination page. The A GI Portal is an object that lets GI rays
size of the object plays a part, too. The smaller pass without using render time to do so.
an object, the more illuminated it has to be This is helpful when light shining through a
to create an illumination effect. Thus, in the window is supposed to illuminate a room.
case of the light bulb, I have to use extreme The window glass would then be such a GI
values like 10000% for the Generate GI portal. In our example this property would
Strength and 300% for the Saturation, as apply to the lens because the light bulb
shown in Figure 1.37. These values are multi- beneath is supposed to send its rays out into
plied to define the actual illumination the scene.
strength. For that purpose we open the glass mate-
The Sampling Mode in illuminating mate- rial again and go to the illumination setting,
rials defines how they are sampled during as shown in Figure 1.39. As you can see,
30 Chapter 1: Short Projects
— Figure 1.38: Comparison of the different sampling modes of the light bulb material and the resulting
render times.
I completely deactivated the generating and The reflector material also has illuminat-
receiving GI properties. The more transpar- ing properties. Here the Sampling Mode con-
ent a material is, the less it benefits from trols the evaluation of this object during
global illumination. Therefore, we can do rendering by global illumination. Since this
without it here and save some render time. object doesn’t affect the illumination of the
The GI Portal option also bundles the cal scene as much as the light bulb, we can use
culation rays of this object since—as the the relatively fast but also softly interpolated
name Portal indicates—a passing of light Oversampling. Figure 1.40 shows these set-
through the object is expected. tings again.
Modeling with Parametric Objects—A Flashlight 31
image. The last thing to do is to enter the Modeling with the HyperNURBS
desired render resolution into the Output
Object
section and the file path in the Save section
of the Render Settings, and to start the ren-
dering in the Picture Viewer. The result of
So far we have only used NURBS objects as
my rendering can be seen in Figure 1.42.
help objects that can generate Polygon objects
out of spline curves. The HyperNURBS object
is different from the other NURBS objects
since it needs a Polygon object to actually do
something. It is quintessential for modeling
rounded objects. The HyperNURBS is able to
subdivide and automatically place these subdi-
visions to make the object look rounded.
A Short Example
— Figure 1.42: The rendered image with global A short example will clarify its abilities. Cre-
illumination and glow effect. ate a primitive cube and add two segments
Modeling with the HyperNURBS Object 33
— Figure 1.43: A cube is converted and cut in half by deleting some points.
in the X direction and two in the Y direction In a moment the HyperNURBS will auto-
in the Attribute Manager. Then change the matically subdivide and smooth the roughly
Z size to 100 units and convert the cube modeled shape. This can only be done, how-
using the (C) key. Change into Use Point ever, with a completely closed volume. Open
Tool mode and select all points that are edges remain sharp after the HyperNURBS
located to the left of the center of the cube rounding. Accordingly, we close the upper
in the front viewport. Delete these six points four points along the open side of the former
by using the (Delete) key. Make sure that cube with a square.
the mouse pointer sits over one of the view-
ports. Otherwise, when the pointer is located Manually Generated Polygons
over the Object Manager, the (Delete) or
(Backspace) key then deletes the whole Make sure that you are still in Use Point Tool
object and not just the selected points. mode and then select Create Polygon in the
Figure 1.43 shows the desired state of the Structure menu of CINEMA 4D. By clicking
object. on a series of points, this tool allows the cre-
In the next step, select the lowest four ation of a new polygon between them. To
points and scale them along the Z direction make a triangle, single click on the first two
to about one-third of the original distance points and double click on the third. A quad-
between them. Then move the points of the rangle is built with three single clicked points
half cube as shown in Figure 1.44. Can you and one double click on the fourth point.
guess what the final shape will be? Planes with more than four points, so-
The shape should look like a stylized heart called n-gons, are also possible. Just single
by now. Make sure that the four points on click on all points along the edge and create
the lower left edge of the shape remain the face with a double click on the last point.
exactly on the ZY plane. We will want to The tool can be deselected by selecting
amend the left side of the heart with a Sym- another tool, such as the Move tool. Keep in
metry object. The Symmetry object combines mind that the points will be connected in the
points that are located exactly on the mirror order they were clicked on. Therefore, get
plane. This is an important feature to ensure into the habit of clicking clockwise or coun-
that the original and the copy will fit together terclockwise. The left side of Figure 1.45
seamlessly. shows the desired result.
34 Chapter 1: Short Projects
— Figure 1.44: Moving the lower points together along the Z axis and the shaping of the remaining
points.
— Figure 1.45: Manual closing of the upper faces and completion of the shape with a Symmetry object.
— Figure 1.46: The HyperNURBS generates an interactive smoothing of the subordinated geometry.
Modeling a Carabiner
Figure 1.49. The settings for the size and
position of the image in the front viewport
For this example we will use a photo of a
depend on your individual preferences. By
small carabiner (as shown in Figure 1.48) as
and large you don’t have to change anything
our template. This ensures that we keep the
here.
approximate dimensions and it helps with
placing the geometries more exactly.
You can load images in any of the isomet- Modeling the Upper Loop
ric viewports: the front, side, or top view. In
this case, use the Edit menu in the front We will start the modeling at the fixed top
viewport and select Configure. curve of the carabiner and then continue
In the settings of the Attribute Manager downward. In a second step we will model
you can also find a Back tab. A click on the the gate, and last is the mounting for the
button with the three dots opens a window key ring. Again, we will use as many basic
where you can load any type of bitmap. objects as possible to reduce the manual
Depending on the size and orientation of the modeling. You will also learn about some
image you can now rotate, scale, and move it new polygon tools such as the knife and the
to a different location within the viewport. extrusion tools.
Because of the orientation of the image we The easiest way to start is with a bent cyl-
have to rotate it by –90°, as shown in inder at the upper part of the carabiner. Add
— Figure 1.49: Loading the image into the background of the front viewport.
Modeling with the HyperNURBS Object 37
a Cylinder primitive and set the Radius to 10 the vertical cylinder by 22.5° places a face,
and the Height to 250 units. These values when seen from above, left, and right, onto
depend on the scale of your background the world X axis. When these faces are
image. Adjust your radius so it approximately deleted, the cylinder will be divided into two
matches the thickness of the gate in your pieces where we need to insert the gate.
image. When in doubt increase the radius Lastly, deactivate the option for the creation
since the geometry will shrink a bit when the of caps at the cylinder. What is left is a thin-
HyperNURBS smoothing is applied. Eight walled pipe.
segments are enough for the circumference.
The smoothing will be done later with a Bending the Cylinder
HyperNURBS object. Because the cylinder is
supposed to be bent we will need additional Rotate the cylinder in the front view so it is
segments along its height. I prefer to work slightly tilted to the right. Use the outer
with 10 segments. The cylinder should also edge of the carabiner as a guide that runs
stand vertically, so use the +Y direction in from the lower base at the right side of the
the settings of the cylinder in the Attribute carabiner in the direction of the gate. The
Manager. area over the gate then transforms into a
Since we have to split the carabiner into curve. This bend can be created with a Bend
two halves at the base—the movable gate deformer, which is a child of the cylinder.
has to be added there—it makes sense to Correct its local H rotation in the Coordinate
rotate the cylinder around the vertical axis so Manager to –22.5°. The Z axis should now be
one face of its circumference is placed verti- vertical to the front viewport. The P and B
cal to the symmetry axis. For a better under- angles are set to 0°. The Y part of the posi-
standing, take a look at Figure 1.50. Rotating tion will be determined in a moment.
In Use Model Tool mode, pull the orange
handler of the deformer—in the front view-
port—with the Move tool to the right, so
the upper part bends according to the image
in the background. Since the radius of this
bend is determined by the Y length of the
deformer, you have to adjust it so the result
looks like the one in Figure 1.51. There you
can also see the settings I’ve used for the
deformer.
By moving the deformer along its Y axis
we can define the starting point of the bend.
If the cylinder is too short at the upper end,
use the Use Object Axis Tool mode to move
the cylinder with the Move tool further up
along its Y axis. The position of the Bend
object is not changed by this move.
This is a specialty of the parametric objects
since they are constantly calculated based on
their position. When we move the local axis
system of these objects, the location of the
objects in 3D space is automatically changed
— Figure 1.50: A slim cylinder is the start as well, but the child objects remain at their
object. original location.
38 Chapter 1: Short Projects
— Figure 1.51: The desired bend in the cylinder is created with a Bend object.
— Figure 1.52: Converting the cylinder and subdividing it with additional cuts.
case we will select the Loop mode. It auto- the loaded background photo. The right side
matically makes the cut through a series of of Figure 1.52 shows the state of the model
neighboring faces. A highlight function shows up to that point.
the course of the cut to be made in the edi-
tor before the cut is made by a mouse click. The Shaping of the Base
Deactivate all options in the knife dialog,
since we want neither to restrict the cut To shape the upper part of the base, we can’t
to only selected elements nor to generate use the technique of horizontal cuts. We will
n‑gons. The latter would create new points need more subdivisions that run vertically
at the edges and also fill the cut faces with n- through the base. Bear in mind, though, that
gons. These types of faces should be avoided, we are dealing with slightly bent parts and
though, when using HyperNURBS smooth- should avoid using triangles. Remember, tri-
ing, since they don’t give us any control over angles are subdivided differently at Hyper-
the internal interpolation of the n-gon faces. NURBS smoothing and could look funny in
Now move the mouse pointer, with the combination with surrounding quadrangles.
activated Knife tool, over one of the outer We should use only quadrangular subdi-
vertical lines of the carabiner. You will see a visions and pay special attention to the
highlighted line that adjusts itself based on possible connection points. Therefore, we
your mouse movement and indicates the will delete a face for the moment, as shown
course of the cut. When you like what you on the left of Figure 1.53. A simple selection
see, make a mouse click to apply the cut. of the face in Use Polygon Tool mode and
For a more precise preview, push the (Shift) use of the (Delete) key will take care of
key while the preview of the cut is still high- that. Simply delete the visible face in the
lighted. Then you can position the cut with front viewport. The back of the deformed
the Offset function in the Attribute Man- cylinder will be replaced anyway and can be
ager. A mouse click in the editor then makes disregarded.
the cut. The two diagonal arrows shown in the fig-
Two horizontal cuts at the spot where the ure indicate where the two loop cuts should
gate enters the base should generate enough be added. The right cut continues the subdi-
points to further adjust the shape to the vision of the upper cylinder at the base. In
image. Select and move the new points on the next step we will create a connection
the left side of the model to align them with point at the upper edge of the base.
40 Chapter 1: Short Projects
— Figure 1.54: Manual closing of the open areas at the base of the carabiner.
First, though, delete another polygon, as remaining three faces until the base is closed,
shown on the right in Figure 1.53. The arrows as shown on the right side of Figure 1.54.
there point to another two cuts that should To eliminate incorrectly aligned normals
be executed in Loop mode. Use the added use Align Normals in the Functions menu.
points along the upper edge of the base to When you are in Use Polygon Tool mode,
shape the desired course, following the back- make sure that no faces are selected. Other-
ground image. wise, the function would be restricted to the
In Use Point Tool mode activate the Cre- selected faces. In that case use Deselect All
ate Polygon tool in the Structure menu and from the Selection menu.
create the left face, as seen in Figure 1.54, by
consecutively clicking on the four corner Creating the Hole in the Base
points. Double click on the last point to close
the face. Remember to not click randomly on In the center of the base there is a hole that
the points but to select them clockwise or goes all the way through. It will contain a
counterclockwise. Do the same with the riveted pin that will later hold the movable
Modeling with the HyperNURBS Object 41
— Figure 1.55: The contours for the hole are built by extruded inner faces.
part of the carabiner. Such holes could be First, place the point located closest to
created with a Boole object. This method the center of the hole as exactly as possible
generates too many faces, though, and can at the center, as shown on the top right of
not be used because of the resulting uncon- Figure 1.55. Then change to Use Polygon
trolled generation of triangles in the Booled Tool mode and select the four faces sur-
area, which would create unexpected results rounding this point. To generate additional
during the HyperNURBS smoothing. There- faces within polygons, which can be used to
fore, we will choose another way. model the edge of the hole, use the Extrude
First activate the X-Ray mode for the Inner command from the Structure menu.
deformed cylinder object. This option can be As you hold down the mouse button in
found in the basic settings of the cylinder in the front viewport and move it to the left
the Attribute Manager. The object will then and right, new polygons are created in the
have a slightly transparent appearance in the same plane as the previously selected poly-
viewports and will allow the background gons. As an alternative, you could use the
image to shine through in the front view- Offset value in the Attribute Manager
port. This way it is easier to compare the and then the Apply button in the Tool
center and size of the hole with our model. section of the dialog when you wish to use
42 Chapter 1: Short Projects
a certain value. This is not necessary in our deleted and then replaced by the mirrored
case. part of the remaining object. First we make
Back in Use Point Tool mode, use the sure, by deleting some polygons, that the
new points to shape an octagon around the base underneath the branching of the upper
center of the hole to indicate the desired arm is split into two halves.
opening. Remember that the HyperNURBS The upper images in Figure 1.56 show this
object will take care of the smoothing in this area of the opening with a highlighted
area, too, so don’t be bothered by the angu- frame.
lar look of the shape. The lower two images Then we select the faces at the front of
in Figure 1.55 show these steps. the base, seen in the lower left of Figure 1.56,
and move them along the world Z axis. The
Modeling the Inside of the Base image on the bottom right in Figure 1.56
shows the side of the model and the approxi-
As already mentioned, we took these steps mate size of this movement.
only in the visible part seen in the front The reason for this movement is to create
viewport. The rear of the object will now be more space between the halves of the base
— Figure 1.56: Parting the two sides of the base by deleting polygons.
Modeling with the HyperNURBS Object 43
so that the arm of the movable part of the of the base and choose the Extrude com-
carabiner can be inserted later. mand in the Structure menu.
The corresponding faces that form the
back of the base and that were not moved Extruding Faces
can now be deleted. Figure 1.57 shows the
desired state of the object in the side view. The Extrude command doubles selected faces
Now we will close the inside of the base and and moves the duplicates along the normal
implement the hole as an actual opening. In direction by any given amount. This allows
the first step we will use the Create Polygon us to extend or split objects. It is, along with
function in the Structure menu and close the knife and the previously used Extrude
the areas with four quadrangles, as shown in Inner tool, one of the most-used tools.
the center top in Figure 1.57. Select the four Its function is similar to the Extrude
quadrangles that mark the hole in the center Inner tool. First select the face, then choose
the Extrude tool and move the mouse, while mouse in the editor. Doing this creates new
holding the mouse button, to the left or faces along the previously open edge of the
right in the editor. Here you could also work structure—a good technique for expanding
with numerical values in the Attribute Man- flat objects at their edge. To position the
ager, in case the movement of the dupli- new faces vertical to the tunnel, take a look
cated faces has to be a certain amount. at the Attribute Manager. As long as you
Again, this is not important to us. Just use don’t execute another function or select
the state of the object in the upper right another tool, the values of the last used tool
image of Figure 1.57 as a guide. can be seen and changed.
You can see there that the faces were first You can change the width of the extru-
extruded by a small amount in the direction sion with the Offset value or control the
of the rear of the base, and then to a larger angle of the newly generated faces with the
degree. This is done by moving the mouse Edge Angle parameter. A value of –90°
just a small bit while holding the mouse but- should ensure that the new faces are placed
ton, then letting go, and immediately hold- exactly vertical to the inner tunnel faces. The
ing the mouse button again. The mouse lower images in Figure 1.57 show the desired
movement will then generate another face. result.
That way, several extrusions can be created In Use Point Tool mode, select the Create
in succession without having to select the Polygon tool in the Structure menu and
tool again. The short extrusion and the result- create the faces, shown highlighted in Fig
ing close edges will cause less rounding and ure 1.58, that close the inner area of the base
a more defined edge when HyperNURBS and the end of the upper arm. You can see at
smoothing is used. In the side view make the the base that some triangles were used, too.
extrusion in such a way that the new faces They were used because the location of the
align approximately with the open edge at points relative to each other doesn’t restrict
the sides of the base. Then delete the ex- us to the exclusive use of quadrangles. It
truded polygons so an octagonal opening is doesn’t matter that much in this case since all
created, as shown on the bottom left in Fig- these faces are located in a plane and the
ure 1.57. You can also see that we now have HyperNURBS will not have to calculate a bend
to select the edges of the newly opened tun- for these faces. So in this special case it is okay
nel. Therefore, change to Use Edge Tool to mix triangles and quadrangles, without
mode and choose the Loop Selection in the worsening the result, as we will see later.
Selection menu. This selection tool can auto- Now it is time to add the missing rear
matically select neighboring elements. half of the base. It is the exact mirror image
Choose the option Select Boundary Loop of the front half, thus saving us the time of
in the settings of the Loop Selection in the having to model it. First, in Edit Polygon
Attribute Manager. Now when you place Tool mode, select the polygons of the com-
the mouse pointer over an edge of the open- pleted front half of the base. The best way to
ing, the faces should be highlighted and can do this is to select them in the front view
be selected by a single mouse click. with Live Selection, where the selection of
hidden faces is enabled, since all faces are
Extruding Edges supposed to be selected. The selected area
can be seen on the very left in Figure 1.59.
We again activate the Extrude function in Then select the Disconnect command in
the Structure menu, since it works not only the Functions menu. It duplicates the se-
with faces but also with edges. Also here lected faces and copies them into a new
you can duplicate and move the edges by object, leaving the original object unchanged.
holding the mouse button and moving the The coordinate system of the original is
Modeling with the HyperNURBS Object 45
transferred to the copied faces as well. The back into a neutral position. This does not
necessary faces have already been duplicated change the position of the axis system, which
and just need to be mirrored to the other is a good thing because it is positioned exactly
side of the carabiner. in the middle of the former cylinder and
This mirroring should be done along one therefore on the desired symmetry plane.
of the axes. Currently, though, the axis sys- Now change to the Use Model Tool mode
tem of the disconnected faces is slightly and add a negative sign in front of the Z size
twisted, as can be seen in the second image of the object, created by the Disconnect
from the left in Figure 1.59. This can be easily function, before you use the Apply button of
corrected in the Use Object Axis Tool mode. the Coordinate Manager. A negative size
Just reset the three Rotation values in the results in the mirroring of the geometry
Coordinate Manager to 0 to bring the axes along the corresponding axis, as we can see
46 Chapter 1: Short Projects
in the very right image of Figure 1.59. The mouse button, the point will snap to and be
disconnected faces were mirrored to the rear combined with the other point. This results
side of the carabiner. in the generation of a complete symmetry
and not just two points on top of each other.
Connect and Stitch When you are finished stitching all the points
between the loop and base together, the
The mirrored faces are in the right place but static part of the carabiner is almost done.
are still a separate object and have no con By looking diagonally into the gap of the
nection to the main model of the carabiner. base, from below, you can see a spot where a
We will now fix that. Select the model of the polygon is missing, right where the two
carabiner and the model with the recently halves of the base meet the upper loop. You
copied faces with a (Ctrl) click in the Object can either close this hole manually with a
Manager and choose Connect in the Func quadrangular polygon by using the Create
tions menu. This will create a new object Polygon tool or use the Close Polygon Hole
containing the faces of both models. The two command. Select the latter one in the Struc-
old objects can now be deleted. ture menu and move the mouse pointer
The closing of the gap at the end of the to the edge of the hole until a virtual face
bent cylinder loop will be done with the appears at that spot, bridging the gap.
Stitch and Sew command. It is located in A mouse click then creates this polygon. The
the Structure menu of CINEMA 4D. It is left image in Figure 1.61 shows this face.
very important that no points of the object
be selected. Otherwise, this tool would affect HyperNURBS Smoothing
only these elements. Switch to Use Point
Tool mode and use the Deselect All com- Now we will use the HyperNURBS object.
mand in the Selection menu before you start Select it in Objects>NURBS and make the
Stitch and Sew. The stitching itself is shown polygon model of the carabiner a child of
symbolically in Figure 1.60. First, click on the this new HyperNURBS object in the Object
point that is supposed to snap to the other, Manager. Instantly, the angular model trans-
and while holding the mouse button, pull a forms into a softened organic object, as seen
line to the point across. After you release the in detail on the right side of Figure 1.61.
— Figure 1.60: Stitching snaps points to one location and merges the geometry at the same time.
Modeling with the HyperNURBS Object 47
— Figure 1.61: Bridging the two halves and smoothing the geometry.
The rounding is partially too strong so the image. First, create a looped cut slightly
desired angular or mechanical look gets lost. above the spot where the shape splits. Two
The reason for this is that any place where additional cuts close to the connection point
edges are spaced too far apart, the Hyper- of the front and rear base parts make the
NURBS has too much space to round the shape look perfect. The result of these three
area. The radius of the rounding becomes too cuts can be seen at the far right in the
large and the shape gets too soft. This can be figure.
corrected by adding subdivisions in areas At flat and plane areas of the model we
where the model should be more angular. can use the Extrude Inner command. This
The first area will be the transition method also creates new edges that, when
between the loop and base. To change the placed close together, severely restrict the
opening to a more angular one we have to rounding properties of the HyperNURBS.
select the Knife tool in the Structure menu We can use the command at the end of the
and activate the Loop mode. Figure 1.62 upper loop and inside the base. Select the
shows the correct cut in the left and center polygons shown in Figure 1.63 and select
— Figure 1.62: Additional subdivisions force the HyperNURBS into a more angular shape.
48 Chapter 1: Short Projects
— Figure 1.63: Extrude Inner creates new subdivisions within the flat areas and also a hard edge at the
HyperNURBS smoothing.
the Extrude Inner command in the Struc- Modeling the Movable Gate
ture menu. Either use the mouse inside the
editor or enter a small Offset value directly The movable gate of the carabiner closes the
in the Attribute Manager, which is then exe- gap to the upper loop and sticks out of the
cuted with the Apply button. Figure 1.63 carabiner as a lever. The gate is attached in
shows on the far right the effect of this the middle by an axis pin and fixated by a
action. The edited areas are now flat and less small spring. We will begin the modeling of
rounded at the edges. this part with the creation of two cylinders
Since we started with a cylinder without without caps, as can be seen in Figure 1.65.
caps, we now have to close the open areas at These cylinders will receive eight seg-
the bottom of the base. The points on the ments along their circumference and rotate
edge of these holes should be at the same 22.5° around the Y axis. Base this on the
position on the world Y axis and on the same Cylinder primitive from which we modeled
plane. Use the Loop Selection with activated the fixed carabiner part. Then rotate the two
Select Boundary Loop option to select the cylinders in the front viewport so they follow
points, then correct the Y position in the the V shape of the base. Afterward, bend the
Coordinate Manager to 0. The Coordinate thinner of the two cylinders with a Bend
Manager should be set to world mode for deformer so that it emerges from the carabi-
this step. Then use the Create Polygon func- ner at the proper spot on the right side. The
tion in the Structure menu to create the measurements and the position of the cylin-
three faces. Here too the use of triangles will ders can be seen in Figure 1.65.
not be a problem, since the area is a plane.
The created faces on both sides of the base Converting and Connecting
are then selected again, duplicated once with the Objects
Structure>Extrude Inner, and shrunk by a
small Offset value, as shown in Figure 1.64. Use the Make Editable function or the famil-
This will result in a defined hard edge in the iar (C) key on the thicker left cylinder to cre-
HyperNURBS smoothing at the bottom of ate an editable Polygon object. The thinner
the base. This part is now complete. cylinder is influenced by a deformer and thus
Modeling with the HyperNURBS Object 49
— Figure 1.64: Closing and Inner Extrude of the lower openings at the base.
— Figure 1.65: Building the movable gate of the carabiner from two cylinder primitives.
50 Chapter 1: Short Projects
— Figure 1.66: Converting the two cylinders and preparing them for the connection.
has to be converted with Functions>Current across from each other at the lower part of
State to Object. The original with the subor- each cylinder. Figure 1.66 shows these areas
dinated Bend deformer can then be deleted. in the center and right image.
In the Use Point Tool mode you can now
further edit the two shapes. The left cylinder The Bridge Tool
is slightly bent by moving the upper points
and the wider cylinder is thickened at the This job is perfect for the Bridge tool located
end, as can be seen in Figure 1.66. The two in the Structure menu. It creates connec-
objects can’t remain separated and have to tions between selected faces and deletes the
be connected; therefore, select the two cylin- original faces. Change to Use Polygon Tool
ders and choose Connect in the Functions mode, select the Bridge tool, and place the
menu. A new object appears in the Object mouse pointer on one of the corners of the
Manager. The original models of the sepa- selected polygons. Hold down the mouse
rated cylinders can now be deleted. button and move the mouse pointer to the
To create a real connection between the opposite polygon corner. The left image in
two cylinders, change to the Use Polygon Figure 1.67 depicts the movement of the
Tool mode and select the six faces that are mouse symbolically with an arrow.
After releasing the mouse button, all pre- color and how to handle them. These faces
viously selected faces are deleted and new have to be moved along the world Z axis
faces are created for the connection, as toward the rear of the gate. The center
shown in the center of Figure 1.67. Of course, becomes thinner and creates some space for
we could have done this manually with the the still missing models of the pin and the
Create Polygon tool, but this way it is much spring.
faster. Note that the Bridge tool also created This part will be smoothed later by a
faces at the bottom of the model, as shown HyperNURBS. Therefore, we can keep the
on the right in Figure 1.67. We don’t need special requirements of this smoothing in
these faces and can delete them. mind by closing the remaining open areas
and creating additional edges where a hard
Adding New Subdivisions edge, despite the smoothing, is supposed
to remain visible. We will use the Create
In the center part of the movable gate we Polygon tool in the Structure menu of
now have to create a hole for the pin and CINEMA 4D. Close the two ends, located on
some space for the small spring that holds top and on the right of the former cylinders,
the bar in place when closed. First use the with three quadrangles each, as shown in
Knife tool in the Structure menu and acti- Figure 1.69.
vate the Loop mode. The remaining options As you can see in the figure, the new
in the Knife dialog remain deactivated. Add faces at the upper end of the left cylinder
the three cuts that are marked in the left were selected, duplicated with the Extrude
part of Figure 1.68. This will add more points tool in the Structure menu, and shrunk by a
at the upper edge of the bar and more subdi- small amount. You already know this principle
visions at the base. from the base and the upper loop of the sta-
Before we use these new points to shape tionary carabiner model. In the left part of
the model, change to Edit Polygon Tool Figure 1.69 there is a correction of a point
mode and select the front faces of the base position, indicated by an arrow, so the right
in the front viewport. The right part of part of the gate keeps its thickness up to the
Figure 1.68 shows these faces in a different constricted part.
— Figure 1.68: Adding new subdivisions with the knife and constricting the shape in the center.
52 Chapter 1: Short Projects
Modeling the Opening for the Pin Figure 1.70. Remember also that this time
our model has a rear side that has to be
The following principle is the same as the treated in the same way. Consequently,
one we used at the base of the stationary make sure that, before you select the four
carabiner piece to model the hole for the faces for the inner extrusion with the Live
pin. Here, too, select the four faces sur- Selection tool, you deactivate the Only
rounding a point in the center of the gate Select Visible Elements option. The rear
and use the Extrude Inner command to faces will then be extruded as well. The best
duplicate and shrink these faces. In Use way is to work exclusively in the front view-
Point Tool mode use the newly created port when selecting and moving the points
points to shape the round opening, model- and faces. That way you can be sure that
ing it after the hole in the carabiner base. the points at the rear side are selected and
These steps are shown in the images of moved correctly as well.
— Figure 1.70: Adding new faces with Extrude Inner to create an opening.
Modeling with the HyperNURBS Object 53
— Figure 1.71: Creating a connection with the Bridge tool and making the pin cylinder.
The adjusted faces that cover the opening ate a new Ring object, which can be found in
now have to be connected to generate the the primitives of CINEMA 4D. Reshape it so
opening. We already know how to use the the ring can be put at the open edge of the
tool for the connection of selected faces, pin cylinder, like the end part of a rivet. Fig-
the Bridge tool in the Structure menu. But ure 1.72 shows my settings and the desired
it is more difficult this time since we can’t effect of the highlighted ring on the carabi-
see both faces at the same time. Therefore, ner model.
select the perspective viewport and switch to Now create a duplicate of the ring by pull-
a display mode that makes it possible to see ing it with the mouse while holding the (Ctrl)
the opposite side’s selected faces through the key in the Object Manager, or by copy and
model. A good mode to use is the Line set- paste. Move the duplicated ring to the other
ting in the Display menu of the editor view. open end of the pin cylinder. This anchors the
Then, while holding the mouse button, pin at both ends of the carabiner.
pull a connection line between the selected
faces in front of and in back of the gate. The Spring of the Gate
After releasing the mouse button, an octago-
nal breach should be created, as can be seen Between the gate and the carabiner itself
on the left side of Figure 1.71. Into this open- there is a simple spring at the pin. It will be
ing place a new Cylinder without caps. The created with a Helix spline that already exists
number of circumferential segments doesn’t as a parametric object and can have its
have to be changed since this cylinder will parameters adjusted in the Attribute Man-
not be smoothed with a HyperNURBS. ager. With the Plane setting of XY you will
put the spline into the same orientation as
Finishing the Pin the pin. Then adjust the position of the spline
and the two Radius values in the Helix dia-
Scale and place the cylinder so that it pro- log so the position as well as the size fit to
trudes only a small amount from the front the size of the gate pin. It is helpful to blend
and back of the base, as shown on the left in out the rigid gate model in the editor to get
Figure 1.72. For a better view, the pin cylin- a better view of the inner parts of the
der is highlighted in another color. Then cre- carabiner.
54 Chapter 1: Short Projects
— Figure 1.72: Fade the ends of the pin cylinder into ring objects.
With Start Angle and End Angle you can In order to move the ends of the Helix to
control the number of desired windings as the desired position in the model to complete
well as the position of the open ends of the the spring, the Helix spline first has to be
Helix. With the Height value you can con- converted. Before you do so, take a look at
trol the distance between the windings. This the Subdivision value in the dialog of the
setting is best made when the Helix spline is Helix spline. It determines how many points
subordinated, together with a Circle spline, the helix is supposed to have after being con-
as children of a Sweep NURBS. Make sure verted into a normal spline. Since we have
that the Circle spline is placed in the XY only a few windings of the Helix, the value
plane and subordinated directly under the of 100 is too high and would generate way
Sweep object so it is used as the profile. Then too many points. Reduce the Subdivision to
adjust the height and Radius of the profile a value of about 20 before you use the
circle so a spring-like shape is created. My (C) key.
settings and the desired look are shown in Then switch to the Use Point Tool mode
Figure 1.73. and select and move the two end points of
the Helix as shown in Figure 1.74. The short
end nestles up against the protruding ridge of
the movable gate and the longer end leans on
the middle part of the carabiner at the spot
where the opening for the gate is located.
The Lower Connection of the Carabiner result on the right side where the modified
spline and another small Circle spline were
The next steps are less interesting since all subordinated under a new Sweep NURBS
you have to do is complete the model with object. Again, make sure that Circle spline is
three Cylinder primitives that will be scaled used as the profile is placed on the XY plane
and intersected so they become the pin that and that it is placed highest in the list under
connects the carabiner to the previously dis- the Sweep NURBS.
torted ring. Figure 1.76 shows the three new We are now finished with the modeling
cylinders with the ring in the center. Remem- of the carabiner. I would like to take a small
ber to round the cylinders at their caps so a excursion into the world of XPresso so you
highlight will appear at their edges later. can experience the practical use of this
This, however, does not apply to the slim, graphical programming part of CINEMA 4D.
vertical cylinder that passes through the ring.
It doesn’t need any caps since its ends disap- Making Models Move with XPresso
pear within the other two cylinders.
XPresso is the graphical programming part of
The Lower Hoop of the Carabiner CINEMA 4D. It is used when several parame-
ters are supposed to be combined or when
The only thing missing is the hoop of the dis- object movements should be automated.
torted ring object through which the key With the example of the carabiner, I would
chain band is pulled. We will start with a Cir- like to show you the basic steps of using
cle spline that is scaled and placed as shown XPresso. You will get to know its use of so-
on the very left of Figure 1.77. The Circle has called User Data as well as the connection of
to be converted to a normal spline with the parameters. At our carabiner the act of open-
(C) key so we can switch to Use Point Tool ing and closing could be used for such an
mode, move the lowest point of the circle expression since we have a limited opening
upward, and adjust the tangents at the two radius of the bar and the spring that is
lateral points so the desired hoop shape is supposed to follow. The spring is the most
achieved. The desired shape is shown in the complex part of this chain and therefore we
center of Figure 1.77. You can see the desired will take care of it first.
— Figure 1.77: The lower hoop is made from a converted Circle spline.
Fixate the Ends of the Spring whether you want to snap to points, splines,
or axis systems. Several elements can be
The shape of the spring is determined by a combined. In our case we want to snap to
spline. We are mostly interested in the ends the end points of the helix spline. Therefore,
of the spring since they have to remain fix- you should activate 3D Snapping and Point
ated at the gate as well as at the stationary Snapping. The other options that are acti-
part of the carabiner, even when the gate is vated by default can remain that way. Make
rotated. Basically, our job is to stabilize the the objects not relevant for this step invisi-
two end points of the spring spline to a fixed ble in the editor for a moment and deacti-
location in 3D space. First we will add two vate the Sweep NURBS of the spring by
Null objects from the Objects menu of clicking on the green checkmark in the
CINEMA 4D and move them to the current Object Manager in order to have a clear
position of the two end points. view of the spline.
In Use Model Tool mode, first move the
Interactive Snapping one Null object close to the one end of the
Helix spline until it snaps to the point. Then
This could be done by manually transferring do the same with the second Null object and
the point position of the spline to the Null the other end of the spline. Give the Null
objects, but it is easier to use the snap func- objects meaningful names such as Mount Up
tion. This function is activated by press and Mount Down to be able to tell them
ing the (p) key. A snapping context menu apart.
appears, as can be seen in Figure 1.78. In the Don’t forget to deactivate the snapping
upper part you can select the desired snap- so the objects can be moved freely again.
ping method and underneath, the elements Use the (p) key again and choose No Snap-
to snap to. Since the context menu closes ping in the context menu. Then subordinate
after every mouse click you might have to the Null objects, as shown in Figure 1.78. The
use the (p) key more often until all settings Null object at the end of the movable gate is
are made. subordinated under the model of the gate in
The snapping methods are 2D Snapping, the Object Manager. The other Null object
which snaps optically according to the can remain at the highest hierarchy level. For
current viewport, 2.5D Snapping, which only a better overview, all objects should be
snaps when the elements are positioned on grouped. Choose Select All in the Edit menu
the same plane, or 3D Snapping, which snaps of the Object Manager and use the key com-
the objects in all three directions. After bination (Alt)+(g). As an alternative, you
choosing the mode you have to select could also select Group Objects from the
58 Chapter 1: Short Projects
— Figure 1.78: Place two new Null objects at the end of the helix spring.
Object menu in the Object Manager. The input and red the output of the node. A click
new Null object containing all objects can be on these areas will open a list with all the
renamed carabiner and expanded again by available parameters of the node. For the fol-
clicking on the plus sign. lowing expression we need the position in the
world coordinate system of both Null objects.
Creating an Expression On the red output side activate the output
for Global Position. The input and output of
The goal of our first expression should be to the nodes are also called Ports.
attach the ends of the helix to the positions To transfer the position of the Null objects
of the two Null objects at all times. This to the corresponding points of the Helix
would mean that the spring would follow spline, an intermediate step is necessary
the rotation of the gate since the correspond- because the coordinates of the helix end
ing Null object moves with the gate. points cannot be assigned directly to the
First, right click on the new carabiner Null node of the Helix spline. This requires a so-
object in the Object Manager and choose called Point Node. It can be created by right
CINEMA 4D Tags>XPresso from the context clicking in the empty area of the XPresso Edi-
menu. The XPresso Editor, in which we can tor. In the appearing context menu, select
now assemble our expression, opens auto- New Node>XPresso>General>Point. You
matically. You can pull materials, tags, and can see in Figure 1.79 that there are many
objects directly from the different managers nodes available, sorted by themes, which can
into the XPresso Editor. This generates be used to make certain mathematical calcu-
so‑called Nodes, which allow you to request lations or to simulate simple program struc-
data or to set values. tures like loops or if requests.
We will try this by pulling both Null
objects, which hold the helix ends of the The Point Node
model and the Helix spline itself, one by one
from the Object Manager into the XPresso The Point node is helpful when requesting
Editor. This creates the nodes of these objects. point coordinates from Polygon objects or
The nodes have a blue and red area in the top splines, or to provide points within these
left and right corners. Blue represents the objects with new coordinates. Therefore, this
Modeling with the HyperNURBS Object 59
node needs to get the following information: point the number 20. These point numbers
the object being affected, the point being are also called Index and can be assigned
targeted, the kind of coordinate system directly to the point node so it knows which
(object or world system), and, when defining point needs to be affected.
a point coordinate, its position within 3D Because we want to influence two points,
space as a vector. The object being affected the two end points of the spring spline,
is clear, but which points will be affected? we need two point nodes. So create a second
Let us take a look at the Structure Man- point node and take a look at the Attribute
ager, which is grouped with the Object Man- Manager. As shown in Figure 1.80, the in-
ager. It contains a tabular list of all points of dex number can be entered directly in the
the spline, including their coordinates and Parameter section. The Matrix Mode menu
tangents. they can be directly edited with a allows us to choose between global and local
double click on the numerical values. This is coordinates. We will select the global mode
very helpful for the exact positioning of for both point nodes because this simplifies
tangents. If you don’t see the list of points in the assignment of the coordinates. Other-
the Structure Manager, ensure that the wise, we would have to convert the position
Helix spline is actually selected and the Point of the two Null objects to the coordinate
Mode is activated in the Mode menu of the system of the helix, which could only be
Structure Manager. As you can see by the accomplished with a matrix calculation.
other modes in the menu, this manager can After the index 0 is assigned to the first
also be used to show polygons or UVW coor- point node and the index 20 to the other
dinates. This list shows us that, in our case, point node, the nodes have to be told which
the first point has the number 0 and the last object and coordinate will be used.
60 Chapter 1: Short Projects
for this purpose. It is used to create your Percent. A value of 100% would then repre-
own dialogs and their entries become part of sent a completely open carabiner and 0% a
the expressions. User data can be assigned to closed one.
any tag or object in the Object Manager. The The following settings for Step, Min, and
type of object doesn’t affect the functional- Max define the range for the numerical entry.
ity. Choose an object that you have easy The step value sets the range of the numeri-
access to, even within collapsed hierarchies. cal steps executed when the small arrows
In our case that would be the carabiner Null behind the number field are used. I kept it at
object. When you select it you might notice 1% and set the Min value to 0% and the
the User Data menu in the Attribute Man- Max value to 100%. Now everything is set
ager. Select Manage User Data and a menu and the dialog can be closed with the OK
opens, as shown in Figure 1.82. With the Add button. Now there is a new section in the
button you can generate a new entry that Attribute Manager called User Data con-
can be substantiated on the right side of the taining your custom parameters. The value
dialog. First, give this entry a useful name can be edited by entering a number or mov-
under which this parameter will appear later ing the slider, but it doesn’t affect anything
in the Attribute Manager, such as Open. The yet. We first have to connect this new value
next decision pertains to the Data Type of with another parameter. In our case this
the parameter. Is it supposed to be text, a would be the rotation angle of the gate
color, or even a drag and drop field for an object of the carabiner.
object? In our case we will use a numerical
value, the Float. The look of the parameter Requesting User Data in XPresso
in the Attribute Manager is controlled by
the Interface setting. In the case of the float Select the carabiner object again in the Object
data type, it could be the Float Slider, an Manager, right click on it, and choose
entry field with an attached slider. Then we CINEMA 4D Tags>XPresso. Now pull the
have to determine the type of Unit, such as carabiner Null object from the Object Man-
angle, meter, or percent. I decided to use ager into the new XPresso Editor. This Null
62 Chapter 1: Short Projects
— Figure 1.84: Range mapper nodes convert the user data to angles.
spring are already fixated to the model by Since all expressions are executed at the
the other expression, but the windings will same time or without a certain order, occa-
also turn slightly on the axis when the cara- sionally an expression uses old position or
biner is opened. Thus add another Range rotation values before they are updated by
Mapper to the expression. The quickest way the other expression. In such cases, the Pri-
is to (Ctrl) drag and drop the existing Range ority of an expression is used. It is set in the
Mapper directly inside the XPresso Editor, Priority menu of the Basic Properties set-
the same way objects are duplicated in the tings of the XPresso Tag in the Attribute
Object Manager. Manager. There you can find basic groups of
Make the same settings at the new Range priorities like Initial, Expression, or Genera-
Mapper as before, but use only half the angle tors. But since the execution of objects and
for the Output Upper value since the spring deformers in CINEMA 4D itself follows such
rotates only half as much as the gate. In my priorities, you can determine at what point
case I entered an angle of 23.25°. The connec- an expression is supposed to be executed. In
tion works the same way as before and can the highest priority Generators you can be
be seen in Figure 1.84. The function of the sure that when you ask for deformed point
expressions is now complete and the XPresso coordinates in XPresso, you will always
Editor can be closed. receive the up-to-date values.
The following numerical value sorts the
Adjusting the Priorities of Expressions priority within the chosen group. The higher
the number, the later the calculation will
After you have played a bit with the Open occur. That way you can force an order over
user data value and activated a transparent time of several expression tags within the
or wireframe display of the objects in the same priority group. In our case, the stan-
editor, you might notice that the ends of the dard priority Expression is enough, as we
spring have a slight delay at the rotation of only have to control the order of the execu-
the carabiner gate. This is because we have tion of the two XPresso tags.
two expressions that request interacting val- As we can see in Figure 1.85, in our exam-
ues from each other. One expression rotates ple it is best to leave the priority of the
the gate and the spring with the user data expression for the rotation of spring and gate
value, and the other expression requests the at 0, and to elevate the expression of the fol-
position of the subordinated Null object of lowing points to Priority 1. This is enough to
the gate and aligns the end point of the set the points after the rotation of the gate
spring spline to it. and to remove the delay.
64 Chapter 1: Short Projects
Now the carabiner is finished and can eas- The Lumas Shader
ily be moved with the user data value of
the carabiner object, as shown in Figure 1.86. Metals are generally very dark but have high
Especially when setting up animations, such gloss and reflective properties. The gloss is
expressions can save us a lot of work since controlled entirely by the Specular channel
complex relations between objects can be of the material. More control and additional
controlled by using just one value. effects are only possible with the Lumas
shader. Therefore, we load this shader into
the Color channel by clicking on the small
Putting the Carabiner into triangle in the Texture section. The Lumas
a Scene shader is part of the Effects group.
The Lumas shader makes it possible to
We have come so far now that we might as choose one base color and up to three in-
well add some fitting materials and a scene dividual highlights. Especially interesting is
as well. We will start with the metal material that the shader is able to add anisotropic
of the carabiner and create a new stan- effects as highlight distortion to its calcula-
dard material in the Material Manager with tions. They appear when a surface contains
File>New Material, which can be edited in very fine ridges. Just think of the surface of a
the Material Editor by a double click on the DVD or human hair, which show such effects
gray preview sphere. as well because of their rough surface.
Modeling with the HyperNURBS Object 65
— Figure 1.86: The complete carabiner and easy control with user data.
This effect offers two separate settings, pronounced when used together with the
one for the distortion of the highlights and ridges.
the other for generating visible ridges within The amount of highlight distortion
the highlights. The latter can make the sur- through the anisotropic calculation is con-
face appear like brushed metal without hav- trolled separately for each direction with the
ing to use specially adjusted images. X Roughness and Y Roughness. The highlight
In our case we will first use a dark gray options beneath determine which of the
in the Shader Properties of the Lumas three highlights will be distorted. You can
shader and exchange the red tones of the anisotropic-distort only one highlight, while
highlights with pure white ones. The bright- the other highlights will be calculated in a
ness and size of the three highlights remain concentric manner. We will keep everything
the same. Now activate the aforementioned active so all highlights will be distorted, as
Anisotropic section and use the Auto Pla- shown in Figure 1.87.
nar projection mode. This mode controls After the dividing line in the dialog you can
the direction of the highlight distortion and find the values for amplitude, size, and length
can often be checked only on the object of the anisotropic scratches. Also, here the
with test renderings. The projections with effect can be restricted to only one highlight
the term Radial in front are able to generate or, like in our case, can be deactivated alto-
concentric grinding patterns like the ones gether. We don’t need this effect since our
used for decoration on old refrigerators or carabiner is not supposed to appear scratched
other special surfaces. Their effect is very or rough, but instead perfectly smooth.
66 Chapter 1: Short Projects
angle it slightly. The second face is placed on As for the Render Settings, I just entered
the left and to the rear left of the carabiner. the file format, activated Best Anti-Aliasing
Figure 1.94 shows the approximate place- and defined a file path. After the rendering
ment of the objects. in the Picture Viewer, you will have a result
Both polygons then receive the new mate- similar to the one in Figure 1.95.
rial by a simple drag and drop. As is common
with primitives, the material automatically
adjusts to the object and we don’t have to
change anything at the Texture Tags. Both
faces, however, should get a Compositing
tag, which can be found after a right click in
the Object Manager in the CINEMA 4D Tags
section.
In these Compositing tags deactivate the
Seen by Camera and Seen by AO. That way,
there will not be any shading on the floor
and we can place the walls in front of the
camera without seeing the walls in the final
rendering. Also, activate the option for Com-
positing Background. This suppresses any
influence of the light and shading on the sur-
face of the walls. The walls then glow in the
color we applied with the material.
If you later want to use light sources
that cast shadows, then the two shadow
options should be deactivated, as shown in
Figure 1.94. — Figure 1.95: The final image of the carabiner.
Modeling an Antique Vase 71
— Figure 1.96: The outer skin of the vase is created with a spline and a Lathe object.
72 Chapter 1: Short Projects
— Figure 1.98: Freeze selections and extrude them toward the inside.
Modeling an Antique Vase 73
in Object it will jump to the position of oordinate Manager during the rotation.
C
the object coordinate system. The setting All remaining polygon sections should be
Selected centers the modeling axis in rotated using the same angle. Then select
the middle of the selected elements of the the vertical points located in the center of
object. the rotated polygons and activate the Scale
The Orientation menu defines the orien- Tool. The modeling axis should be in the
tation of the axes of the modeling system. center of the selection again. The settings of
Interesting here is the normal setting, which the modeling axis in the Attribute Manager
orients on the surface of the object itself. should be set to Orientation Axis, and the
With the Retain Changes option the model- X, Y, and Z sliders should be centered. Then
ing system stays at its original position when scale the points evenly along all axes out-
the elements are rotated and their position ward, as shown in the middle and on the
changes. This makes it easier to test different right of Figure 1.100.
rotations and scales. Restore the original selection of the poly-
Along Normals allows the increasing and gon sections by double clicking on the Poly-
decreasing of a shape during movement by gon Selection tag behind the vase in the
simultaneously moving and scaling along the Object Manager. The process will start all
individual normal vectors. A similar function over again. In the top view, deselect all but
is provided by the Normal Move command one selected polygon section, add two addi-
in the Structure menu. The X, Y, and Z tional faces at the lower end, activate the
sliders in the lower part allow, in some Rotate Tool, and move its modeling axis
modes, the individual placement of the downward. The faces are then rotated by the
modeling axis. We will use this in our exam- memorized angle around the X axis. Then
ple in order to position the axis system as scale the center row of points. The left side
exactly as possible at the lower edge of the of Figure 1.101 shows the result after apply-
selected polygons. The Axis menu is set to ing all these steps to the remaining polygon
Selected and the Orientation menu is set to sections. The spaces in between are still miss-
Normal. The Retain Changes option is acti- ing, however. The selected polygons there
vated as well. are also shown in the figure. After the com-
Now rotate the polygons around the X bined Extrude Inner and the saving of this
axis of the modeling axis and outward, as new selection as a tag, these polygons have
shown on the left in Figure 1.100. Remem- to be edited using the same process. Fig
ber the angle that you can see in the ure 1.101 shows the end result.
74 Chapter 1: Short Projects
Shaping the Inside of the Vase the points. Always select the vertical point
rows, which are located in the center of the
Since the vase will be made of glass and bulge. Figure 1.102 shows part of the selec-
therefore rendered to be transparent, we tion on the left. After all these points are
have to shape the inside as well. The outside selected on the inside, scale this group slightly
bulges should be visible as well, so the wall outward along the X and Z direction. Be sure
thickness cannot appear to be too massive. that the points don’t get too close to the
This time we can work much faster, because outer hull.
it will be enough to simply scale the points Now you just have to add a HyperNURBS
positioned behind the bulge of the outside object and subordinate the vase under it. The
wall outward. In the perspective viewport, result should look similar to the center and
get close enough to the inside of the vase right image of Figure 1.102. The basic shape
with the camera to be able to easily select of the vase is now complete.
Modeling an Antique Vase 75
Creating Ornate Elements and Figure 1.103 gives you a hint. Be sure that
Handles there’s no big gap between the vase and the
tube. The tube should be close to the vase
The vase should also have some ornate ele- but should not penetrate the surface.
ments and some handles. We will start with Then place flat cylinders along the edge
a collar around the neck of the vase. Add a of the collar. On the whole they should look
Tube primitive and adjust its radius and like a twisted wire. Since this is a circular
height to the area between the opening of placement, the Array object could be used. It
the vase on top and where the bulges begin can be found in the Object menu under Mod-
at the shoulder of the vase. The left image of eling objects. Subordinate a new Cylinder
and the influence of the soft selection appear- the selections, there can be large areal differ-
ing as yellow in the editor. When Surface is ences. With the All setting, the soft selec-
active, the selection field doesn’t expand in tion starts at the edge of the selected areas
all directions but instead follows the surface. and therefore increases the selection by the
This prevents the accidental selection of the Radius value.
protruding parts of the object that are close In our case we use the Group mode and a
to the selected area. This will not happen Linear Falloff. You have to set the Radius
with our vase, so the option can remain value yourself based on the size of your vase.
deactivated. The yellow area of the soft selection shouldn’t
The Rubber option results in a sort of reach too far down the neck of the vase.
dynamic pulling effect of moved elements, as Then scale the selected point groups together
if the surface of the object were made of rub- as shown in Figure 1.105 on the right. The
ber. Since the impact of this effect is difficult outside of the vase should slope upward at
to control, it is used more often for free-form these places to make space for the handles.
modeling than for objects that need more When you are happy with the result, deacti-
precise deformations. The Restrict option vate the Soft Selection in the Attribute
deactivates the soft selection and returns to Manager with the Enable option.
the normal behavior of selected elements.
With the Falloff menu you define the The Curve of the Handle
falloff curve for the edge influence of the
soft selection. As an alternative, the Vertex The handles themselves are held by curved
Map setting can use its own point weighting supports that start at the collar around the
or the Spline setting can use a curve defined neck of the vase. We will create a spline for
by its spline graph. The mode menu deter- the shape as shown in Figure 1.106 and place
mines at which spot the soft selection should it so that it nestles up against the surface in
be calculated. In the Group setting, the cen- the area between the collar and the edge of
ter of connected selections is used. From this the vase.
center the soft selection spreads based on the Add a small Rectangle spline and subordi-
Radius setting. With Center, the center of all nate it, together with the other spline, under
selected elements is used as the center of the a new Sweep NURBS. Remember that the
soft selection. Depending on the position of profile, the small Rectangle spline, has to be
78 Chapter 1: Short Projects
— Figure 1.106: The curve of the handle is created with a spline and a Sweep NURBS.
combined with the walls of the object. We edge of the walls to be combined. Generally,
have to do that ourselves after the conver- you don’t have to change anything in the
sion. Select Optimize from the Functions options of the Optimize function and can
menu. With this function you can determine leave them activated at all times. The stan-
which elements of the object should be dard tolerance can also be used as is. Only
evaluated. when you have extremely large or small
The option Polygons and Unused Points objects will an adjustment of that value pos-
ensure that the elements that are duplicated sibly be necessary.
or of no use are automatically removed. In Now you can select every second polygon
our case, the Points option is of interest since row of the cylinder and duplicate and shrink
it works together with a Tolerance numerical this selection with the Extrude Inner func-
value. All points located within a certain dis- tion. Then we will use Normal Move from
tance of each other below the specified Toler- the Structure menu and move the new faces
ance are automatically merged to one point. slightly toward the center axis of the cylin-
This will cause, in our case, the points at der. The right side of Figure 1.110 shows the
the edge of the caps and the points at the desired result.
80 Chapter 1: Short Projects
Multiple deformers can affect an object at NURBS. This object can be found in Objects>
the same time without any problems. Note NURBS.
that they are applied in the order that they If the vase was created at the origin of
are sorted under the object in the Object the world coordinate system, then a correctly
Manager, from the top to the bottom. The oriented pedestal should appear. You can
results therefore can vary depending on the decorate it, like the neck of the vase, with
order. Array objects and you can use the same small
cylinders like the ones in the upper Array
The Pedestal of the Vase object. A possible placement of this decora-
tion can be seen in the right image of Fig
The vase will not just sit on a table or the ure 1.113. This concludes the modeling of the
floor, but will be placed on a pedestal. We vase. Of course, you should feel free to add
will work again in the front viewport and more decorations or details if you like.
create a linear spline shaping the desired pro-
file of the pedestal. Figure 1.113 shows one
possible look on the left. Adding a Simple Table
To have points that are positioned in pairs
vertically on top of each other or next to In order to give the vase some company, we
each other, we have to select them and then will add a classic Asian-style side table. We
set the corresponding Size value to 0 in the won’t get lost in details since these objects
Coordinate Manager. This can also be done will only be a small part of the scene.
in Structure>Set Point Value. In the menus Let’s start with a cube primitive that is
of the Attribute Manager the coordinates adjusted in its size to the dimensions of the
can then be centered separately with X, Y, or vase. My settings can be seen in Figure 1.114.
Z, or can be moved to a certain position. The cube is then converted to a Polygon
We will round some of the hard edges a object so we have access to its polygons.
bit. Select the points along the spline, as Select the upper face of the cube and use
shown in the center of Figure 1.113, and select Extrude Inner from the Structure menu
the Chamfer command with a right click in to slightly shrink it. Then change to the
the viewport. Either by using the value entry Bevel tool that can be found in the same
in the Attribute Manager or by pulling the menu. This command is a combination of the
mouse, add a small rounding before the Extrude Inner and Extrude commands with
spline is subordinated under a new Lathe the option of adding a rounding as well. We
will use this to lower the shrunken top face To make the table top appear as if it is
and to smooth the sides with a radius. put together by individual pieces of wood,
The Extrusion and Inner Offset values we will again use the Extrude Inner com-
are equal to the Offset values of the sepa- mand to shrink the surface, as shown on the
rate Extrude commands. We will use two left side of Figure 1.115. The main surface of
identical values, but with different signs, so the table consists of five polygons that you
the face is shrunken and lowered a bit more. now select and edit again with Extrude
In the Type menu you can select the different Inner. This time, though, deactivate the Pre-
kinds of rounding. With polygons, though, serve Groups option in the dialog of the tool.
only the Linear and User types are offered. Every face will then be extruded separately.
We will choose User so we can create an This generates small gaps between the for-
individual profile for the rounding with the merly adjacent faces. The right image of Fig-
Path spline in the Attribute Manager. This ure 1.115 shows this.
spline is shaped by moving the pre-existing Use the normal Extrude command with
points on the curve. We can also add more these five single faces to move them slightly
points to the path by clicking on the curve. upward. This will give the impression of a
Unnecessary points can be removed again by table being assembled by separate pieces. The
pulling them upward out of the graph. rendering in Figure 1.116 depicts this effect. If
To actually see the Path curve we have to necessary, correct the distance between the
increase the number of Subdivision. My set- table top and the pedestal of the vase so the
tings and the desired result can be seen in vase sits on the table and doesn’t hover
Figure 1.114. over it.
Modeling an Antique Vase 83
We don’t have fitting materials for the The Fresnel part of the Transparency chan-
table and the vase yet. We will start with nel already causes a reflection at the edges
the settings for the vase and create a new of the vase, but I want to increase it by acti-
material in the Material Manager in vating the Reflection channel and setting
File>New Material. The goal is a clear the Brightness to 50%. Specular is adjusted
glass material that is greenish in its thicker to the desired smooth surface and therefore
parts. We will start with the Color settings is very intense and not very wide. Figure
and select a dark gray. This color tone is 1.119 summarizes these settings.
only important later for the reflection and
the highlights. The main color is generated Illumination
by the transparency.
Thus, at the Transparency channel we Because we will work with global illumina-
create a 95% transparent material with a tion again, we shouldn’t forget the settings
Refraction index of 1.6. This is equivalent to in the Illumination section of the material.
regular glass. Total Internal Reflection and Generally speaking, very transparent or very
Exit Reflections are activated to realistically reflective materials don’t profit much from
simulate all physical effects of glass. Finally, global illumination, but this decision is left to
we will use a pastel green Absorption color us by CINEMA 4D. We therefore decide not
with an Absorption Distance fitted to the to generate or receive global illumination
dimensions of the model. This value shouldn’t with this material and deactivate the corre-
be set too small, so the thinner places around sponding options. This also speeds up the
the upper opening remain clear and are not render time since no additional samples have
tinted. All of my settings are shown in detail to be generated to evaluate the objects with
in Figure 1.118. this material applied. This can’t be compared
we use the Oren-Nayar shading model The desired wood grain is depicted with
again. All other settings can be taken from the Wood shader, which is loaded into the
Figure 1.122. Diffusion channel of the material. This shader
can be found in the group of the Surface
shaders. Since the Diffusion shader only eval-
uates the brightness of the loaded shader or
The Wood Material of the Side Table images, we reduce the gradient of the Wood
shader to the colors white and gray, as shown
The side table is supposed to have a subtle in Figure 1.123. All other options in the upper
wood grain and have the expensive look of part of the Diffusion channel are deactivated
Asian furniture or piano lacquer. Therefore, so the shader changes only the color of the
we start with a new material and apply a material and not the reflection or the high-
very dark orange color. The reflection is kept light. This will emphasize the impression of a
moderate yet color neutral at 20%. perfectly smooth and varnished surface.
Modeling an Antique Vase 87
Highlights and Illumination of the Wood with white and blue tones, and ends in dark
brown colors.
The highlight will remain moderate in its set- To make it easier to edit and manipulate
tings since the reflection is supposed to take this gradient, I changed to the main level of the
center stage. We therefore keep the Phong Color channel in this material and add another
shading in the Illumination settings, but shader, the so-called Filter shader. It doesn’t
reduce it to a Diffuse Falloff of –50%. This delete the gradient shader but imports it, as
reduces the brightness of the shadows quicker shown in Figure 1.125 on the left. For example,
than normal along the edge of an illuminated this allows us to change the entire saturation
area and simulates a perfectly smooth sur- or brightness of the gradient without having to
face without diffuse light scattering. Figure edit every single one of its colors.
1.124 shows these settings. The material is complete and can be
applied to the sky by dragging it into the edi-
tor or onto the Sky object in the Object
The Environment of the Scene Manager. Apply the glass and bronze materi-
als in the same manner to the corresponding
In order to make a test rendering of our objects on the vase, and the wood material
objects at the end of this chapter, we will to the table.
add a simple environment to the scene. Add The Sky object has, compared with other
a Sky object from the Scene objects in the objects, some specialties. It not only has an
Objects menu. It simulates an infinite sphere automatically infinite size, but also sup-
that automatically encloses our scene. presses all highlights, shading, and shadows.
We will create a material for this sky Other characteristics can be controlled with a
sphere and load the gradient into the Color Compositing tag. For example, you can make
channel. In the gradient, select the 2D—V the sky invisible for the camera but still use
type to generate a vertical gradient and use it for transparencies and reflections. This can
several colors. I used a gradient that starts be useful when you want to use the sky for
with warm yellow colors on the left, continues reflections on an object but want to use
— Figure 1.125: The material and the settings for the environment.
— Figure 1.126: The test rendering of our objects, on the left with the environment and on the right
without.
another motif as your background image. In low surface brightness. You can see how
our case the sky can remain visible. important such materials are for the environ-
Take a look at the test rendering on the ment of your objects.
left in Figure 1.126. Compare it with the ren- In the following chapter we will dive
dering of the same scene on the right, where, deeper into working with the renderer of
in the Compositing tag of the sky, the Seen CINEMA 4D. This will benefit all users of
by Refraction and Seen by Reflection were CINEMA 4D, regardless of whether you
deactivated. The transparent and reflective model your objects yourself or you work pri-
objects appear almost black because of their marily with imported objects.
This Page intentionally left blank
Advanced Workshops
means it must be drawn in the top viewport. left. A small radius is enough to remove the
If your spline was drawn in another view- unnatural sharpness of the corner.
port, or is oriented differently after the
import, you should rotate it before continu-
ing with the next steps. Integrating the Windows
Because the room will be given windows
later on, we have to consider a certain wall The walls are done, and now we will concen-
thickness. This can automatically be done trate on the windows. They are also quickly
with the Create Outline function. This func- made because of the ability of the Boole
tion can be found in the Structure menu object to combine objects and subtract them
under Edit Spline. The parallel structure from each other. We will use it to subtract
should be larger than the original spline so two cubes and one cylinder from the walls.
the room volume does not shrink. If you’d The center image of Figure 2.2 shows the
like to work more precisely, you could enter highlighted positions of the two cubes and
the wall thickness for Create Outline as Dis- the cylinder. It is important that the objects
tance in the Attribute Manager. Otherwise, go all the way through the walls and that the
the Create Outline tool can be used interac- cylinder contain a sufficient number of cir-
tively in the editor viewports. cumferential segments. Otherwise, the circu-
Finally, subordinate the spline under an lar opening will show some linear segments,
Extrude NURBS object. Use the Movement and the correction of such a mistake can be
value in the Y direction to create the desired quite time consuming. Here I used 72 seg-
height of the room. Figure 2.1 shows the ments for the circumference of the cylinder.
desired result on the right. The room is I also added a small rounding to the cubes so
already taking shape. the window openings will have soft edges.
As with all real objects, we have to Then add a Boole object from Modeling
remember that the edges need to be rounded. in the Object menu and activate the options
So change to the Use Point Tool mode Create single object and Hide new edges.
and select all points of the spline that are High Quality and Boolean Type A subtract B
placed inside the room. We will disregard should be activated by default. That way,
the outer wall for now. Use Structure>Edit after the conversion of the Boole object, we
Spline>Chamfer to create a small rounding will get an optimized object containing
at the selected points, as you can see in the n‑gons, which will make it easier to round the
example of one corner in Figure 2.2 on the window opening. The hierarchy of the objects
can be seen in Figure 2.3. The Extrude NURBS of the Extrude NURBS. These faces can be
comes first, followed by one of the window seen highlighted in the left image of Fig-
objects that was combined into a group. This ure 2.4. These faces were only necessary so
setting makes it possible to cut the three that the Boole object could function, since it
holes by using just one Boole object. only works reliably with closed objects. Then
There is still time to move the windows use the Ring Selection in the Selection menu
or to change their size. When you are happy to select the three window openings. Hold
with their placement, convert the Boole down the (Shift) key to select all three open-
object. Use the Make Editable command in ings one after the other. These selections can
the Functions menu or the familiar (C) key. be seen in the center and the right image of
Figure 2.4.
Smoothing the Openings From the Structure menu select the
Bevel command. You will use it to generate
To be able to add a ceiling and a floor later, a small rounding along the openings. A small
we should select and delete the former caps value of 1 for Extrusion and Inner Offset
should be enough, but it depends on the Select only the polygon loop in the mid-
scale of your room and windows. It is impor- dle of the two rectangular openings with
tant that the Maximum Angle is set to a the Ring Selection. The faces of the round
value above 90°. Otherwise, the sides of the opening should be deactivated completely.
rectangular windows could be rounded inde- We will do something else with that open-
pendent of each other. Thus the Preserve ing. First, slightly shrink the selected faces
Groups option has to be active as well. The of the rectangular window openings with
actual rounding is determined by the Subdivi- the Extrude Inner function, as shown in
sion value and the Type. In the Type setting Figure 2.6. Here, too, it is important to pre-
Linear you can create the path, defining the serve the groups and to use a Maximum
profile of the rounding. Figure 2.5 shows an Angle above 90°. Then use the Move tool
example. As long as the tool is active, the to reposition the shrunken faces, as far as
values and the course of the path can the surrounding geometry allows, toward
be changed. Thus you can take your time the outside of the wall. The arrow on the
and experiment until you find the desired right side of Figure 2.6 indicates the direc-
rounding. tion and shows the end position of the
polygons.
These faces are supposed to close the gap
between the window frames and the window
opening. So we will use the Extrude com-
mand on these faces and reduce the size of
the window openings. Here the requirements
are again the same regarding the maximum
angle and the preservation of the groups, as
shown in Figure 2.7. You can see the desired
result in the middle image. Then change to
Use Edge Tool mode and use the Loop Selec-
tion in the Selection menu to select the
edges at the base of the extruded faces, as
shown in Figure 2.7.
Here the Bevel tool does a good job
rounding the hard edges. This time it is easier,
— Figure 2.5: Rounding the window openings. though, since edges, contrary to polygons,
can have predefined rounding types applied instead. I would like it to have a decorative
to them. In most cases the convex type will grid with a reflective surface behind it. The
be used. As can be seen in Figure 2.8, it is mount of the grid is simulated with a Tube
enough to use a small rounding to soften the object that can be found in Objects>Primitive.
hard edge. By the way, this is only necessary First, set the direction of the tube so that it
at the edge of the window opening inside aligns with the round opening and then use
the room. The corresponding edge on the the handler to adjust the size of the tube to
outside can remain as is. the diameter of the opening. The tube may
sink into the wall, as shown highlighted in
Framing the Round Window Figure 2.9. There you can also see, in my set-
tings of the Tube object, that I added a round-
Let’s shift our attention to the round window ing with a number of circumferential segments
opening on the other wall. I decided to not corresponding to the number of the opening
use it as a window but as a decorative element segments.
96 Chapter 2: Advanced Workshops
Upon closer examination of the room you Let us now look at the ceiling of the room.
might notice the distinctively different levels Here, too, there are some problems waiting
of shading on the walls, as shown in Fig to be solved. At first glance everything looks
ure 2.10 on the top left. This is always the easy. We deleted the caps of the converted
case when small faces border large ones and room so that the open edges, on the top and
the two faces are oriented in different direc- bottom of the room, can be used for model-
tions. In our case, the walls consist of very ing the ceiling and, later, the floor. There-
large n-gons. The window openings, on the fore, use the Close Polygon Hole tool in the
other hand, are surrounded by many small Structure menu, as shown in Figure 2.11 and
polygons that shape the rounding of the single click on the upper open edge of the
edges. inside wall.
Sometimes this problem can be solved by The next step is to round the transition
lowering the angle in the Phong tag of the between the wall and the ceiling with a fillet
object. In our case, though, this would make or rounding. Let’s try to use the Extrude
the roundings of the openings and the room Inner tool and see what happens to the ceil-
corners look faceted. In these cases it helps ing. Select the recently created surface of the
to add faces at the border of the large poly- ceiling and shrink it with the Extrude Inner
gons and to apply the same tilt to them as tool in the Structure menu. Room corners
on the large faces. Select the two faces of protruding into the room don’t cause any
the two walls with the window openings and problems, as you can see in the left image of
select the Extrude Inner command from the Figure 2.12, but what happens to the other
Structure menu. Use a small Offset value of corners?
maybe 1 or 2 and check what happens to the As shown by the highlights on the right
shading when it is applied. As you can see in side of Figure 2.12, the new polygon edges
the bottom row of Figure 2.10, the problem part from the original edges and the result is
disappears instantly without us having to intersecting faces. The problem is increased
adjust the phong angle at all. by the large number of points generated by
Illuminating a Room 97
the rounding in the room corners. A manual Shaping the Transition to the Walls
correction would take too much time. There-
fore, undo the rounding with the Undo In our second try, we will use the Extrude
function in the Edit menu of CINEMA 4D. Inner command again, but this time with
We have to find a different solution. an Offset of 0. This generates new faces
98 Chapter 2: Advanced Workshops
— Figure 2.12: Trying to round the edge between ceiling and wall.
that remain in the same position as the A view from above the shrunken ceiling
original ones. To shrink the new faces we reveals some irregularities regarding the dis-
will use the Normal Move command in the tance to the walls, but this can be quickly
Structure menu. This takes into account corrected. Figure 2.14 shows the different
the direction of the normal vector on the distances to the walls in the example of a
faces and therefore can help us avoid inter- room corner. The selected points can easily
secting polygons during shrinking. Use the be moved to an even distance, as can be
Scale percentage value in the Attribute seen in the figure. It is enough to just eye-
Manager to shrink the ceiling. Since the ball it.
tool works very well I decided to extend the Perhaps it confuses you that I mentioned
small rounding and create a wide decorative a bevel several times, because the ceiling is
bevel. A number of images in Figure 2.13 actually still in the same plane as the deleted
show my settings in the mentioned tools. upper cap of the walls. This will now be
Remember that your values could be differ- changed by pulling up the shrunken ceiling
ent, depending on the shape and size of polygon. Figure 2.15 indicates this movement
your room. with an arrow. At the edges of the moved
Illuminating a Room 99
polygons you can see where the bevel be the actual ceiling polygon and use the
tween ceiling and walls has been created. Extrude Inner tool with a very small or no
Viewed from the inside of the room, as Offset at all. This step and the result are
can be seen in Figure 2.16 in the upper left documented in Figure 2.16. As you can see in
corner, the bevel doesn’t look that good. the lower right view, the shading problems
There is no sharply defined edge below and are solved and the bevel is clearly separated
above the bevel. As a result we need to acti- from the ceiling and wall.
vate the Knife tool in Plane or Loop mode in
the Structure menu and add two more cuts Modeling the Window Frame
within the tilted faces of the bevel. One cut
runs slightly above the lower edge of the The next steps will focus on the creation of a
bevel, and a second runs close to the upper window frame. If you have used two identi-
edge near the shrunken ceiling. Then select cally sized cubes for the openings, then you
100 Chapter 2: Advanced Workshops
have to model only one frame. The second part. Figure 2.18 shows this in the left and
frame can be added and moved to the other center images. The connection of these two
opening. faces will create the opening where later the
We start, as we have done so often before, glass will be placed. Use the Bridge tool in
with a Cube primitive and adjust its size to the Structure menu and pull a connection
the rectangular window openings. The por- line between the two upper or two lower
tion of the wall protruding into the opening corner points of the selected polygons. When
can be partly intersected by the cube. Fig you release the mouse button the two faces
ure 2.17 shows how such a scaled and posi- are connected, creating an opening, as can be
tioned cube looks in the opening of the wall. seen in Figure 2.18.
We don’t have to add roundings or segments
to the cube for now. Modeling the Groove for the Glass Pane
To get from a cube to a frame we have to
open the cube in the center. After the cube is The glass pane doesn’t just float inside the
fitted to the opening, it is converted with the frame but is held with an additional groove
(C) key. Change to Use Polygon Tool mode, that we will now model. Start by shrinking
select the large front and back side of the the four inside faces of the frame opening
cube, and use the Extrude Inner tool to with Extrude Inner. Again, it is important to
define the width of the frame up to the glass preserve the groups and set a maximum
Illuminating a Room 101
angle above 90° to prevent four separate roundings but also to generate parallel edges.
faces from being created. A possible result is The only condition is that the selected edges
shown on the upper left of Figure 2.19. can’t be located at the angled edge of the
In Use Edge Tool mode, use the Loop object and must be in one plane.
Selection to select the parallel rectangles Use the Linear type for roundings with-
that were created by the Extrude Inner tool. out any additional subdivisions. The option
Hold down the (Shift) key to make multiple for n-gons can be activated but it won’t make
selections. The two selected edge loops can any difference here. The tool settings and
be seen in the upper right image of Figure the desired result can be seen in the lower
2.19. These edges will now be duplicated with row of Figure 2.19.
the Bevel command in the Structure menu. The additional subdivisions allow us to
This command can be used not only for select two polygon loops with a gap between
102 Chapter 2: Advanced Workshops
them. The best tool to use is the Ring right of the figure. Here, too, remember the
Selection in Use Polygon Tool mode, as maximum angle and the preserved groups.
shown in Figure 2.20 on the left. The actual Into this groove place a properly scaled
groove for the glass pane is created with an new cube. The thickness of this cube has to
extrusion of these faces, as shown on the be oriented to the width of the groove.
Illuminating a Room 103
— Figure 2.21: Fitting the glass pane and duplicating the window.
along the X axis to the right. This will make Use Edge Tool mode, select the open upper
the whole baseboard move out in front edge of the outer wall with the Loop Selec-
of the walls and not be halfway immersed tion and move these edges so far up that
into the walls. This manipulation, however, they will surpass the edges of the inner
requires that the rectangle spline first be ceiling. The upper face of the ceiling can
converted. Therefore, you should add a small then be closed with the Close Polygon func-
rounding to this spline and then convert it tion in the Structure menu, as shown in
with the (C) key. Afterward, switch to Use Figure 2.24.
Object Axis Tool mode to move the axis A nice side effect of this step is that lower
system. settings in global illumination can be used
The second step regards the position of during rendering without having the light
the extracted path spline. It has to be moved penetrate the walls from outside. The dou-
so far upward that the baseboard is level bled polygons of the ceiling and outer walls
with the bottom of the wall. The amount of filter out this irregularity.
this move depends on the height of the
baseboard. The image series in Figure 2.23 Creating the Floor
summarizes the steps. From left to right you
can see first my settings for the profile spline The floor is created using the same principle,
and then its conversion and the movement only we don’t have to move any edges. We
of its axis system. In the center, the move- simply use the Close Polygon function with
ment of the path spline is indicated by an the open edge loop of the outer wall, as
arrow, and on the right is the possible shown on the right in Figure 2.25. The gener-
result. ated face then appears automatically under
the baseboard on the inside. Only the orien-
Creating a Double-Walled Ceiling tation of this polygon has to be corrected, as
can be seen in the middle of Figure 2.25.
Less because of aesthetics than for practical The face appears bluish when selected,
reasons, we will get back to the ceiling, but which means it shows its rear side. This could
this time from the outside. Maybe you will cause problems later, for example, when
later discover that you need an opening in baking textures. As a result, we should
the ceiling. In that case it would be better fix that problem right away by inverting
for the ceiling to have some thickness, the orientation of the selected face with
making it easier to use the Boole object. In Functions>Reverse Normals. As shown on
Illuminating a Room 105
the right in Figure 2.25, the polygon now Editing the Bevel at the Ceiling
depicts yellowish shading.
We first need two splines between which the
Fine-Tuning the Room Model crown molding strips will be stretched. Use
the Loop Selection in Use Edge Tool mode
In this section we will take care of the fine and select the edge loop that borders the
points that make the room look more detailed bottom of the bevel. Make sure that in the
and comfortable. We will start with the bevel settings for the Loop Selection the Select
at the ceiling, which, for my taste, is still too Boundary Loop option, which was used in
simple. A crown molding strip should improve previous steps, is deactivated. Otherwise,
the look of the transition between the wall edges on the inside of objects cannot be
and the ceiling. The modeling of such an ele- selected.
ment is not easy, since we have to consider a This selection is then converted to a spline
lot of corners with rounded edges. We previ- object with Structure>Edit Spline>Edge to
ously discovered, when modeling the bevel Spline. Apply the same steps to the bevel
and the ceiling, what difficulties can occur. edge loop that borders the ceiling. Figure 2.26
Therefore, I want to use another method shows both selections. The two extracted
that is easier to handle. splines are now used with a Loft NURBS to
106 Chapter 2: Advanced Workshops
create a polygon skin between them. These adjusts enough to the shape of the walls and
splines can be found subordinated under the corners. Too many subdivisions wouldn’t be
object from which they were generated. In that bad, but it would use more memory
our case the splines are subordinated under without improving the quality of the result.
the room object in the Object Manager. As I also set the vertical V subdivisions quite
with all NURBS objects that work with high, even though it would theoretically be
splines, the order and direction of the points enough to use just one subdivision. After all,
of the two splines used are very important. we just have a straight connection between
When extracting several splines from edge two spline curves. My settings and the result
selections, it is likely that the starting points can be seen in Figure 2.27. The shape of the
of the generated splines are not aligned. This Loft NURBS is highlighted and currently looks
should be corrected manually so the Loft like the bevel we modeled at the ceiling.
NURBS object can create clean results.
In Use Point Tool mode select a point of Deforming the Object with Displacement
the lower spline and choose Structure>Edit
Spline>Set First Point. Repeat this with the The reason for the fine subdivisions is that
second spline using the selected correspond- I would like to deform the object in the next
ing point. If the splines are running in the step with displacement. Therefore, I need a
opposite direction from each other—you can lot of points in order to generate a soft de
identify this at the gradient of the splines— formation with many details. Create a new
correct that as well at one of the splines in material for the Loft NURBS in the Material
the Structure menu with Edit Spline>Reverse Manager in File>New Material and load the
Sequence. Then subordinate the splines under Gradient shader in the Color channel. This
the new Loft NURBS object. The Loft NURBS shader works well with the Loft NURBS
has the ability to set its own points along the since the Loft NURBS automatically gener-
splines and connect them. The intermedi ates UV coordinates and causes the gradient
ate points of the used splines don’t affect to adjust perfectly to the shape of the mod-
this type of NURBS. Therefore, we have eled bevel.
to significantly increase the subdivision in Like in Figure 2.28, select the gradient in
the horizontal U direction so the loft shape the vertical direction, the 2D – V Type, and
Illuminating a Room 107
create a grayscale gradient. It should end on until you like the width and position of the
the left and right in a very dark color. The bands of color. Additional color tabs can be
displacement will apply the most deforma- created with a single click under the gradi-
tion to the brightest areas in the gradient. ent. Colors that aren’t needed anymore can
Dark or black areas remain unchanged. This be deleted by pulling the tab upward, out of
is important for the edges of the gradient the gradient again.
because it makes sure that our deformed Loft Now use the Copy Channel command
object remains close to the walls and ceiling within the shader menu in the Texture area
after the deformation. of the Color channel to copy the gradient.
As soon as the material is pulled onto the Then activate the Displacement channel and
Loft object, you can take a look at the color- use the Past Channel command in the Tex-
ing in the editor and change the gradient ture area to paste the gradient. The gradient
108 Chapter 2: Advanced Workshops
in the Color channel can then be deleted by points to the object by subdividing every
using Clear in the Shader menu. edge with the defined Subdivide value. We
My settings for the Displacement channel can also activate the HyperNURBS Subdivide
are in Figure 2.29. You only need to select option. After activating this function the
the Intensity type, so black is used as the object will look like it was subdivided and
starting color in order to not trigger a defor- rounded by a HyperNURBS object.
mation. The value for the Height defines the My settings can be seen in Figure 2.30.
maximum deformation of the object. The use I used a simple subdivision of the cube, but
of either a positive or negative sign depends with HyperNURBS smoothing. Now we have
on the orientation of the faces on the object. enough new faces on the object to extrude
This can only be clarified with a test render- two neighboring polygons from the upper
ing of the object, as can be seen in Figure edge so a handle is created, like the one on
2.29 on the right. If the deformation is going the right in Figure 2.30. Since the Extrude
into the wall, then the sign for the Height tool uses the normals of the polygons as the
has to be reversed. direction of movement, you should use only
This is a very elegant tool to use to create a small Offset value and do the actual move-
wave-shaped profiles for the crown molding. ment manually with the Move tool. When
The render time for the displacement remains the desired handle length is reached, shrink
reasonable since we work with real points the two still-selected polygons at the end
and didn’t use Sub-Polygon Displacement. of the handle with the Extrude Inner func-
tion. This will result in a sharper edge later
The Window Handle when the HyperNURBS smoothing is applied.
The right side of Figure 2.30 shows this step
Another object we could add to the window as well.
frame is the window handle. We will add a Subdivide the handle under a HyperNURBS
simple object to portray the handle by start- object to get a better sense of the smoothed
ing with a new Cube primitive with two seg- shape. If necessary add one or two cuts using
ments in the Y direction. The standard size of the Knife tool in Loop mode, vertical to the
200 units in all directions can remain the length of the handle, and use these additional
same. Convert the cube with the (C) key to a subdivisions to give the handle a slight bend.
Polygon object and select the Subdivide Figure 2.31 shows an example in the side view.
value from the Functions menu. This adds There you can also see that I have moved the
Illuminating a Room 109
lower faces at the base of the handle upward, You should base the size of the cube on the
creating a small plane. We will add a small dimensions of your handle, though.
plate to this spot later. Then group the cube with the handle so
To add more definition to the top of the both objects are smoothed by the Hyper-
handle, select the faces highlighted in NURBS object and adjust their positions, as
Figure 2.31 and shrink them slightly with the shown in Figure 2.32. Now it is time to adjust
Extrude Inner command. The newly created the handle unit to the window frame, as
subdivisions allow the handle to appear less highlighted on the right in Figure 2.32. Adjust
rounded. the proportions of the handle by scaling the
Once you are happy with the handle, you complete handle hierarchy to the frame. Also
will need to add a plate that will be used to control the position and level of the handle
connect the handle to the window frame. with the frame so there is no gap between
Start by adding a new cube primitive and the plate and the frame, and put the Hyper-
resizing it so the cube is in proportion to the NURBS with the handle into the window
handle. Three segments in both the Y and Z frame group. If you created the second win-
directions ensure that the cube will be dow frame as an Instance, then the handle
rounded via HyperNURBS but not completely will appear there as well. Otherwise, you have
lose its shape. Figure 2.32 shows my settings. to create a copy or an Instance of the handle
110 Chapter 2: Advanced Workshops
— Figure 2.32: A simple plate for attaching the handle to the frame.
itself and move it manually to the second support beam for the elements of the deco-
window frame. rative grid. It also helps to fit the spline
curves into place. You have free range to cre-
Modeling the Decorative Grid ate your own spline curves. As you can see in
the figure, I created three spline curves in
I previously mentioned that the circular the front view that are oriented to the arc as
opening will not be a window but instead a well as the cube. These splines are subordi-
decorative part of the room. Therefore, we nated under Sweep NURBS objects to depict
will now model the round grid with decora- bent metal bars. You can also use the spline
tive elements. Because of the tubular insert, curves for scaling and rotation in the Sweep
we already know the approximate diameter NURBS objects to shape the bars to your lik-
of the opening. We will use this measure- ing. Just make sure that there are enough
ment as the radius for a new Arc object interpolation points set to create smooth
found in the Spline Primitive menu in the looking bars.
Objects menu of CINEMA 4D. This object Subordinate the three Sweep NURBS
represents a sector of a circle. Choose the XY objects under a new Null object—it can be
Plane as the set plane in the dialog of the found in the Objects menu of CINEMA 4D—
Arc object, which is the front view, and limit and rotate them by 45° around the B axis, so
the range of the arc to be between 0° and the decorative elements are located to the
90°, as shown in Figure 2.33. After rotating right of the world X axis. If you want, you
the arc by –45° in the B Rotation value can add small Cube primitives to simulate
field of the Coordinate Manager, the arc clips that hold the elements together. Subor-
should be standing on its tip. This represents dinate them under the Null object. This Null
the space that we will now fill with decora- object is then subordinated under a Symmetry
tive spline elements. Later we can fill the object that can be found in Objects>Modeling.
circular area with mirrored copies of this Set the Mirror Plane of the Symmetry object
arc area. to XZ. The result could look similar to the
On the right side of Figure 2.33 you can left image of Figure 2.34.
see how I worked. First, I placed a slim cube Create another Symmetry object and set
along the world Y axis. It will later be the the Mirror Plane to ZY. Subordinate the
Illuminating a Room 111
other symmetry object under the new one in If you want, you can add some more
the Object Manager. The result is shown in small cubes to simulate the connectors that
the center of Figure 2.34. Select the last hold all the elements together. The test ren-
created Symmetry object and choose the dering on the right in Figure 2.35 shows the
Instance object in the Objects menu under entire grid, including the added cube clips. In
Modeling. This represents a copy of the sym- the center image is the hierarchical struc-
metry group and can now be rotated by 90° ture of the grid. As you can see, I subordi-
around the B angle in the Coordinate Man- nated all the elements under a Null object
ager to complete the circle. The result is to be able to scale and move the Instance,
shown on the right of Figure 2.34. I also the symmetry group, and the separate cube
extended the vertical cube and rotated a clips at the same time. Fit the grid into the
copy horizontally to get a supporting cross round window so it is anchored to the tube.
structure for the grid. The right image in Figure 2.35 shows this
112 Chapter 2: Advanced Workshops
result. Looking out from the inside, place a seen in Figure 2.36. The material can then
Plane object or, even better, a simple Poly- simply be dropped onto the room object.
gon object behind the grid. It is supposed to Since the walls were for the most part gener-
depict a mirror that closes the opening in ated by an Extrude NURBS object, the exist-
the wall. ing UV coordinates are enough to create a
The modeling of new objects is now com- proper projection of the material.
plete. We previously modeled and textured
a vase, including a side table, in the first The Baseboard and the Crown Molding
chapter. Load those objects into the scene by
using File>Merge. Place them in an appro- We will use an understated material for the
priate place and adjust their size to be pro- baseboard and the crown molding. I used
portional to the room. a slightly warm color and the Oren-Nayar
as shading model, as shown in Figure 2.37.
Remember that we already created a mate-
The Materials of the Room rial for the crown molding and just have to
adjust the color and the shading model. The
I want to keep the materials of the room sim- material of the baseboard can again be
ple. The room is supposed to generate a mood applied by a simple drag and drop. Even the
by way of its illumination. We will discover absence of UV coordinates isn’t a problem,
later, during the process of lighting with since the material doesn’t contain any images
global illumination, what problems can occur. or structures.
We will start with the settings for the wall The ceiling is supposed to be perfectly white
and create a new material. I used a very sub- and with a rough composition. Therefore, we
tle Noise shader with two almost identical use the Noise shader with a Sema pattern in
colors. This slightly structured look of wall- the Bump channel of a new material. Set the
paper is supported by the Oren-Nayar shad- Strength of the bump to a low value so the
ing model in the Illumination settings of the effect doesn’t appear to be too strong. Here,
material. The settings of the material can be too, the Oren-Nayar fits perfectly to the
Illuminating a Room 113
desired surface type. All settings can be seen the Attribute Manager, for instance, ceiling,
in Figure 2.38. and then pull the ceiling material onto the
To be able to apply this material, you room geometry. In the new Texture tag, add
have to first make a polygon selection of the the name of the previously saved polygon
ceiling polygon and save it in a Selection tag. selection to the Selection field so the mate-
Use the Set Selection command in the Selec- rial is seen exclusively on these polygons.
tion menu of CINEMA 4D. Give the new Also make sure that in the Object Manager,
Polygon Selection tag a meaningful name in the Texture tag of the ceiling material is
114 Chapter 2: Advanced Workshops
placed to the right of the Texture tag of the Reflection and Exit Reflections can remain
wall material. Then the ceiling material won’t deactivated since only two parallel polygons
be covered by the wall material. Set the Pro- are positioned across from each other. These
jection of the ceiling material to Cubic. UVW effects would hardly make a difference.
Mapping cannot be used here since the ceil- I also activated the Reflection channel to
ing was created manually with an n-gon. be able to control separately the reflective
Therefore, no reliable UV coordinates exist. properties from the fresnel effect. The Bright-
ness value is set pretty high at 70%, but is
The Window Glass balanced automatically by the high transpar-
ency of the window pane.
Of course, the window pane receives a mostly Now we will get to the Illumination set-
transparent material, as shown in Figure 2.39. tings of the glass material. We will keep the
I prefer to use a material with a high degree Phong shading model, which is appropriate for
of transparency, but still under 100% since an smooth surfaces, but we will deactivate all
absolutely transparent material doesn’t exist. options in the upper part of the dialog that
In addition, the reflections will look better. are associated with generating and receiving
For the Refraction index I used the usual 1.5 global illumination. The more reflective and
while leaving the Fresnel Reflectivity at transparent a material is, the less it benefits
100%. The latter increases the reflective capa- from global illumination. Thus I recommend
bilities when looking at the window pane from that you deactivate these options to save some
an angle. The options for Total Internal render time later. Since sunlight is supposed to
Illuminating a Room 115
enter the room through the window, we can the vase and a concentration of rays on
support the global illumination by activating this object wouldn’t make sense. Figure 2.40
the GI Portal option. This option allows rays, shows the options for the two glass materials
which are used to calculate the global illumi- of the scene in detail.
nation, to concentrate on the objects that use
this material. The Mirror Material
Apply the same principle to the glass
material used for the vase, keeping the GI As previously mentioned, the calculation of
Portal option deactivated. We do this be global illumination for very reflective objects
cause there is no light source in or behind doesn’t make sense, since the rays used for
116 Chapter 2: Advanced Workshops
the calculation simply bounce off the object can be downloaded daily, free of charge,
and hit other objects in the scene. This is bal- from this source. When you have found the
anced, of course, by a decreasing amount of right type of wood, load it into the Color
reflection on the object. Objects with 50% or channel of a new material and activate a 15%
60% reflection allow you to decide for your- Reflection with 20% Blurriness. This com-
self whether the surface color should also be pletes the floor material.
influenced by the global illumination or not.
With chrome or mirrored surfaces at almost
100% reflection, we don’t have to worry The Sky Object
about that. As you can see in Figure 2.41
I used a warm white color, with 95% Bright- Especially with architectural visualizations,
ness in the Reflection channel of the mate- but generally with all scenes that are set out-
rial, for the mirror behind the grid. The GI side, we need a depiction of the sky. The Sky
options in the Illumination channel all object that can be found at Objects>Sky>
remain deactivated. Create Sky offers multiple settings, of which
All remaining materials not yet mentioned we will closely examine just a few. Basically,
are more subtle. You can apply a simple black the Sky object delivers three characteristics
material, without reflection, to the Sweep of a sky: the illumination by the sun, the illu-
NURBS object of the decorative grid. The mination by the sky, and the depiction of
clips on the grid would look good with a con- clouds and gradients for the sky. The gradi-
trasting color. Therefore, I re-used the bronze ent of the sky and the direction and intensity
material of the vase. For the window frame of the illumination depend on the time of
and handles, it is enough to apply just a day, the season, and the location from where
slightly glossy white material. The floor re the sky is seen. These settings can be adjusted
ceives a wood texture that is applied with a in the Time and Location section of the Sky
cube mapping. Fitting images of different dialog in the Attribute Manager.
kinds of wood can be found at www.cgtex- The calculated position of the sun is based
tures.com. A certain data volume of textures on the world axes of the CINEMA 4D world
Illuminating a Room 117
and the sky light. For example, at noon the illumination, and select 11:00 a.m. for the
sky is mainly blue and would create an time and 19 September 2008 as the date.
intensely colored sky light. This value would For the city I chose Essen in Germany. These
then be used to reduce the coloring. With an are rather spontaneous settings. Important
extreme reduction of 0%, you would get only is the sun’s typical position on a late
only gray tones for the sky and its lighting. summer day.
With Color Correction the color gradient In order to have the sunlight shine
can be moved within the color spectrum. through the window, the side of the room
That way, a reddish sky can also be shown at with the windows should point south, which
noon. With Gamma Correction and As Seen means to be oriented in the direction of the
Intensity, you can manipulate the brightness negative world Z axis. Therefore, turn the
and color contrast of the sky. These values entire room if necessary. Figure 2.43 shows
work just like the values used during the an example of how the light shines into the
manipulation of an image in a graphics pro- room and what influence the sky object has
gram. They also influence the intensity of on the illumination. As you can see in the
the night sky, but the illumination intensity left image, the blue color penetrates the
remains unchanged by these parameters. walls and causes the coloring of the room to
Only the brightness of the sky is changed. be too intense. This wouldn’t bother us with
The colors of the sky are generated inter- an outside scene, but in our case it looks
nally with spectral colors. Its color space is unnatural. On the right side of Figure 2.43
not identical to the color space used by you can see the same scene after the deacti-
the commonly used RGB system. The con- vation of the Intensity of the sky. The inte-
version of the color values can therefore be rior is now lit only by the sunlight.
influenced by the Use Warm Colors and Use To intensify the sunlight, the glass object
Chroma Color Map options. Use Warm in the window should receive a Compositing
Colors influences the conversion in favor tag. It can be found after right clicking on
of the red and yellow colors, while Use the object in the Object Manager in the
Chroma Color Map results in a cooler sky context menu under the CINEMA 4D Tags.
with more contrast. These options can also Deactivate the Cast Shadows and Receive
be combined. Shadows, and also the Seen by AO option,
For our scene we set the Intensity to so any shadows cast by the glass will be
0%, so the sky color isn’t also used for the suppressed.
The illumination of the scene is now entirely As previously mentioned, you can use any
created by the Sun in the Sky object. The Sun other object as the sun. Just pull the object,
of the Sky object has many properties that with drag and drop, into the Custom Sun
are comparable to those of a simple area Object field in the Sun section of the Sky
light with area shadows. The option Use object. Then delete the object again from the
Warm Colors works in a manner similar to field by using the Clear command in the
its corresponding option in the settings of menu on the right. This has the advantage
the sky. The conversion of the color values that you can move the object yourself, for
to the RGB color space shifts the colors to example, to pull it closer to the world origin
yellow and red tones. Intensity represents along its Z axis. Another more practical vari-
the brightness of the sun and therefore the ation is to place an area light at the spot
brightness of the illumination. I will use a where the HUD element of a compass rose is
relatively high value of 180%, since the sun positioned. The left side of Figure 2.44 shows
is our only light source so far and I’d like to this position marked with the mouse pointer.
portray a strong contrast inside the room. When you then orient the Z axis of the light
The Saturation Correction pertains to the source toward the origin of the world coordi-
coloring of the sunlight. At 0% you will get nate system, as shown on the right in the
a white light. Hue Correction and Gamma figure, then you can move the light source
Correction work like the corresponding set- yourself along the Z axis to the desired posi-
tings for the sky. Size Ratio controls the size tion. An advantage here is that you don’t
of the visible body of the sun and therefore have to depend on the settings of time and
also the size of the area of the light from the place from the Sky section. Your own light
sun as well. A larger sun will generate a source can be moved a bit until an optimally
softer shadow and a smaller sun will cast cast shadow is achieved. Special functions
harder shadows. As Seen Intensity scales the can also be used, such as creating a falloff.
visibility of the body of the sun in the sky. Don’t forget to deactivate the Sun of the
This has no influence on the illumination by Sky object so you don’t have two suns and
the sun. If you are bothered by the look of cast two sets of shadows in your scene.
the sun, you can set the As Seen Intensity to Change to the Basic settings of the Sky object
0% and the sun will disappear. and deactivate the Sun option. Here there
With Custom Color activated, the sun can are other options, like the one for activating
be given custom coloring. Otherwise, the Pre- atmospheric effects, fog, rainbows, or clouds.
view Color in the upper part of the section With the light source I placed, I used the
shows a preview of the sun’s color set by the Infinite type and Area shadows. I set the
parameters. Additionally, Lensflares can be Intensity to 125% with a slight yellow color-
added to the look of the sun, simulating the ing. Figure 2.45 shows you the placement of
interaction of the sunlight with a camera lens. my own sun. The direction of the light corre-
With Custom Sun Object any other object sponds with that of the original sun from the
can be used as the sun object. Simply pull it sky object. Only the Type of the light and the
from the Object Manager into the matching distance to the room are now different.
field in the Sun section. The remaining set- Figure 2.46 shows two variations that
tings of this section are the same as the were achieved by simply changing the type
shadow settings of a normal light source with of light. On the left you can see the Infinite
shadow maps and don’t need further explana- Light, and on the right a normal Spot Light.
tion. Here you can set the type, color, and The brightness, as well as the shadows, can
level of precision of the shadow calculation. be varied by changing the distance of the
120 Chapter 2: Advanced Workshops
light source to the object. I will keep the standard light sources. The sunlight has
Infinite light, though, since it comes closest already been replaced by a normal light
to the illumination properties of the sun. source. This light represents only the direct
light part of the sun, though; the light scat-
tered in the environment is missing com-
Manually Illuminating the Room pletely. One part of this scattered light comes
from all directions of the sky and thus finds
Before we take a look at the lighting us its way through the windows into the room.
ing Global Illumination of the Advanced This light generally has a blue tint and of
Renderer, we will try to light the room with course comes mainly from above. The portion
Illuminating a Room 121
of sunlight reflected from the surrounding certain distance away from the front of the
buildings will be discussed later. windows. These lights will be used to calcu-
We will add a new Area Light and change late a shadow as well. I decided to use an
the shape of the light to Hemisphere in the Area shadow again since it looks the most
Details settings. The size should be large natural.
enough so the scene has enough room under Figure 2.48 shows on the right where I
the hemisphere. Therefore, increase the value placed these area lights and on the left you
for Outer Radius in the Details settings of can see my settings. Note that the calcula-
the light source. These settings and the result tion of Specular should be deactivated. In
can be seen in Figure 2.47. The intensity of addition, I increased the Contrast value in
25% is quite moderate but is enough to give the Details settings of the light source to
the room more definition. The shadows 50%. This causes a less-soft illumination and
should be deactivated. Defined shadows with sharper transitions between light and shadow.
this kind of diffuse illumination would be I used a slightly yellow tint for the coloring
rather distracting. The option for the calcula- of the lights.
tion of Specular should generally be deacti- Inside the room itself there is a kind of
vated in the General settings of such diffuse scattered diffuse light, because all the light is
light sources. Only small lights add a believ- reflected by the floor, walls, and ceiling to
able highlight to surfaces. other parts of the scene. Instead of using
multiple additional lights, I used a spherical
The Scattered Light from the Environment Area Light in the center of the room as it is
defined on the left in Figure 2.49. A tempo-
As already mentioned, the sunlight is also rary Intensity of 50% with a warm coloring
reflected by other objects in the environment of the light causes the illumination seen on
of the room. The surface of a house in direct the right in the same figure. This light source
sunlight would reflect a large amount of that doesn’t have any highlight properties and
light to the houses across from it. We will doesn’t cast shadows. A shadow coming from
simulate this scattered light with two rectan- the center of the room would look funny
gular area lights that are placed outside, a anyway. Again, we will use a contrast of
122 Chapter 2: Advanced Workshops
— Figure 2.50: The room with and without Ambient Occlusion calculation.
50% with this light source for more defined three-dimensionality. The transitions between
shadings. floor and walls take a back seat.
Now you have a manageable number of We can counteract this with the Ambient
light sources whose intensities can easily be Occlusion calculation. Activate this effect in
adjusted to get the desired result. You can the Render Settings of CINEMA 4D and
see in Figure 2.50 how the general increase reduce the Contrast value to –75%. Room
of all intensities quickly gives us a good corners that are too dark would look unnatu-
outcome. But at the same time, the increased ral in a room flooded with sunlight. The right
brightness of the light sources without side of Figure 2.50 shows the result with
shadows cause a decrease in definition and otherwise unchanged lighting. The room
124 Chapter 2: Advanced Workshops
post‑effect calculation, then deactivate Affect Renderer for calculating global illumination.
Background. Lastly, the Exponential option By knowing the type of illumination and the
creates an exponential transition between scene, we can exclude some methods that
light and dark parts of the image. Without are less well suited. The GI mode QMC offers
this option the transition would be calculated the highest quality since every pixel is
in a linear fashion. treated in the same way, regardless of its
Figure 2.53 gives you an impression of position in the scene or its visibility to the
how the room could look with the wooden light sources. This calculation needs many
floor texture and the added objects. With a steps and takes longer to create results with
little effort we can get good results, even low noise. In this regard the IR mode can’t
with normal light sources. be beat because CINEMA 4D itself optimizes
the number of calculation steps per image
pixel. This optimization is traded, though,
Global Illumination with a softer, and therefore less accurate,
light distribution. Then there is the special
As we have seen in the first chapter, there Sky Sampler, which is meant to be used for
are certain options available in the Advanced outside scenes and exclusively calculates the
126 Chapter 2: Advanced Workshops
direct illumination by the sky or an HDRI the global illumination and therefore also not
image. included in the Primary Intensity. Only the
Due to the functionality of these modes, reflected light from the directly illuminated
the IR mode is primarily used for interior object is multiplied with this value. It is dif-
spaces. A combination mode of IR and QMC ferent with lighting from an illuminating
is an alternative to the sky sampler for out- material. Here, the light generated by the
side scenes. The QMC mode can be used for illumination is included in the global illumina-
all scenes, but creates more noise than other tion calculation and also multiplied with the
modes in the same amount of render time. Primary Intensity. At Diffuse Depths over 1,
However, this style might be the one you the light intensity of subsequent light reflec-
want for the final image. tions can be controlled by Secondary Inten-
sity. We will leave the two values at 100%
General Settings for the moment. A gamma value can be used
in addition to either darken or lighten the
To illuminate our room we will select the IR whole image. Values above 1 generally lighten
mode. It is short for Irradiance Cache. This GI the result and can, in some cases, save us the
mode is activated in the General settings of time needed to adjust the light sources or
the global illumination after activation of the material properties of the scene. Values under
GI by clicking on the Effects button in the 1, of course, reduce the image brightness. As
Render Settings. The next setting in this you can see on the left of Figure 2.54, we will
mode concerns the diffuse depth, which de keep the standard value of 1.
termines how often a ray is reflected off and
forwarded from a surface. The higher the Irradiance Cache Settings
Diffuse Depth, the more the light is scattered
and directed to previously shaded areas. The In IR mode, so-called pre-passes and shading
image gets brighter with increasing Diffuse points are calculated and light distribution is
Depth and needs more time to render. We interpolated between these two. To optimize
will use a value of 2. the render time, there are several parameters
The Primary Intensity is a multiplier for available to achieve a balanced ratio between
the brightness of the first light reflection. quality and render time. The meaning of these
What’s important is whether the scene is lit parameters was already explained in the first
by a light source or by an illuminated object. chapter, so I will just list the functions and
With a light source, the directly illuminated the settings used for our scene. You can find
surface is not included in the calculation of them on the right of Figure 2.54.
Stochastic Samples represents the num- consideration, thereby preventing light from
ber of calculation rays per Diffuse Depth and penetrating objects in close proximity. Because
pixel that are being sent into the scene. We of the double walls in our room we don’t
will use the preset Low. Record Density need this setting. Check Record Visibility
takes care of the density of shading points. works the same way and also prevents light
These points are then evaluated for the inter- from penetrating single-walled objects. We
polation of color and brightness values of can forego this setting as well for the same
the finished image. This means that the reason. Details Enhancement works in a
result is more precise because more shading manner similar to the Ambient Occlusion cal-
points are generated. Of course, this also culation and can prevent the weakening of
increases the render time. As a result, we fine shadows that are caused by indirect light.
will first try our luck using the Low setting We will activate that option.
to obtain a quick preview of the global
illumination.
The Interpolation Method defines, to Adjusting the Settings of the Sky Object
gether with the Smoothing setting, the algo-
rithm that is used to calculate the smooth Deactivate or delete all light sources in our
ness of the determined shading points. We scene. Then open the dialog of the Sky object
will use Least Squares with a medium and activate the Sun and Sky in the Basic
Smoothing. The Oversampling is used when settings. Set the Intensity in the Sky settings
illuminating materials or GI portals are used to 100% so its light is included in the calcula-
if those materials were activated by using tion. In the settings of the sun we will use an
Oversampling as Sample Mode on the Illumi- Intensity of 180%. All other settings previ-
nation page. The setting Weak should be ously set stay the same. The Sky object is
sufficient for now. now the only light source in the scene. Now
The Distance Map option ensures that the make a test rendering of the scene. The result
distance between objects is taken more into is quite sobering, as you can see in Figure 2.55.
Besides the direct light of the sun, there is intensity of the incoming light. What should
hardly any evidence of indirect illumination. we do? We like the look of the dark wooden
Maybe our settings in the Render Settings floor and don’t want to replace it with a
are too low? light one.
Let us try it again, but this time with a
Primary Intensity of 200%. The brightness Optimizing the Floor for GI
of the light reflected from the walls and
the floor should now be twice as strong. In cases like this we have to use a trick. We
Figure 2.56 disappoints us again. The differ- will solve the problem by using two separate
ences are minimal. What could be the rea- objects. One will represent the visible floor
son? During analysis, it helps to put yourself and the other one will take care of the
in the position of the light. Therefore, enter reflection of the light back into the room. In
the room through the window and you will order to do this, we will select the floor poly-
encounter the side wall and the floor first. gon in our room and choose the Disconnect
This light is not yet generated by global illu- command in the Functions menu. This cre-
mination and is therefore shown correctly in ates a new object that contains only the
the results. The first reflection starts either floor surface. If your room object has subor-
from the floor or the wall, from where it dinated objects in the Object Manager, then
probably hits the floor again. The problem of these objects are copied as well and are
the dark illumination is caused by the dark placed in a hierarchy under the newly added
material of the floor. Remember, light doesn’t and disconnected object in the Object Man-
consist entirely of brightness, but also of ager. You can delete these duplicate objects.
color values that are transferred by the Also delete the floor polygon in the original
reflecting light from one object to another. room object.
When a dark object is illuminated, then only Duplicate the previously disconnected
dark light is reflected, regardless of the new floor object and shrink it, by moving the
corner points, so it shows a consistent gap to In order to let CINEMA 4D know which
the baseboard all the way around. Figure object has what function, add a Compositing
2.57 shows the shrunken object in two view- tag to each floor object, as shown in Figure
ports. You can see the desired gap between 2.58. Add them with a right click on the
the baseboard and the edge of the shrunken objects in the Object Manager and by choos-
floor on the right. We do this because the ing CINEMA 4D Tags>Compositing. Also,
baseboard should not be illuminated too remember that the object representing the
much by the reflecting light. This would look visible floor can be removed from the now
unrealistic with such a dark floor. Also, pull unnecessary Texture and Selection tags.
the shrunken floor slightly beneath the origi- Only the material for the floor texture should
nal floor of the room. A minimal movement remain. The entry for the limitation to the
of maybe 0.1 units downward is enough so polygon selection has to be removed from
that the two floor objects don’t occupy the the Texture tag as well. The second lower
same space. floor object doesn’t receive a material.
In the compositing tag of the textured Another try can be seen in Figure 2.60.
floor, deactivate Cast Shadows and Seen by There I set the Diffuse Depth to just 1, but with
GI. Otherwise, this object would cast a shadow a Primary Intensity of 200% and a Gamma of
onto the lower floor, making its function more 1.8 to compensate for the removal of the sec-
difficult. The lower floor, on the other hand, ond reflection of the light. This increases the
should not be visible for Ambient Occlusion render speed considerably. A slightly red tint of
and shouldn’t react to shadows. As a result, the lower duplicated floor results in a warmer,
deactivate Cast Shadows, Receive Shadows, more diffuse color. Just remember that this col-
and Seen by AO. Seen by GI needs to stay oring should be subtle so the illumination isn’t
activated. reduced. Such color correction can also be done
The positive change caused by this little in postproduction, when corresponding Multi-
tweak can be seen in Figure 2.59. The light Passes have been saved separately.
can now be reflected by the floor and illumi-
nates the room. Even the low detail and An Alternative Lighting Mood
sample values seem to work well in this case
and don’t need to be increased. Like in the In the previous example we simulated sun-
previous scene, I used Ambient Occlusion in light streaming through a window. I would
the Render Settings to increase the details in like to change the scene now to simulate illu-
the room corners and behind the side tables. mination from a torchiere in the room, with-
This time I reduced the maximum ray length out any light coming in from the outside. In
from 100 to 30 units, to further inhibit the the first step, remove the Sky object com-
darkening of the corners. This value depends pletely from the scene, so neither sunlight
mainly on the scale of your room, so it is too nor skylight is generated. The illuminated
difficult for me to provide binding values. interior will look more realistic at night;
You will have to run some test renderings to therefore, we also don’t need the gradient of
find the right value. the sky anymore.
— Figure 2.59: Changing the room illumination after adding the second floor.
Illuminating a Room 131
and switch to Use Polygon Tool mode. Select like the one shown in Figure 2.64. Remember
the two large caps, on top and bottom, with to select and move simultaneously the points
the Live Selection in the top viewport and on the top and bottom of the cube so the
make it possible to select hidden elements. thickness of the object remains constant. By
After that use Extrude Inner, from the Struc- subordinating the deformed cube under a
ture menu, multiple times with these faces so HyperNURBS object it can be smoothed, as
you can have multiple subdivisions, as shown shown on the right in Figure 2.64. An alter-
on the right in Figure 2.63. native to this modeling method is the use of
The newly generated points can be used a Lathe NURBS object with a profile spline
to change the cube into a funnel-like shape, of the reflector bowl. The principle is the
Illuminating a Room 133
same as the modeling of the vase in the pre- more easily. Select all objects of the lamp
vious chapter. There are always several ways with (Ctrl) clicks in the Object Manager, or
that lead to the finish. by using a selection frame in the Object
Still missing is the actual light source. For Manager, and by selecting Group Objects in
that we will use a point light with a soft the Objects menu of the Object Manager.
shadow. It is important that the light source Afterward, position the torchiere in a corner
is located deep enough in the upper funnel of of the room next to the window or in another
the torchiere so the direct light exits in a wide spot of your choice.
cone upward toward the ceiling. Figure 2.65
shows the positioning of the light source and The Materials of the Torchiere
the preliminary settings.
Then group all elements of the lamp The frame of the lamp receives an under-
together in order to move or scale them stated dark material with a slight reflection.
134 Chapter 2: Advanced Workshops
You could use the same material used for the The Reflector Material
decorative grid. The spheres enclosed in the
lamp are supposed to be transparent, but at The upper reflector bowl is supposed to con-
the same time very refractive and reflective. sist of a translucent, slightly transparent
We will create a new material and set the material. We will start again in the Color
brightness to 50% in the Color channel so channel of a new material. I loaded the Noise
the reflective properties can be easily seen. shader and used two slightly different color
I colored the transparency slightly orange tones in the yellow-red range of the color
and assigned a Refraction index of 1.6 with a space. For the Noise type I used Electric, but
Brightness of 70%. As Absorption Color other patterns are possible, too. The goal
I used a desaturated blue whose Absorption here is to show slight irregularities in the
Distance is adjusted to the radius of the surface color. In the Color channel itself
sphere. Only test renderings help to find the I reduced the Mix Strength to 50% so the
correct settings. The value could be roughly standard gray color of the channel is visible
oriented to the diameter of the largest through the Noise, thereby weakening the
sphere. The options for Total Internal Noise a bit.
Reflection and Exit Reflections are activated
as well. Subsurface Scattering
The color of the reflection is a slight yel-
low and has a brightness of 70%, with the The chief characteristic of this material is not
highlight being intense and small. Since the the surface color, but instead the illuminat-
material has mainly reflective and transpar- ing part. Therefore, we will use the Subsur-
ent properties, generating and receiving global face Scattering shader in the Luminance
illumination can be deactivated. Figure 2.66 channel. This shader can simulate continuous
shows the most important parameters of this and scattered light within an object. Just
material. think about the effect that occurs when you
Illuminating a Room 135
hold your hand in front of a lamp. The light represents the medium distance from where
passes partially through the fingers, causing the light is scattered. An Absorption value
them to glow red at thinner parts. This effect that is too big reduces the influence of the
is caused by the scattering of light within the Absorption Filter.
objects and is characteristic of many organic, The Absorption Filter defines the coloring
but also inorganic, materials. Even massive of the scattered light at the various depths of
rocks and marble show that effect in nature. penetration into the object. The left edge of
The Subsurface Scattering shader, or SSS the color gradient stands for the coloring in
shader, can be found in the effects group of the thinnest segments of the object and the
the shader and is controlled mainly by enter- right one for the thickest parts. The color gra-
ing lengths. The size of the object that is dient orients itself based on the value for the
supposed to receive this shader is very impor- Filter Length. The colors placed on the right
tant. The Scattering Length defines the dis- side in the gradient will be visible after the
tance that a ray can travel within an object. scattered light distance defined in the Filter
This parameter is generally smaller than Length. The Strength value is a simple multi-
the dimensions of the object. Absorption plier of the effect’s brightness. The Samples
136 Chapter 2: Advanced Workshops
stand for the number of calculation steps per simple geometries. A summarization of my
surface point. Higher values generate a result settings can be seen in Figure 2.67.
with less brightness noise, but it also takes We can also use a slight Reflection of
longer. Lastly, Minimal Thickness defines the 10% in the material without a blurry effect.
distance that a ray can travel through the As for the illumination, Receive GI and Gen-
object, measured from the surface, without erate GI should be active. I reduced the gen-
scattering or losing its strength. Since the erating property to just 10%. This value is a
shader has to know if the ray is still traveling result of multiple test renderings. You can
within the object or maybe within a cavity in leave this value at 100% and lower it later,
order to calculate, the direction of the nor- based on your own needs. This value is impor-
mals is important. With Use Normals active, tant because illuminating materials act like
the normals pointing outward are automati- light sources in the global illumination calcu-
cally recognized as the outer shell of the lation and take part in the actual lighting
object. Without this option, the shader just of the environment. I reduced the receiving
counts the penetrated polygons and assumes value to 80% and the Saturation of the
that between the first and second (third received GI light was reduced to 50%. The
and fourth, and so on) penetration the object reflector itself emits light and therefore
is solid. This method is quicker when using shouldn’t absorb that much color of the other
— Figure 2.72: Using the gamma value to increase the overall brightness.
Next to it is the finished image with 200% real illuminated room, it would of course be
Secondary Intensity. The Irradiance Cache easier to replicate the distribution of differ-
values can be seen there as well. Nothing has ent brightness levels. We have to trust in our
changed here in comparison to the illumina- own judgment and abilities to find the right
tion by sunlight. Medium standard settings mood for the image.
result in a good quality. Figure 2.74 shows the final image after the
Keep in mind that these render settings reactivation of Ambient Occlusion and a cor-
might have nothing to do with the simulation rection of the tonal value in postproduction.
of realistic light. It is our goal to achieve a With the following example we will leave
good result from an artistic viewpoint within the constricting scene of a room and step
a reasonable time frame. Using a photo of a outside.
140 Chapter 2: Advanced Workshops
— Figure 2.73: Settings for the global illumination of the final rendering.
— Figure 2.75: Base plate and supporting square timber of the lantern.
142 Chapter 2: Advanced Workshops
the plate as shown in Figure 2.77. Then cre- need four slim cubes, each pair having equal
ate another cube, which is elongated along measurements. These cubes are placed paral-
its height, to serve as a short post that we lel to the edge of the plate, on top of the
can place in the center of the plate. Because plate. The ends of the cubes penetrate each
the four beams enter the post in the center, other, as shown in Figure 2.78. The highlight
we don’t have to close the open ends created shows the cubes with equal measurements.
by the deletion of the beam points. The height of one pair of cubes is slightly
reduced so no unnatural shading will occur
The Framework of the Lantern at the corners of the intersecting areas of the
cubes.
This completes the base of the lantern, and Exactly into one of the cross points of the
now we will start on the framework. We will cubes we will place a new vertical cube whose
Lighting an Outdoor Scene 143
profile corresponds with the four previously Back in Use Model Tool mode, activate the
placed cubes. Set the height of the cube so it Rotate tool and rotate the vertical cube
has the height you envisioned for the lan- slightly outward. Figure 2.80 shows this tilt
tern. Figure 2.79 gives a reference and shows from several views. As you can see there, the
again the measurements I used. cube isn’t rotated outward into the direction
Using the (C) key, convert the vertical of the base plate corner, but only around one
cube to a Polygon object and change to Use of its object axes. I decided to rotate it around
Object Axis Tool mode. With the Move tool the Z axis, but it doesn’t really matter which
pull the axis system of the cube downward, one is used.
so that it is positioned approximately at the When you are happy with the tilt and
cross point of the cubes lying on the plate. rotation of this vertical support beam, create
144 Chapter 2: Advanced Workshops
three copies in the Object Manager by using Modeling the Upper Immediate Ceiling
the (Ctrl) key with drag and drop. Move
these copies to the three other cross points In order to give this construction stability,
on the base plate and create a symmetrical we will add another four cubes slightly
tilt of the beams by changing the signs in the beneath the upper ends of the vertical sup-
Coordinate Manager. This means that, when port beams. This time, though, they are not
you previously rotated the vertical cube modeled from several objects but from one
around its Z axis by 4°, you then have to flat cube, as shown in Figure 2.81. The height
change the numerical value of the B angle in of the cube is equal to the profile of the
the Coordinate Manager from 4° to –4° to vertical support beams. Make sure that this
create a mirrored tilt. plate protrudes on all sides, slightly past the
Lighting an Outdoor Scene 145
— Figure 2.82: Creating additional subdivisions using the Knife tool on the converted cube.
support beams. Because of the rotation of the subdivided plate that are supposed to
the support beams this plate cannot have a belong to the new, horizontal stabilization
square base plane like the lower base plate. bar. Figure 2.83 clarifies which faces are
Convert the newly created plane with the meant.
(C) key to a Polygon object and switch to After these faces are selected, use the Dis-
the Use Polygon Tool mode. Using the connect command in the Functions menu to
Knife tool from the Structure menu, make copy these faces into a new Polygon object.
some Loop cuts along the support beams The original plate can be made invisible for the
that protrude through the plate, as in Figure moment. Use the Create Polygon function in
2.82. Select the polygons along the edge of the Structure menu to close the highlighted
146 Chapter 2: Advanced Workshops
opening of the disconnected object, shown in Make sure that there are no intersections
Figure 2.83, with a quadrangle made of new and that the four beams are exactly aligned,
polygons. To do this, click clockwise, in consec- especially at the corners.
utive order, onto the corner points at the open
edge of the object. On the fourth point double The Roof of the Lantern
click so the new face is generated between the
previously clicked points. In the next steps we will put a typical roof
Use the same principle for the other sides on top of the lantern. We will start with the
of the subdivided plate. This creates four flat support structure, which again contains four
beams with cutouts for the vertical beams. cubes, two identical pairs. The longer cubes
Figure 2.84 shows these objects alone and are used on the sides where the vertical sup-
then on the right side in connection with the port beams tilt outward. These elements can
other groups of the lantern. The highlights be seen in the upper part of Figure 2.85.
emphasize where the borders of the discon- Note the generous overlap of these high-
nected and then closed parts are located. lighted cubes. The two shorter cubes are
shown underneath. They are modeled taller
so the faces at the cross points don’t inter-
sect at the corners.
The actual roof consists of two cube plates
with different angles that are placed, slightly
overlapping each other, above the support
structure of the lantern. Since the roof is
symmetrical we only have to create half of
the roof, as shown in Figure 2.86. Once you
have modeled the lantern around the world
origin, then you can use the world Y axis as
— Figure 2.83: Manual closing of the discon the symmetry axis and align the tilt of the
nected area of the plate. upper cube on it. The cubes should be
adjusted in their width so that they also two cubes of the roof construction under the
overlap the longer support beams a bit. Symmetry object, as seen in Figure 2.87. If
As I just mentioned, we don’t have to put the Mirror Plane in the Symmetry object
in the effort to model the other half of the was set correctly, then you should now see
roof. A new Symmetry object with the two the complete roof.
cubes of the roof subordinated under it will In order to have such a roof construction
take care of that. Note that the Symmetry work, we need some connecting elements.
object only mirrors the uppermost subordi- We will use splines, because we need a bar
nated object and its hierarchy. Therefore, that nestles against the two roof cubes.
create a hierarchical relationship between the Figure 2.88 shows how such a spline curve
could look. I used a Bezier spline and utilized Pull apart both splines, located along the
its tangents to create roundings and hard roof construction, so that evenly sized gaps
edges. The spline should be closed with the are generated at the outer edges of the roof.
Close Spline option in the Attribute Man- Figure 2.89 can be used as an example. There
ager so we can convert it, in the next step, you can see that the subordination of the
to a solid-looking object with the help of an Extrude NURBS objects, in the roof group
Extrude NURBS. under the Symmetry object, automatically
Create a new Extrude NURBS object and completes the missing side. The remaining
subordinate the spline under it. Then make a gap between all NURBS objects at the peak
copy of the spline and leave it in the group of of the roof is closed by a new cube object
the NURBS object, as shown in Figure 2.88. that is highlighted on the right side of Figure
For the Extrude NURBS object to utilize both 2.89. In the front and back this ridge extends
splines you have to activate the Hierarchical past the roof quite a bit. Don’t forget to
option. Then use the Movement value and round the cube here, too.
the option for closing and rounding the caps Despite all efforts, the roof construction
to give the spline mass. still appears a bit shaky since a support from
below is missing. To add it, start again with a Select the Extrude NURBS and convert it,
new spline created in a linear manner. Depend- with Functions>Make Editable, into a Poly-
ing on the orientation of your lantern, you gon object. Add a new Symmetry object from
will have to create the spline in the side or Objects>Modeling and subordinate the con-
front viewport and use it to close one-half of verted Extrude NURBS under it. As shown in
the roof gable, as shown in Figure 2.90. Check Figure 2.91, one side of the gable should be
in the Coordinate Manager to be sure that completely closed, as long as you have moved
the points in the center are positioned exactly the face of the Extrude NURBS to an appro-
on the symmetry axis of the lantern. The X priate position.
and Y point coordinates should be 0 as long The Symmetry object is also just a para-
as your lantern was built at the world origin. metric object and can therefore be converted.
The finished spline is then subordinated Select the most recently created Symmetry
under a new Extrude NURBS object. This object and use the (C) key to convert it to a
time, leave the Movement value at 0 and use Polygon object. There should now be a Poly-
only one of the two cap functions, as shown gon object with two faces in front of you, as
on the right side of Figure 2.90. This ensures shown on the left in Figure 2.92. This struc-
that the closed spline of the half gable is ture can be further simplified. Select the two
closed by a face. faces in Use Polygon Tool mode and choose
Melt in the Functions menu. The two faces the lantern. The following steps will deal with
are then combined into one large n-gon, as the spaces in between. If we use a tea light
can be seen on the right of Figure 2.92. If this candle for the illumination it has to be pro-
doesn’t work with your object, then most tected from drafts.
likely the points in the middle weren’t located
exactly on top of each other and haven’t been Modeling the Side Parts of the Lantern
combined by the Symmetry object. In this case,
use the Undo function in the Edit menu to go We will start by closing the remaining open
backward until you have the Symmetry object areas on the sides of the upper portion of the
back. Select the points positioned on the sym- lantern, in between the upper support frame-
metry plane and control their position. work. Create a new Cube object, but this
Duplicate this closed object of the gable time we won’t need to round the edges
and move the copy to the opposite side of since they will be completely covered by the
152 Chapter 2: Advanced Workshops
surrounding cubes. Adjust the size of the Attribute Manager so that all four sides can
cube so that it intersects slightly with the be edited separately. Reduce the size of the
cubes around its perimeter. This will ensure selected faces, as shown on the top left of
that light will not leak through small gaps. Figure 2.94.
Figure 2.93 shows the size and position of Then deselect a facing polygon pair. Now
the highlighted cube. only two faces that were shrunk with Extrude
Then convert this cube with the (C) key Inner remain selected. In the Coordinate
to a Polygon object and delete, in Use Poly- Manager reduce the value for the lateral size
gon Tool mode, the two large faces on top of these polygons and use the Apply button.
and bottom of the cube. What remains are You could also use the Scale tool that is
the four side faces of the lantern construc- restricted to lateral scaling. The goal is to get
tion. Select these four polygons and activate faces twice as wide as they are high. Repeat
the Extrude Inner command in the Struc- this with the second polygon pair generated
ture menu. Deactivate the Preserve Groups by Extrude Inner. Figure 2.94 shows the
option in the settings of the command in the desired result on the bottom left.
The shrunken faces located in the center selected faces a little bit toward the inside of
of the side polygons represent windows that the lantern and by doing so, create a wall or
are covered with translucent glass or paper. thickness around the window polygons.
The surrounding polygons build a solid frame Now select and delete the four small win-
that could be made of wood. Select the four dows, each consisting of just one simple poly-
shrunken faces in the center of the four sides gon, and change to Use Edge Tool mode.
and use Invert in the Selection menu. The Use the Ring Selection in the Selection menu
result is also shown in Figure 2.94 on the to select the four edges in the corners of the
right. With this simple method the polygons window openings. Hold down the (Shift) key
surrounding the windows are now selected. so you can select the edges at the other win-
Select the Extrude command in the Struc- dow openings as well. Then use the Bevel
ture menu and activate the Create Caps command in the Structure menu to round
option in the Attribute Manager. This will these edges, as shown in Figure 2.96. In
ensure that during the following extrusion the Bevel tool settings, activate the Create
the original polygons aren’t deleted, thereby N-gons option and the Convex Type with
creating a solid object. Figure 2.95 shows a three to four Subdivisions. The extent of the
possible result. The goal is to extrude the rounding can be seen in Figure 2.96.
A candle will create the light emanating The Decorative Grid of the Lantern
from the inside of the lantern. Its light will
be diffusely scattered by the side paper walls. The paper walls are supported by an outer
These paper walls will be modeled from a decorative grid made from slim wooden
simple cube. Figure 2.97 shows the high- sticks. For their modeling we will first make
lighted cube. After you adjust its size to the a copy of the paper wall object and then
height of the inner base polygon of the lan- change to Use Edge Tool mode. With the
tern, convert the cube with the (C) key and Knife tool from the Structure menu add
delete the upper and lower cap in Use Poly- subdivisions as evenly as possible to each of
gon Tool mode. Then switch to Use Point the side faces of the copied object. Figure
Tool mode and adjust the upper corner 2.98 shows, especially on the right side, the
points by moving them so the object matches desired result of this step.
the tapered interior of the lantern, as shown Then select the edges that are located in
in Figure 2.97. the area of the openings and run parallel to
the vertical support beams, and select the Then use the Ring Selection in the Selec-
Edge Cut command in the Structure menu. tion menu and select all horizontal subdivi-
This allows you to cut in the same way as the sions of the object. The right side of Figure
Knife tool in Loop mode. The advantage here 2.99 shows the completed selection of these
is that these cuts are automatically spread edges. These edges also have to be cut with
out evenly, based on the edge length. As you the Edge Cut function. Ideally, this will cre-
can see on the left of Figure 2.99 I’ve added ate almost identical square polygons in the
a lot of even subdivisions parallel to the floor area of the four side faces of the lantern.
of the lantern. The Subdivision value of the In Use Polygon Tool mode, use the Loop
Edge Cut function should be set to about 25. or Ring Selection in the Selection menu to
The goal is to generate a pattern that we can select the geometric pattern, as shown in
use later to model the decorative grid. Figure 2.100. These faces will be extruded to
— Figure 2.99: Using the edge cut function to create parallel subdivisions.
give them a thickness and the remaining extent of the reduction directly in the editor.
faces can then be deleted. Therefore, use the To further improve the result, select the dec-
Invert Selection command in the Selection orative grid object and choose Functions>
menu so that all faces that are not part of Current State to Object. This will create a
the decorative grid are selected. With the new object in the Object Manager that rep-
(Delete) or (Backspace) key these faces can resents the polygon-reduced version of the
now be deleted as long as the mouse cursor object. The original, including the subordi-
is placed over the editor viewport. What nated Polygon Reduction object, can now be
remains is the actual pattern of the decora- deleted. Use the Untriangulate command in
tive grid, as shown in Figure 2.101. The paper the Functions menu and activate only the
object used for the cover underneath was set Evaluate Angle option. The standard value
to invisible in order to get a better view of of 0.1° can be left the same. This function
the faces to be edited. ensures that when two triangles share an
The object of the decorative grid contains edge and the angle between them is smaller
a lot of unnecessary points, edges, and poly- than the angle specified in the dialog, they
gons. In the first step use Functions>Optimize are combined into a quadrangle. In the best
to delete Unused Points. You can leave all possible case, the number of polygons can be
three options activated and close the dialog cut in half. In this case, the majority of trian-
again with a click on the OK button. Then gles can be removed from the decorative grid.
add a Polygon Reduction object from the Now there are only triangular faces at the
Objects>Deformation menu and subordinate outer frame of the grid, as shown in Figure
it under the decorative grid. Figure 2.101 2.102. Select all faces of this frame and use
shows this step and the possible result. The the Melt function in the Functions menu.
Reduction Strength can be set to a very low The faces are combined into a single n-gon,
1%. The other options of the object should as shown on the right in Figure 2.102.
be activated as well. Because all the small After you’ve done this to all four sides of
polygons lie in one plane they can easily be the decorative grid you have to make sure
detected by the Polygon Reduction object that the normals point uniformly outward.
and filtered out. This is indicated by an orange color when
When you have the display of edges acti- the faces are selected. Select all polygons
vated in the editor viewports you can see the that are aligned differently and use Reverse
— Figure 2.103: Thickening the decorative grid by extruding with caps option.
and the preparations for the global illumina- dark and very desaturated blue, as shown in
tion through this object. Figure 2.105.
In addition to the Color and Specular
channels, also activate the Reflection and
Bump channels in this material. The Reflec-
The Materials of the Lantern
tion, at 15%, is moderate, but strong enough
to depict a lacquered surface.
For the lantern we will use simple materials
To make the surface look less smooth I
with intense colors and a slight wood grain.
loaded the Noise shader into the Bump chan-
We will start with the material for the roof
nel and used a Fire noise that is heavily scaled
of the lantern. It is rather dark, so benefits
in the Y direction but has a Strength of only
from a bit of reflection and highlight.
4%. It is intended to simulate the fine grain of
the wood surface. The highlight will be set
The Roof Material of the Lantern higher than usual so it looks appropriate for
the lacquered surface. In addition, the Blinn
Add a new material in the Material Man- shading model set in the Illumination settings
ager and load the Wood shader into the will support the gloss of the material. Since
Color channel. This shader can be found in the scene will be lit by global illumination, we
the Surface section. We will leave the stan- should already be thinking about the settings
dard settings, but reduce the Mix Strength for Generate GI and Receive GI. Because the
of the Color channel to 15%. This will surface is quite dark and the lantern will be
reduce the opacity of the Wood shader and quite small in comparison to the overall scene,
allow the color in the Color channel to we can deactivate the Generate GI and save
show through. For the color we will use a some render time. The receiving properties for
global illumination remain activated, however. By using the (C) key, convert the eight
You can see these settings in Figure 2.106. cubes located directly under the roof and the
Apply the material to the Symmetry objects ones that form the lower frame at the base
that comprise the roof construction of the plate of the lantern. In Use Polygon Tool
lantern. mode, select the two end faces of these cubes
and save this selection with Selection>Set
Coloring the Ends of the Cubes Selection. This creates Selection tags in the
Object Manager that don’t need to be
As a subtle decorative element I’d like to renamed because this will be the only saved
color the open ends of the crossing cubes at selection. Pull the newly created light mate-
the base and under the gable. We will create rial to one of the cubes in the Object Man-
another material and activate the Reflection ager and enter the name Polygon Selection
channel in addition to the standard channels. into the Selection field of the Texture tag in
For Color we use a warm but light color. the Attribute Manager. Now this material is
The brightness of the Reflection is set again only applied to the end faces of this cube.
to 15%. Figure 2.107 summarizes these set- Pull this Texture tag with (Ctrl) drag and
tings. Also, the generation of global illumina- drop onto the other seven cubes that already
tion has been deactivated. have this polygon selection.
160 Chapter 2: Advanced Workshops
— Figure 2.107: The material for the ends of the wooden sticks.
The Main Material of the Lantern The settings for the Bump channel remain
the same. As Figure 2.109 shows, there are
The main material used, besides the dark roof no changes in the other channels, either.
material, simulates red lacquered wood. That is no surprise since this material is basi-
Therefore, we can use a copy of the roof cally the same as the roof material, just with
material by using Copy and Paste in the another color. Pull the material onto all the
Material Manager. We will also use the objects without a material. If you already
Wood shader in the Color channel and created groups, then just apply it to the top
reduce its opacity to 15%, but this time we object and the objects subordinated under-
will pick a bright red. Then load the Ambient neath will automatically receive the material
Occlusion shader from the Effects group as well. The cubes with the colored ends
into the Diffusion channel of the material. receive this material, too. Just make sure
This will result in a sharper contrast between that in the Object Manager the Texture tag
the wood elements of the lantern. We of the light material is to the right and there-
will leave the standard settings for now. Test fore hierarchically above the red wood mate-
renderings will show if we will need to adjust rial. Otherwise, it would be covered, despite
the Maximum Ray Length. The Reflection of the polygon selection.
15% is the same as in all the other materials.
Figure 2.108 shows all these settings again.
Lighting an Outdoor Scene 161
— Figure 2.108: The material for the main body of the lantern.
The Paper Wall Material shader. With the Radius value and the mid-
point coordinate Start, a spherical space is
The texturing of the paper walls of the lan- defined within an object that will be colored
tern will be a bit more difficult. They are sup- with the gradient. The center of this sphere
posed to look as if a tea light is illuminating receives color values from the left end of the
them from the inside. We will start again gradient, and the outer areas are represented
with a new material and deactivate the Color by the colors from the other end of the gra-
channel. The material will be defined primar- dient. Depending on the size of your paper
ily by its illuminating properties. Therefore, wall object, set an appropriate value for the
activate the Luminance channel and load the Radius. Test renderings are necessary to
Gradient shader into it. The shader will gen- determine the size and intensity of the light
erate a circular brightness gradient that looks spot. In my case I set the Mix Mode of the
like a translucent wall being lit from behind. Luminance channel to Multiply to make it
It would be even better if the light source easier to color the illumination and to control
were to have a three-dimensional range and the channel’s brightness.
able to be moved within the four sides of the By comparison, the settings for the high-
Paper object. Then the flicker of a candle light and the reflective properties are rather
inside the lantern could be simulated. traditional, and can be seen in Figure 2.110. It
This effect can be precisely simulated will become interesting on the Illumination
using the 3D Spherical type in the Gradient page since, contrary to the other materials,
we will activate only the generating proper- animation. The Start vector in the dialog of
ties regarding the global illumination. I’ve the Gradient shader is responsible for this
entered a relatively large Strength value of effect. It defines the center of the shader cal-
1500%, which was determined from test culation. In order to not have to painstakingly
renderings. animate this by hand, we will use a nice fea-
As shown in Figure 2.111 Oversampling ture. By using the Vibrate tag, CINEMA 4D is
should be activated as Sample Mode because able to change objects in cycles or randomly,
this material will mainly be used to help illu- based on their position, rotation, or size.
minate the scene. The same figure also shows
you the look of the lantern. I combined the Random Vibration with XPresso
two cubes that built the roof, made polygon
selections for the faces on the bottom, and We will create a new Null object from the
applied the red wood material to those selec- Objects menu, right click on it in the Object
tions. This is just a small detail that doesn’t Manager, and assign a Vibrate tag from the
necessarily have to be done. CINEMA 4D Tags list. In the Vibrate tag select
the Enable Position option and set the three
The Flickering of the Tea Light Amplitude numbers that define the maximum
movement of the candlelight. As you can see
As previously mentioned, we used the Gradi- in Figure 2.112, I decided to use 40 units each
ent shader in a special 3D mode so a spherical in the X and Z direction and 30 units along
brightness gradient would be calculated. In the Y axis. This defines the range of move-
order to make this appear realistic, the posi- ment of the Null object during the random
tion of the gradient should change during the position change. The Frequency controls the
164 Chapter 2: Advanced Workshops
though, and combine the parts of the lan Important here is the variation of the stones
tern, and also the Null object, with the so there is no visible repetition in the stairs.
Vibrate tag in a new Null object. You can We will start in the top view, the XZ
use the Select All function in the edit menu view, by creating several stone profiles from
of the Object Manager and then select Group spline curves for one step. I decided to use
Objects in the Objects menu of the Object the Akima spline because it can generate
Manager. Then save the scene. rather tight radii and we don’t have to bother
with adjusting tangents. You can use another
interpolation method if it suits you better.
Modeling the Stone Stairs Figure 2.115 shows my complete step and
how these splines, subordinated under an
Since our scene depicts a climb up to an old Extrude NURBS object, generate a massive
temple, we need to model the missing stairs object. The length and width of the step
that will be illuminated from the previously shouldn’t be too short. If the step ends up
modeled lanterns. These stairs should be being too long, the ends can be cut or hidden
made out of roughly chiseled stone blocks. later. The same is true for the extent of the
166 Chapter 2: Advanced Workshops
— Figure 2.115: Modeling the stones of one step with extruded splines.
extrusion. Make the step a bit higher than key. Because of the hierarchical use of the
needed. In order to save some polygons, you splines by the Extrude NURBS, not just one
only have to create a rounded cap for the Polygon object is generated, but a group
top of the step, as shown in Figure 2.115. that contains a new Extrude NURBS object
Make sure that at the Extrude NURBS the for each spline. Select all these Extrude
Hierarchical option is activated so all splines NURBS objects and convert them with the
are used. Increase the Subdivision value to (C) key. The now-converted objects still con-
get additional faces at the sides of the stones. tain separate objects for the caps and round-
We will use them in a moment to further ings. After selecting all of these objects, with
deform the stones. the use of Functions>Connect, we will
finally get a single Polygon object. All other
Deforming the Step Individually groups can be deleted. After that, use
Functions>Optimize and apply the standard
If necessary, correct the gaps between the settings by clicking on the OK button. The
stone blocks so there are no large spaces and duplicate points located at the edges of the
convert the Extrude NURBS with the (C) roundings and caps are then optimized and
Lighting an Outdoor Scene 167
Create six steps with different stone olygons to fit into the spaces between the
p
arrangements using this method. Figure stones, as shown in Figure 2.119. You could
2.118 shows how they might look in the end. use a Polygon object from Objects>Primitive,
Note that the steps are overlapping slightly convert it with the (C) key, and adjust its
at the base. That way, slivers of light points. To extend this face you could use the
between the objects can be avoided. For Knife tool or Extrude tool from the Struc-
each step add a large cube that is spanned ture menu. Make several copies of these
across the whole width of the step. Scale the objects and place them using your own judg-
cube so that the stone blocks enter the cube ment. Then select all of these single objects
at the front and tread sides. We will use this and combine them with Functions>Connect
cube later to simulate the material between into a single object.
the stones. This could be dirt or cement, for
example. The Hair Object
— Figure 2.119: Basic surfaces for the growth of grass between the stones.
Lighting an Outdoor Scene 169
the hairs. Many tools of the Hair module but they are more like the intermediate points
exist to manipulate these Guides, such as a of splines and therefore define the curve of
virtual brush, comb, and scissors. In our case, the hairs during rendering. The more Segments
though, we don’t have to worry about the that are used, the better the hair will look—
guides. In the Guides part of the Hair object especially longer hair—in the final output.
dialog, set the Length so that hairs are cre- However, this also uses more memory and
ated that are in proportion to the steps. The causes longer render times. In our case we will
Segments value indirectly determines the not use hairs, but instead Polygon objects that
stiffness of the hairs that can be animated the Hair object can generate as well. Take a
later. The fewer Segments the guides have, look at the Generate section of the Hair dia-
the less they react to the movement of the log that is also shown in Figure 2.120. In the
object on which the hairs grow, or to outer Type menu you can pick the desired shape of
influences like gravitation. A value of 5 is the hair. Flat means the generation of poly-
enough so that the grass blades will not be gon strips, which is exactly what we need to
too soft or flexible. depict blades of grass.
In the Root menu you can determine where
the Guides are generated from. In the Polygon The Hair Material
setting the guides are automatically spread
across the entire available surface of the The shape of the hairs is influenced by the
applied object. In the Hair section of the dia- mentioned Guides, which influence the physi-
log, the Count value is interesting since it con- cal behavior of the hairs and the general
trols—as you might already know—the number growth direction. An equally large influence
of hairs generated during rendering. You on the look of the hair is the Hair material. It
shouldn’t be bothered by the name Hair. Hairs is responsible for the coloring and a range of
can take on multiple shapes and can even be shapes that the hair can take on. The mate-
instances of objects. Hairs also have segments, rial controls the length variations, thickness,
170 Chapter 2: Advanced Workshops
curliness, and frizz of the strands of hairs. To solve the problem of the coloring, for
The use of these properties is activated at the the moment we can create a new material
Basic page of the Hair material, as shown in and set the desired grass color in the Color
Figure 2.121. We will need the properties channel. Apply this material to the Hair
Clump, Frizz, and Thickness to give the object. The original Hair material remains
growth of the grass enough variety. In the as well, for controlling the shape of the
preview of the Hair material you can see hair. Figure 2.122 shows as an example the
immediately the influence an activated option first step and how a test rendering of
has on the hair growth. Playing with the set- the grass clump could look. Now you could
tings is a must. As you can see in Figure increase the Count of the grass blades in
2.121, I worked with a Thickness at the Root the Hair object. You should also pull the
of 2 units. The Tips are tapered to 0.5 units. faces on which the grass is growing lower
The Color and Specular settings have no so they are hidden by the cubes or stones of
influence on the display of the grass hairs the steps.
since we don’t work with standard hairs, but In Figure 2.123 you can see the entire hier
instead the Flat type. We will take care of archy of the stairs scene and what settings
that later. The same is true for the Illumina- I applied for the number of grass blades. One
tion settings of the Hair material, as shown thousand blades sounds like a lot, but they
in Figure 2.122. These parameters are also are balanced out by the many small clumps
only of interest with real hairs. and the number of steps.
— Figure 2.125: Transferring color values from the hair material to the polygon hair shader.
Lighting an Outdoor Scene 173
deactivated. In return you gain access to sev- The Materials for the Stairs
eral parameters for controlling the gloss
properties. For texturing the stairs I will again use bit-
To give the grass clumps more variety map textures that I found at www.cgtextures
you should move forward, one frame at a .com in the categories Ground and Stone/
time, in the animation. Use the (g) key sev- Rock. You can download a certain number
eral times to do so. You should be able to see of textures every day free of charge or, for
how the grass blades are bending down a small fee, get an unlimited download.
because of gravity. If you go too far in the Which texture to use for the materials of
animation, use the (shift)+(g) keys to return the stairs is up to you and isn’t that impor-
to the beginning and the original position of tant for the following steps. The image tex-
the hairs. When you see a shape you like, use tures I have used can be found with the
the (C) key to convert the object. You will scenefiles. Many thanks to Marcel Vijfwin-
get a normal Polygon object that contains all kel from www.cgtextures.com for letting
grass blades. The Hair material, including me use them. The textures are subject to
Texture tag, can now be deleted since all the licensing agreement of www.cgtextures
information about the shape of the grass .com, so take a look at the accompanying
hairs is implemented in the Polygon object. read-me file.
The coloring is now completely done by the I like combining the loaded images with
Polygon Hair shader. The newly generated the Filter shader in order to make quick
Hair Tangents tag behind the converted color corrections or to change the brightness.
hairs can also be deleted. Figure 2.126 shows an example of this method
— Figure 2.126: Material settings for the cube objects under the stone blocks of the steps.
174 Chapter 2: Advanced Workshops
in the Color channel. This material is meant it on the cube. You should also use a slightly
to be used for the large Cube objects that different position for the texture projection
run along the entire width of the steps and on each step to avoid repetition. In the Tex-
extend a bit on the left and right of them as ture tag, the Tile option has to be active as
well. These objects are intended to resemble well so the material covers the whole object,
forest soil covered with leaves. Because the despite its small projection area.
image is too bright I also used the Diffusion
channel. It will darken the material in an The Basic Material of the Stones
irregular manner. The image is used in the
Bump channel as well, but this will not neces- We will cover the stones with a more complex
sarily result in a realistic roughness of the combination of three different materials that
surface. However, this isn’t always the goal. overlay each other with alpha parts. By us
It is often more important that the Bump and ing this technique, visible repetitions can be
the used image in the Color channel are avoided. We will start with the basic material
synchronized and that the structures relate of the stones and create a new material. Here,
to each other. All other settings in the mate- too, I used a texture from www.cgtextures
rial are pretty common and can be seen in .com that was loaded into a Filter shader in
Figure 2.126. the Color channel. I reduced the opacity of
We can simply pull the material onto the this material, using a Mix Strength value of
cube, since it already has UV coordinates 25%, and left a dark gray in the color settings
applied to it. This would cause a stretching of as the dominant color.
the material, though, which wouldn’t fit to As can be seen in Figure 2.128, I loaded
the structure of the image. Therefore, it is the Ambient Occlusion shader from the
better to select Cube mapping after applying Effects group into the Diffusion channel as
the material, since it can be easily positioned well. This will generate more contrast between
with the visual aid in the Use Texture Axis the stones. The Bump channel of this material
Tool mode. Figure 2.127 shows the described will not use an image this time, but a custom-
settings in the Texture tag and the visual made pattern instead. We will begin by load-
positioning aid in the editor. Use the Move ing two Noise shaders into a Distorter shader.
and Scale tools in Use Texture Axis Tool Load the Distorter shader from the Effects
mode to adjust the texture the way you want shader group into the Bump channel and fill
the Texture and Distort fields in these shad- Y axis. The remaining settings and the choice
ers with Noise shaders, as shown in Figure of noise pattern were rather random.
2.128 on the right. The result of this distortion is a com-
The Distorter uses the brightness varia- pletely new pattern that received additional
tions of the Distortion texture to distort the details and contrasts that didn’t exist in the
shader or image in the Texture channel. You single shaders. Figure 2.130 shows a large
can control the amount of the distortion image of the distorted shaders.
with the X, Y, and Z sliders as well as with The Specular and Illumination settings
the Strength slider in the upper part of the are again of a simple nature. The highlight is
dialog. There are also several distortion types wide and flat, since the stones are not sup-
available. I used the standard settings and posed to be wet or polished. For the shading
slightly increased the distortion, only in the Y model I used Oren-Nayar since it is best
direction, to 18%. suited for rough surfaces. Apply this material
You can see the settings I used for the to the lowest step and select the Cube map-
two Noise shaders in Figure 2.129. This is just ping again as the projection method. In Use
one possibility and is not set in stone. The Texture Axis Tool mode, adjust the size
structures should only be stretched along the and position of the texture to your liking.
176 Chapter 2: Advanced Workshops
— Figure 2.129: On the left is the texture noise, on the right, the distortion noise.
it in the Object Manager. You can also select After activating the camera, these icons con-
this camera in the Cameras menu of the per- trol its position and orientation.
spective viewport under the entry Scene
Cameras. In any case, this activates the cam- Placing the Lanterns
era and will be used later for the final ren-
dering. In the dialog of the camera in the The lanterns should be placed on the left
Attribute Manager, I decided to use a Focal and right of the stairs. In order to not create
Length of 50. It could be necessary to move and place the lanterns manually, we will add
the camera away a bit from the stairs in two spline curves, with any interpolation,
order to restore the original distance and that will follow the course of the bent stairs
viewing angle. Use the navigation icons on along the left and right sides. Make sure
the top right in the perspective viewport. that the distance between the spline and the
182 Chapter 2: Advanced Workshops
— Figure 2.140: Using a spline curve as a positioning aid for the lanterns.
errors in the XRef scene, then you can open The Info section of the XRef shows gen-
the lantern scene with the Edit Scene button. eral information about the loaded scene. You
With animated objects or expressions in the can see the memory use and the number of
XRef scene, you should click on the Take Ani- included objects. Important here is the file
mation button after loading the scene. This is setting for the frame rate of animated scenes.
the case with our scene, so therefore use the It should correspond with the settings in the
button after loading the lantern file. That scene where the XRef object is used. Other-
way, you can influence the course of the ani- wise, this could cause a slower or faster ani-
mation, for example, to change the timing so mation. The lists with the columns XRef O
the lanterns don’t flicker all the same way. and XRef M show the objects and materials
The buttons Reload Scene and Reload All contained in the loaded file. You can pull a
are only important if the XRef scene isn’t material from the XRef M list and apply it di-
saved on your computer. Otherwise, the XRef rectly onto an object in the Object Manager.
object updates itself automatically when Select the XRef object and choose Func
changes occur in the referred scene. tions>Duplicate, as shown in Figure 2.142.
With the settings in the Pivot Matrix, Set the mode to Along Spline and pull the
you can change the position and size of the spline located on the left of the stairs into
XRef scene. If the lantern appears to be too the Spline field of the Duplicate dialog. Use
small or too big in the stairs scene, then you the Apply button to generate the desired
can work with the Size values to correct that. number of XRef copies. As long as the
In our scene it would be advisable to do this Duplicate tool is active, you can adjust the
in the original file, since the paper material Copies value to control the number of lan-
with its 3D gradient would have to be terns. I set the value so that at about every
adjusted to the changed size as well. A scaling second step a lantern is placed. In order to
of the object wouldn’t automatically scale control the orientation of the lanterns bet-
the shader. ter, you can activate the Enable Rotation
see that I changed the structure of the cube. this category is the Ivy Generator by Thomas
This is necessary since we will edit this object Luft. This program enables you to grow ivy
in another program that can only handle tri- on any geometry with the push of a button.
angular faces. Therefore, all quadrangles have Many parameters for adjusting the size and
to be exchanged with two triangles. Don’t density of the leaves are available and make
worry, because there is the Triangulate tool this free program indispensable. The current
in the Functions menu that will do the job versions for Linux, Windows, and MacOS X
for us. can be found at http://graphics.uni-konstanz
The deformed and triangulated cube now .de/~luft/ivy_generator/. The software works
has to be saved as an OBJ file. The best way correctly only with triangles. In addition, all
to do this is to use the Copy command in the polygon normals should point outward. This
Edit menu of the Object Manager and select is automatically the case with our converted
File>New in the CINEMA 4D layout. Then, cube. The objects should have a simple geo
using Paste in the Edit menu, put the object metry so the calculations of the Ivy Genera-
into a new, empty scene. Now you can save tor can be completed faster. The program
the object with File>Export>Wavefront as has to do several collision calculations of the
an OBJ file. plants, thus the simpler the geometries are,
the more precise these calculations will be.
The Ivy Generator of Thomas Luft With the program open, use the import
obj + mtl button to load our deformed cube
The modeling of organic shapes like plants geometry. You can find this button in the
and trees can take a lot of time. There are Scene area of the program, as shown in Figure
many special solutions for this kind of ob 2.147. Use the left mouse button to rotate
ject. You can use already-modeled trees and the 3D view. By holding the (Shift) key at the
bushes, or so-called plug-ins, or independent same time, you can rotate around the center
programs specialize in the generation of of the viewport. The left mouse button can
such 3D objects. A very useful program in be used in combination with the (Ctrl) key to
Lighting an Outdoor Scene 187
move the view. Additional information about When you have achieved a course of the
the use of the program and the functions of tendrils you like, change to the Birth page of
its parameter can be found in the read-me the dialog and define the profile of the ten-
file accompanying the software. drils and the size and the density of the
The starting point for the growth of the leaves. Keep in mind that we might need to
ivy tendril is set with a double click on the use several ivy plants in the scene, so don’t
loaded geometry in the 3D view of the Ivy overdo it with the density of the leaves. Also,
Generator. You can see the point marked in try to get the size of the leaves to be in pro-
green in Figure 2.148. With a click on the portion with the size of the mountainside,
Growth button in the Growing part of the which can be used to estimate the scale in
dialog, the growth of the tendrils is started. our scene.
They are calculated based on the settings on You can experiment with the settings
the Growing page. This is not yet the actual without having to recalculate the tendrils
geometry of the tendrils, but the growth every time. A click on the Birth button uses
paths of the tendrils. When the desired com- the existing tendrils for the changed Birth
plexity and expansion of the plant is reached, settings. Figure 2.150 shows a possible result
click on the Grow button again to stop the for the virtual ivy.
calculation. Figure 2.149 shows a possible The only thing left to do here is use the
result. If you don’t like your result, just export obj + mtl button in the Scene part
change the parameters and double click on of the dialog to save the 3D geometry of
the model again to create a new starting the ivy. Figure 2.151 shows this final step.
point for the calculation, then click again on The OBJ format can be opened again in CIN-
the Grow button. EMA 4D without any problems. If you like,
188 Chapter 2: Advanced Workshops
— Figure 2.150: Settings for the number and size of the leaves and tendrils.
you can generate and save many different textures offered at http://graphics.uni-konstanz
ivy plants for our mountainside. Then later .de/~luft/ivy_generator/. The creator of these
you will have a choice of several different textures is Tim Ellis. These materials contain
plants and can pick the best one. color bitmaps, Normal, and Alpha maps. Figure
2.152 shows how you can use these images in
the leaf material.
Creating the Environment of the Scene
Texturing the Ivy
Use File>Merge to load the OBJ file with the
ivy into the stairs scene of CINEMA 4D. The The color texture belongs of course in the
loaded image should be the right size and Color channel, where the coloring of the
at the right location in the scene. If that is leaf can be adjusted with the Filter shader.
not the case, check the settings at Edit> The Normal image goes into the Normal
Preferences>Import/Export for loading and channel and will simulate fine leaf structures.
saving Wavefront files. Both values should be The alpha image will be loaded into the
identical. If necessary, scale the new objects Alpha channel of the material. Make sure
manually and move them to the correct that the Invert option is checked, since the
position. material system of CINEMA 4D works with
The ivy should already contain Polygon the opposite brightness of the texture
selections, which will make it easier to apply being used.
materials to the leaves and tendrils. You can Because the leaves are very small in com-
create your own leaf texture or use the leaf parison to the overall scene, the Generate GI
Then convert this sphere with the (C) key to should be oriented with its surface facing the
a Polygon object and change to Use Point scene and should have a Compositing tag
Tool mode. Select and delete some points so with deactivated Shadow options applied to
that a shape like the one shown in Figure it. I also activated the Compositing Back-
2.159 is created. This object is now used as a ground option so no shading appears on the
reflector for the light beams that will be sent disc. The disc has to be positioned slightly
into the scene by the sky. Because of this behind the light source so it doesn’t cover
geometry the light beams aren’t lost, but are, the light. The purpose of this object is to act
when the diffuse depth is set large enough, as the reflection of the sun onto our reflec-
reflected to the stairs and the lanterns. tive objects. The lacquered materials of the
lanterns will benefit nicely from that.
Simulating the Sun
Defining the Depth of Field
A general problem of global illumination is
that it is often difficult to generate high- Scenes like this can benefit from a slightly
lights. This can only be prevented by using blurry background. It gives the image more
high-resolution HDR images. In our case, we realism and depth when this effect is used in
receive the illumination exclusively from a a subtle way. Select the Camera object in our
rather dark 24-bit image and some illuminat- scene and take a look at the Depth section of
ing faces of the lanterns. Therefore, I added a the dialog in the Attribute Manager. The
normal Point light to the scene and placed it Target Distance defines the area in front of
where the stairs leave the image on the top the camera that is supposed to be sharp.
left. The right side of Figure 2.160 shows a With Rear Blur active, the Start and End
view of the scene from the position of the values define the area behind the Target Dis-
new light source, to give you a better idea of tance where the blurriness is slowly increased.
its location. I will give the light an intense With the distance Target Distance + End,
orange color, 100% intensity, and no shadow. the blurriness is at its maximum. Since all
I also deactivated the options for Diffuse and this is a bit abstract, there are additional
GI Illumination. Only the Specular option handlers and guides for this effect in the
stays active so this property can be added to editor viewports. In Figure 2.161 they are
the scene. As you can see in Figure 2.160 pointed out by arrows. You can see that the
I also subordinated a Disc primitive, under image remains sharp up to the first step and
the light source, which also receives a mate- then becomes blurry toward the end of the
rial with an intense orange color. The disc stairs.
Lighting an Outdoor Scene 195
Rendering and Saving the Scene passes. Only then can fast corrections be
made to the shadows, the sharpness of reflec-
Now we get to the Render Settings. Gener- tions, the depth of field, or the intensity of
ally, it is beneficial for the postproduction the global illumination without having to
process if you save the images with multiple render the image all over again. Therefore,
196 Chapter 2: Advanced Workshops
I will add through the Multi-Pass button the become too bright and would not have
channels Blend Channel, Specular, Global enough contrast.
Illumination, Reflection, and Depth. As you As you can see in Figure 2.163, I used gen-
can see in Figure 2.162, I activated in Blend erally low and weak settings for the GI. This
Channel all image properties that aren’t cov- helps to reduce the render time and gives us
ered by the other Multi-Passes. That way, we good results with our scene. As a counterbal-
can mix components with the image and ance, though, I activated the Details Enhance-
adjust them to our liking. ment option so I don’t lose too many details
In the Save settings, define the file path of the image.
and the file format. The Photoshop or After some color corrections and blurring
BodyPaint 3D format is generally used since of the depth of field, the result looks like
they can handle multiple layers and apply that in Figure 2.164. The lighting mood is of
the correct layer settings to put the image course heavily influenced by the environ-
together again from single passes. ment. You could remove the fake sun, the
reflector sphere, and the bent sky plane again
and use the Sky object exclusively. Figure
The Global Illumination Settings 2.165 shows a possible result with the exclu-
sive use of the Sky object for the illumination
As for the global illumination, I decided to and depiction of the sky.
use the IR mode since our sky doesn’t enclose
the entire scene and the Sky Sampler wouldn’t Using the Sky Object for the Lighting
be precise enough. A diffuse depth of 2
should be sufficient to create enough diffuse In daytime situations you have to remember
samples. I increased the Primary Intensity to to modify the material for the illuminating
300% so the scene doesn’t end up too dark. paper of the lanterns. I deactivated the Lumi-
This is a result of my test renderings. The nance channel completely and activated the
Gamma value, on the other hand, was lowered Color channel again. Also, the Sample Mode
to less than 1 so I could achieve more image in the Illumination settings has to be set
contrast. Otherwise, my stairs would have back to Normal.
Lighting an Outdoor Scene 197
transition to the horizon disappears and is from the horizon. I like that look and used it
replaced by a sort of colored fog, which looks to end the clouds earlier and blend them into
more natural. When the brightness is moved a fog. You can see, in Figure 2.168, another
closer to the left side of the gradient, this lighting mood that was calculated with an
blending starts earlier, at a greater distance even lower sunset by the Sky object.
— Figure 3.2: Settings for the playback behavior of animations in the editor.
The Animation Palette and the The actual moment where the animation
currently resides is shown by the green cube
Editing of Animations
(5) and by a numerical value (6). You can
also enter an image number to which you
want to jump.
A basic requirement for the creation of an
In the area marked with the letter A in
animation is an overview of the necessary
Figure 3.4, you will find the functions for
amount of time and the possibility to move
playing the animation forward and backward
within that time. For this purpose, in the
within the editor. You can also move image
area between the editor viewports and the
by image within the animation or jump to
Material Manager you can find several func-
the beginning or end of the animation. The
tions for navigating within the animation,
icons shown in area B can generate key-
playing the animation, and also recording
frames. The symbol with the key within the
keyframes. Figure 3.4 shows these functions
red circle activates the recording of key-
in detail. The timeline ruler (1) shows a sec-
frames. The type of keyframe is set with the
tion of the total number of available images.
icons in area C in Figure 3.4. So if you would
The numbers of the first and last image in like to record the position of an object in
the timeline ruler can be set in the fields the animation, deactivate all symbols in this
(2 and 3). These minimum and maximum group (C) except the one for movement,
numbers regulate how much space you have then click on the record button with the key
available for the animation. If you enter a 0 in group B. The icons in group C can be com-
in field #2 and a value of 100 in field #3, bined by clicking on them. You should only
then you have a total of 101 images avail- activate the symbols that you want to ani-
able. At a frame rate of 25 images per sec- mate, though. Otherwise, the clarity and
ond, this would be four seconds. These values playback speed suffer. The loudspeaker sym-
can be changed anytime, even if you already bol (D) activates the playback of loaded
started setting keyframes. sound tracks when the animation is played.
The powerslider (4) controls which part The loading of such sound tracks, which we
of the animation can be seen in the timeline will discuss later, must be done in the time-
ruler (1). This powerslider can be scaled by line. You already know the button at the let-
pulling on its ends. This results in a zoom to ter E. Besides the general settings for the
a certain time section of the animation. The frame rate, you can also find here settings
movement of the entire powerslider to the for the interpolation between the keyframes.
left or right allows you to see earlier or later The standard setting is a spline interpolation
sections of the timeline ruler.
— Figure 3.4: The animation palette and the different icons for recording keyframes.
204 Chapter 3: Animation Techniques
that generates a soft transition between val- complete and can be viewed by using the
ues of neighboring keys as well as an auto- play button.
matic ease-in and ease-out behavior. For an
object that moves from point A to point B, it
will cause the object to start slowly, then Editing Keyframes
speed up, and slow down again before the
ending position is reached. The generated keyframes are not always
placed correctly. Maybe you used the wrong
values for the keyframes or later want to
Parameter Keyframes change the distance between the keys to
make the animation run faster or slower. In
Perhaps you already noticed the circles in these cases take a look at the timeline ruler.
front of the parameters in the Attribute Keyframes are shown there as blue squares,
Manager. These can be used to create key- as seen on the upper left side of Figure 3.6.
frames and animate these parameters. Fig- With a click on such a square, the keyframe
ure 3.5 makes this clear, using the example can be selected, causing the square to change
of a Sphere primitive. In order to enlarge the its color. Now you can see and edit the set-
sphere during an animation, the Radius value tings of this key in the Attribute Manager.
of the sphere has to be animated in the This is shown on the right side of Figure 3.6.
Attribute Manager. First, jump to the point There you can see the Key Time and the Key
in time where the change is supposed to Value, as well as the Interpolation, which is
start, then make a (Ctrl) click on the circle in used for the calculation of changes between
front of the Radius parameter. The result can neighboring keyframes.
be seen in the middle of Figure 3.5. The circle If an animation needs to be scaled or
is now solid red, indicating that at the cur- moved, then multiple keys can be selected in
rent point in time, a keyframe exists for this the timeline ruler. Simply select the neces-
parameter. When you move back in time, sary keys by creating a frame selection with
the circle changes its appearance to having a the mouse in the lower part of the timeline
red border. This means that the parameter ruler. Figure 3.7 shows this highlighted selec-
has keyframes assigned to it, but at the cur- tion on the top left. By clicking and holding
rent point in time there is no keyframe. Move the mouse button in the highlighted area the
the time slider manually, or by entering a keyframes can be moved together to make
value, to the end of the animation and the animation occur at an earlier or later
change the Radius value so the sphere is time.
enlarged. This change has to be made perma- At the ends of the selection strip there are
nent by setting a new key, so make a (Ctrl) small handlers, marked by arrows in Figure 3.7.
click onto the circle. The animation is now By pulling on these ends, the enclosed animation
can be lengthened or shortened. The animation move the keyframes, change their value, or
will then be slower or faster, since the distances delete them. Complex animations would get
between the keyframes change. This can be too confusing, though. The Timeline is better
even more precise when the selection strip is suited for this task.
fitted exactly to the enclosed keys. Hold the
(Shift) key and pull the handler of the selection
in the direction of the next enclosed key. The
selection strip will then snap to it. The result, The Timeline
after snapping the two handlers to the keys, is
shown on the bottom left of Figure 3.7. The
(Shift) key can also be used to move the selec- The Timeline can be found in the Window
tion strip without moving the enclosed keys. menu of CINEMA 4D or in the Animation
A right click on the selection opens a con- layout, which is better suited for working on
text menu that can be seen in Figure 3.7 a computer with just one monitor. The switch
as well. There you can find the common between layouts can be done in Window>
commands for Delete, Copy, and Paste of key- Layout.
frames. For the copying of keyframes it is The Timeline combines the display of
enough to just hold the (Ctrl) key and pull the materials, tags, and objects with the display
keys with the mouse. Simple animations can of keyframes and their interpolation curves.
be easily handled with this method. You can That way, you get a complete overview of
206 Chapter 3: Animation Techniques
the animation of your scene. Figure 3.8 shows also shows the interpolation curves in the
an example of the Timeline in an animated right part of the timeline, which are shown
scene. In the following section I will refer to beneath the keyframes, and the graphical
the number labels used in the figure. depiction of the value change between keys.
As you can see at number 1 on the top This display only exists where an interpola-
left, there is a listing of all the elements of tion is used. At number 3 you can see key-
your scene, whether they are animated or frames for the visibility of an object when it is
not. When properties have keyframes assigned in the editor and during rendering. This prop-
to them that contain vector information such erty of the object has only three settings that
as position, rotation, or size, they can be dis- can’t be blended into each other. The object
played separately. You can see this in the fig- can only be visible or invisible; therefore,
ure at number 2. There, the animation of the there are no interpolation curves shown.
position of an object was expanded. The sin- The icons at number 4 of Figure 3.8 allow
gle components for the X, Y, and Z parts of you to switch between different layouts of
the movement can be edited separately. This the Timeline and activate special filters and
searches. The icons to the very right can be The Timeline also contains extensive
used for the movement and scaling of the settings for filtering and searching for certain
Timeline content. objects or groups of elements. You can find
these options in the View menu of the Time-
line at Filter. Quicker access can be achieved
Display Options by using the labeled icons in the upper right,
as shown in Figure 3.10. The magnifying glass
The Timeline normally works in Automatic (A) activates a search field that can be used
Mode, as the View menu in the Timeline and to search for the name of objects. The house
Figure 3.9 show. This results in the automatic symbol (B) activates a path entry. When you
display of all elements of the scene in the select an object with View>Set as Root, by
timeline. When you deactivate the mode, using the arrow symbol next to the path
you have to manually pull the objects from field you can browse up the hierarchy of this
the Object Manager into the Timeline in object. A click on the house symbol in front
order to see their animation and keyframes. of the path lets you jump to the uppermost
You can also create connections to the other level. Then all elements are shown again
windows and managers, as shown on the based on their other settings.
right of Figure 3.9. Link View with Preview The eye symbol (C) opens an additional list
Range creates a connection between the that can be seen on the left of Figure 3.10.
powerslider and the timeline. The numeric There, the display of element groups or single
ranges are then identical, whether zooming types of objects, materials, or tags in the Time-
in or out or moving the view in the Timeline. line can be deactivated and then can no longer
The Link TL/OM Selection helps with working be found by the search function. In the exam-
on complex scenes because, in this mode, the ple in the figure, all tags, materials, and Render
objects selected in the Object Manager are Settings were turned off in the Timeline. Gen-
selected in the Timeline at the same time. erally, this makes sense for all elements that
This works in the opposite way as well. The are not part of an animation. This keeps the
Link View to Object Manager option shows Timeline less cluttered. The icon at the letter D
only the hierarchies and objects in the Time- enables an overview of Motion Clips. This only
line selected in the Object Manager. works in Motion Mode of the Timeline, though.
We will get to this mode in the following chap- end slowed down again. In a linear calcula-
ter on character animation. tion the car would show a constant speed
from the first to the last image of the anima-
tion and would be put instantly into motion.
Controlling the Interpolation The type of interpolation can generally be
set with the previously mentioned settings of
It would be too much work to set a keyframe the animation palette, or individually for
for every image of an animation, considering every keyframe. Therefore, select one or mul-
the way traditional cartoon and stop-motion tiple keyframes and look at the settings in
film work. Our goal should be to set up the the Attribute Manager, as shown in Fig
animation with the least possible number of ure 3.11. There you can select from the inter-
keyframes. This makes it much easier to edit polation types Linear, Spline, and Step. The
or manipulate. A keyframe animation always linear interpolation is well suited for mechan-
needs at least two keys, one for the start and ical animations where abrupt movement
one for the end state of an object or parame- changes occur. The Step animation keeps the
ter. The distance between these keyframes value of a key until the next keyframe is
determines how fast an animation will play. reached. Then there is a sudden jump to the
It also doesn’t make sense to always calcu- new value. It means that between the key-
late linear interpolated values between the frames, only the old value is being held. This
keyframes. Just think of a car that needs to interpolation method is useful for some me
move from A to B. The mass of the car has chanical animations as well, but is also used
to be set into motion, accelerated, and at the for the so-called Blocking of animations. In
The Timeline 209
these animations, only the important stages gents are also drawn inside the function
of an object are recorded as keyframes, to curve. When Auto Tangents is deactivated,
determine the correct time ranges and to be the tangent can be edited directly. As previ-
able to evaluate the timing of the animation. ously explained, each key can have its own
When the timing is right the keyframes are interpolation method. In this example, the
usually changed to Spline interpolation. selected key has a Spline interpolation and
The Spline interpolation is comparable in the neighboring keys have a Linear interpo-
its effect to a Bezier spline curve with its lation. When you zoom close enough to the
tangents. Here, the curves are only two- keys in the Timeline, you can see small sym-
dimensional, though, and controlled by the bols in the keyframes that indicate the inter-
values in the keyframes. When Auto Tan- polation method used without having to
gents is active, soft interpolations are auto- select the key. When spline and other inter-
matically calculated and the tangents are polation methods alternate, the Spline inter-
automatically oriented and scaled. The Clamp polation is valid only in the direction of the
option prevents the overshoot of curves. animation, which means to the right in the
Overshoot means that the curve overshoots timeline ruler. You can see this as well in
the set keyframe value. This can be annoying Figure 3.12.
when an object is to be placed exactly on top To work more exactly, you can use the
of another object. Every merging of one option for breaking the tangent, called Break
object into another would destroy the illu- Tangents. This allows you to move the left
sion of one solid object. When Auto Tan- and right tangent arms independently of
gents is deactivated, additional options and each other. As the names of the Lock Tan-
values are activated, as shown in Figure 3.12. gent Angles and Lock Tangent Length
With Left Time and Right Time the lengths options indicate, they lock the angle and
of the tangent arms can be set separately. length of the tangents. To avoid accidental
The same is true for the tilt of the tangents, changes of a keyframe value, there are the
which can be edited with Left Value and Lock Time and Lock Value options. These
Right Value. Zero Angle creates a horizontal options are also shown in Figure 3.12. With
tangent; Zero Length creates a tangent Mute the animation can be turned off
shortened to a 0 length. This is the same as between one key and the following key so
hard interpolation of a Bezier spline. As during playback there won’t be any changes
shown in the lower part of Figure 3.12, tan- of this value. Make Relative makes the
210 Chapter 3: Animation Techniques
— Figure 3.14: On the left is an F-Curve; on the right is a modification curve with the changed
F-Curve.
you can load the F-Curve state again, mak- a click on the circles, you then have the
ing it possible to experiment with several ability to lock an animation sequence or to
F-Curve shapes. block any manipulation.
This gives you the basic knowledge needed
for animating objects and parameters as well
Influencing Sequences as the adjustment of keyframes and interpo-
lation curves. Let us look at some examples
Besides the keyframes, whole sequences can of complex animations that often work with-
be controlled individually. Several icons that out using any keyframes.
can be used for this purpose are found to the
right of the element name in the timeline.
First, there is the filmstrip symbol. When it is
turned off, the animation of this element Animating with Dynamics
and all subordinated objects is not calculated.
That way, parts of the scene can be turned
off to improve the playback performance in The Dynamics module simplifies the anima-
the editor. As you can see in Figure 3.15, the tion of forces acting between rigid objects.
filmstrip symbol has three states. The first is A typical case would be a sphere that swings
yellow, which means that the element is fully on a spring up and down, or a cube that falls
animated, and the second is gray, which indi- onto a plane. In both cases the shape of the
cates that the animations are suppressed. The objects doesn’t change, but the movement
third is blue, which marks elements that are can be so complex that the recording of
animated, but there are subordinated objects manual keyframes would not be exact enough
whose animation is deactivated. and would take too long. The following
A click on the gray spot to the right of example shows how to create a pendulum
the filmstrip activates the Solo mode. When that bounces against two cubes, which then
it is active, all other elements in the anima- collide with each other.
tion are ignored. The blue color indicates the
different settings in the hierarchy, as demon-
strated in Figure 3.15. In the timeline as well
you can find a possible way to organize ele- A Work Sample
ments into layers. Use the gray button right
next to the name of the elements. In the The setting of the scene is quite simple. We
layer browser, which can also be opened with will start modeling the pendulum with the
creation of a new Sphere primitive. A radius
of 30 units should be enough, but that is not
really important for the next steps. You can
also keep the standard settings of the sphere.
This pendulum should be guided by two
strings or ropes. Figure 3.16 shows the desired
look.
the first string cylinder. Both cylinders are tions of movement have to be put upon the
then subordinated under the sphere. objects. For example, our pendulum is not
As you know, the local axis system of an supposed to change its position or be
object is used as the origin for rotations. rotated around other axes, the ones we
Since our pendulum is supposed to rotate used to rotate it away from its original
around the anchor points of the two cylinder position.
strings, we have to move the axis system of
the sphere to the appropriate position.
Convert the sphere with the (C) key to a The Constraint Tag
polygon object and change to the Use Object
Axis Tool mode. Move the axis system of the For such dynamic restrictions there is the
sphere up the Y axis until it arrives at the Constraint tag, which can be found after a
height of the upper cylinder ends in the front right click on the sphere under the entry
or side viewport. Then change back to the Dynamics Tag.
Use Model Tool mode to rotate the sphere, First use the button for Use Current in
including the subordinated cylinders, so the the dialog of this tag, as shown in Figure 3.19.
pendulum shows a move of 45°. Figure 3.18 This transfers the current position and angle
shows the desired result. The arrow points to values of the sphere to the tag. Then put a
the new position of the axis system of the checkmark in front of the values that are not
sphere. supposed to change during the animation. In
my case only the Rotation.B value remains,
which allows the swinging motion of the
Defining the Dynamic Behavior object around its Z axis.
The Constraint tag offers a Type menu
Dynamic calculations are influenced by sev- that can be used to transfer a continuous
eral forces and factors like friction, gravity, force or circular motion to the object. In our
and/or collision. This could result in inaccu- case, only the Joint type would be suitable
rate or even unpredictable animations. In since the movement of the pendulum is a
order to minimize this risk, some restric- result of its own weight and gravity.
Animating with Dynamics 215
only be achieved in the Full setting, where The object isn’t always sitting still at the
all faces are actually evaluated for collisions. start of the animation. With the v values you
In our case the Box setting should be suffi- can define a start speed. The speed consists
cient since we only expect collisions on the of X, Y, and Z values because speed doesn’t
front and back of the pendulum. The elastic- have only a value but also a direction. The
ity determines the amount of energy that same is true for the start force that is defined
will be passed on between colliding objects. at the letter F. This force only acts in the
My tests have determined that 300% is a fit- first image of the animation and can be used
ting value. You can start with a value of to push the object.
100%. The values for Static and Dynamic act The w values define the strength of the
like a brake. The Static holds an object on a start rotation, and the I values determine a
surface even if the surface is slightly tilted. torque. Just like the F force, this affects only
Only when the tilt becomes too much does the first image of the animation and could be
the object start to slide. At this moment the used to start, for instance, a carousel.
Dynamic comes into play because it only af
fects objects already in motion. Other set- Adding Two Cubes
tings on the Aerodynamics page take effect
only when the object is blown upon by the In order to put the collision detection of the
Wind object, which can be found in the pendulum to good use and so it doesn’t just
Dynamics menu of CINEMA 4D. The many swing back and forth, we will create two new
parameters define the buoyancy and the Cube primitives and resize them to a size
resistance of the object. This can be interesting fitting for the pendulum. I used a side length
should you want to animate an aircraft wing of 58 units. All objects used with dynamics
or a leaf with the force of the wind on it. In have to be Polygon objects. Therefore, our
practice, though, this can hardly be planned cubes have to be converted with the (C) key.
because of its unpredictability. The cubes should be placed in such a way
The start settings define the start state of that a collision with the pendulum is certain.
the object in the beginning of the simulation. Figure 3.22 shows a possible arrangement.
Animating with Dynamics 217
The Constraint tag can help the simula- The two cubes also need collision detec-
tion of the cubes, since the cubes are sup- tion so they can bounce off the pendulum.
posed to be positioned on a sort of table or Apply a new Rigid Body Dynamic tag to the
plane. We therefore can exclude the possibil- cubes and activate the Box Collision Detec-
ity of the cube being moved in the Y direc- tion, as can be seen in Figure 3.24. The box
tion. This again implies that the cube will shape fits perfectly to the shape of the
only be rotated around its vertical axis. As objects. The Mass Center can remain in the
you can see in Figure 3.23, you should use center of the cube this time. Further tests
the Use Current button again, provided that showed that the reduction of the Rotational
the cubes are placed at the chosen position, Mass to 10% gives us more dynamic results.
and apply a checkmark to the values Y, P, The cubes start to rotate faster when hit by
and B. Do the same with the second cube. another object at an angle or toward an
edge. This behavior depends on one’s individ-
ual taste, though.
We leave the Shape setting at Unlimited. Body object of the simulation into a force
The direction of the force is defined in the field. This can be used to deflect several
Field menu. With the Axial setting the grav- objects from each other, like billiard balls. It
ity works in one direction, for example, also might be used to avoid time-consuming
downward along the world Y axis. With the collision detections between objects. The
Radial setting the gravity would work spher- objects are, even before the collision, simply
ically, toward the center. This would be use- deflected from each other by their own force
ful for simulating the gravity of planets and field. The strength and direction of the force
the sun in the solar system. The Newton set- field can be individually set. You can see this
ting is a bit different; it turns every Rigid on the right side of Figure 3.25.
Animating with Dynamics 219
Our ability to achieve a dynamic simula- a blanket that falls onto another object. For
tion is still missing one element: the Solver this kind of simulation we now have the
object. You can find it in the Dynamics menu Clothilde function in the MOCCA module,
of CINEMA 4D. Subordinate all elements of which is better suited for this sort of simula-
the scene under this object, as shown in tion since it offers more settings.
Figure 3.26. Only that way does CINEMA 4D With the Energy Loss value, the buildup
know which objects are included in the simu- of movement or perpetual motion can be
lation. The time frame of the simulation is avoided because this value is continuously
controlled with the Start and Stop values. subtracted as a kind of friction from the
Make sure that the Stop value is large enough dynamic of the system. Detailed settings,
so that the simulation doesn’t end abruptly such as the EPS value, are important for the
during a movement. The precision of a calcu- early detection of collisions. The Epsilon
lation is determined by the choice of the value is added to the dimensions of the
Integration Method and the Oversampling. objects for the early detection of collisions
From the Euler to the Adaptive method the with fast-moving objects. If you experiment
calculations get more and more exact, but with quick movements, this value might have
also slower. Often the only thing that helps to be increased to avoid intersecting objects,
is to see whether the precision of a simpler despite the collision detection.
method is enough, or if a more complex The Collision Rest Speed can prevent the
method is necessary. The Oversampling de- slow submerging of objects when they are
termines the number of calculation steps. In positioned in a motionless state on top of
the setting Adaptive, Subsampling is avail- each other. The collision rest speed defines
able, which makes additional calculations at the lowest speed that an object must have
the critical parts of the simulation. The Soft until an additional force pushes it away from
Body method is meant especially for objects the neighboring object. We will prevent this
that are deformed during the simulation, like problem with our cubes by using the locked
Y axis, which renders the collision detection
with the floor unnecessary.
The Baking Frame Step is only of interest
for the so-called “baking” of the Simulation
object, which is the conversion of the simula-
tion into a sequence of keyframes. This has
advantages in connection with expressions or
when rendering over a network. The Baking
Frame Step defines the number of keyframes
created when the Simulation object is
converted to a keyframe animation with
Dynamics>Bake Solver. Baking Layer then
determines the layer in which the baked ani-
mation is saved.
don’t like the course of the simulation, then not converted to a Polygon object, but will
simply stop the animation and return to take advantage of its Perfect Sphere option.
frame 0. Deactivate the Simulation object by Do the same with the cubes. Subordinate
clicking on its green checkmark in the Object new cubes, with soft edges, under the origi-
Manager and move the cube to a new posi- nal cubes to improve the look. All new objects
tion. To fixate this position again, you have are set to be visible for the renderer and the
to open the Constraint tags of the modified old ones are set to invisible. Use the small
objects and use the Current Value button. dots behind the objects in the Object Man-
Then select Initialize All Objects in the ager to change the visibility settings, as seen
Dynamics menu. This informs the Simulation in Figure 3.27.
object about the changes, and it can be As you can see there, I added a Floor
turned on again in the Object Manager. object to the scene so the cubes don’t just
float in the air. It can be found at Objects>
Improving the Simulation Scene. Compared with a Plane or Polygon
primitive, the Floor object has the advan-
You probably noticed that our scene is still a tage that it automatically expands up to the
bit dull and without color. This is because horizon during rendering. There are also
dynamic simulations function best with low additional Boole objects under the dynami-
resolution Polygon objects. There is a trick, cally animated cubes. I used them to improve
though, to get around that. Just make the the otherwise boring shape of the cubes. The
dynamic objects invisible and replace them result of all this is shown in Figure 3.28.
with higher resolution objects. That way, the Create a copy of the cube, with the soft
simulation can still be calculated, but with edges, under the dynamically animated cube
simple objects that are replaced with more object. Enlarge the cube evenly by a small
complex models for the rendering of the amount. The best tool to use for this is the
animation. Scale tool in Use Model Tool mode. Then
Subordinate a new Sphere primitive under create a new sphere and place it in exactly
the pendulum and adjust its size and position the same position of the enlarged cube.
to the sphere of the pendulum. This sphere is Change the sphere radius so that only the
corners of the cube are still visible. This can under a Boole object, as shown in Figure 3.29,
be seen in the center of Figure 3.28. The you can then activate A subtract B. The
third element is a Platonic object, found in A object is the cube and the B object is the
the primitive objects as well. It is also placed group of the platonic primitive.
in the same position as the enlarged cube The result can be seen on the left in
and the new sphere. Figure 3.30. The Boole object removes from
For this we will use the Octa Type with the cube the volume between the sphere and
one Segment. You can see the shape on the the platonic primitive. If necessary, add more
right of Figure 3.28. Adjust the size of this pla- Segments to the Sphere in case the result
tonic object so that small segments of the appears too angular. I used a value of 60
sphere still protrude through its surface. When units. The right side of Figure 3.30 shows how
you subordinate the Sphere under the Pla- the Boole result looks, together with the
tonic primitive and group all three objects rounded cube, under the dynamic cube object.
— Figure 3.28: Combination of three different objects with the Boole object.
— Figure 3.30: Result of the Boole action and the combination with the rounded cube.
The Material of the Cube Corners which was determined with test renderings.
You can also leave it at 100% for now. The
As for the corners of the cube created by the Sampling Mode defines the precision of the
Boole object, we will think about something sampling during the Global Illumination
special. These objects are meant to have calculation. I decided to use the QMC Sam-
illuminating properties and therefore light pling. Tests with the faster Oversampling
the scene. I used a light blue in the Lumi- looked good at first, but then showed slight
nance channel and reduced the brightness in variations in brightness during the anima-
the Color channel. Shadows will not appear tion. The option Accurate Color became
on these faces when using such an intense available when QMC Sampling was selected,
illumination. but it isn’t needed here. The final result
Because this material is intended to emit would benefit from this option only if the
light, the settings in the Illumination part scene were to be lit by this material, with
of the material are very important. Fig just a part of the material visible to the
ure 3.33 shows these settings. The receiving camera. This would be the case if an HDR
of global illumination can be deactivated image in a Sky object were to illuminate the
because of the intense self-illumination. A scene, or with illumination by way of shad-
value of 500% increases the brightness in ers whose calculations depend on the view-
the rendered image to the desired level, ing angle.
224 Chapter 3: Animation Techniques
— Figure 3.33: Settings for the material of the corners at the cubes.
The Material of the Pendulum high 1000%. This is necessary since the
illumination is quite weak and will be ab
The pendulum should be made of transpar- sorbed by the transparency. As can be seen
ent glass and should glow from the inside. in Figure 3.35, I deactivated the receipt of
Therefore, the material is given an orange global illumination because transparent ob-
coloring in the Color channel and a red tone jects hardly benefit from this option.
with similar brightness in the Luminance
channel. As shown in Figure 3.34, the trans- Settings for the Light Source inside the
parency is set quite high, at 90%. Conse- Pendulum
quently, we do not need a visible refraction
and should leave it at the standard value of To intensify the glow inside the pendulum
1. We will apply a bright red as the Absorp- I inserted a new light source. Group this light
tion color. The center of the sphere will then source with the perfect sphere of the pendu-
have a reddish transparency and the edges lum and set the Type of the light to Omni to
will stay clear. depict a radial light source. In the General
I intentionally increased the Brightness of settings, deactivate the options for Diffuse
the Reflection to 300%. The majority of this and Specular so the light doesn’t take part in
brightness will be balanced by the similarly the illumination of the scene. Instead, acti-
strong transparency. Since this material also vate the Visible setting in the Visible Light
has illumination properties we will use the menu.
Sampling Mode of Oversampling. I set the As can be seen in Figure 3.36, you can set
generating of global illumination to a rather a random value for the Outer Distance on
Animating with Dynamics 225
— Figure 3.36: Settings for the light source inside the sphere of the pendulum.
the Visibility page of the light source dialog. majority of samples of another Diffuse Depth
You will see a preview of this distance in increase would disappear unused into the
the editor and should set it so the visible depths of the scene. Instead, we increase the
properties of the light are about twice as Gamma value to 1.5 to raise the overall
large as the sphere of the pendulum. brightness of the scene. The remaining set-
We can achieve a special effect when the tings for the Irradiance Cache can be left at
Use Gradient option is active. The colors on their standard values. Figure 3.37 shows these
the left side represent the position of the settings.
light source. The colors on the right will be A first test rendering in the editor can be
used at the outer edge of the light. With the seen in Figure 3.38. There you see the effect
gradient seen in Figure 3.36, a spectrum rang-
ing from an intense red to a dark violet then
to a desaturated red, the sphere will look like
it has a diffused light source inside. The addi-
tional illumination outside the sphere inten-
sifies the impression of emitted light.
The Emitter
the size of the emitter area, and Angle Hori- Simply subordinate more objects under the
zontal and Angle Vertical represent the emitter. It will then assign these new shapes
scattering angle of the particles after they randomly to the particles.
leave the emitter area. As you can see in
Figure 3.41, I used a small strip as the emitter
and have the particles leave it at exactly a Controlling the Flight Path of the
right angle. Particles
set as well, in this dialog of the Attributer and influenced. Figure 3.44 shows, on the
Manager. As you can see on the right side of right side, the modified behavior of the parti-
Figure 3.43, the particles are pulled down the cles and the positioning of the Wind object
moment they enter the gravity cube. Because within the particle stream.
of the high velocity of the particles, it is
not possible to generate a softly rounded
transition to a vertically sloped particle PyroCluster
path. I therefore added another force field,
the Wind object, which can be found in The PyroCluster functionality consists basi-
Objects>Particles as well. As the name sug- cally of two materials, which can be found at
gests, this object acts like a steady wind File>Shader in the Material Manager. I’d
along the Z axis of the Wind object. As like to create a sort of waterfall with the par-
shown in Figure 3.44, the settings are almost ticles and add some volumetric clouds to this
identical to those of the Gravity object. effect. We will start with a new PyroCluster
The Wind Speed can be used as a force material that you can open at the previously
field, making the particles take a more verti- mentioned menu in the Material Manager.
cal downward movement after the particles At the Global page of this material, you will
have been bent by the Gravity object. Make find the Preview button, which opens a
sure that the Wind object is large enough so window as shown in Figure 3.45. With the
that all particles of the stream are captured slider at the lower end, you can evaluate the
— Figure 3.46: Global settings of the When Use Age Effects is activated, you
PyroCluster material. can then control the size of the clouds with
the Radius gradient. With smoke, it is often
the case that the clouds become more diffuse
and larger with increasing height. This would
The Use Intersection option is important correspond to a gradient from dark to light
when fog or clouds are to be bordered by color values at the Radius. The Luminosity
normal polygon objects. The clouds are then gradient acts as a multiplier for the bright-
only calculated on the side where the particle ness of the clouds. That way, you can display
is located. The Ray Bias value can be used hot and bright gases that cool down over
if the result is not yet precise enough. Simi- time and become darker. The Color gradient
lar to the bias value of a soft shadow, it controls, at the same time, the color change
can be used to manually shift the calcu of the clouds between the birth and death of
lated intersection point between geometry a particle and the transparency of the cloud.
and cloud. Unfold the triangle in front of the Color gra-
dient and you will gain access to the Edit
Age Settings of PyroCluster Alpha option. When this option is activated,
the gradient changes its appearance and can
A big advantage of PyroCluster is that we be used for setting the transparency. With-
don’t have to manually animate the changes out this option, the gradient makes available
in the shape and size of the particles. They the normal color tabs that are used to adjust
can simply be controlled at the Age page. the colors within the gradient. The Color
The different gradients are related to the Mix gradient is used as an alpha mask to
lifespan of the particles. The left edge of blend between Color on the Global page of
the gradients is always identical to the mo- the PyroCluster material, and the Color gra-
ment when the particle is created. Figure dient of the age effect during the course of a
3.47 shows an overview of this dialog page. particle’s life.
234 Chapter 3: Animation Techniques
Defining Shape and Size of the Cloud shape other than the sphere, you can use the
Rotation values for the rotation of this
In the Shape settings you can define the shape. The Scale parameters are useful for
shape and size of the clouds. The volume of deforming the cloud shapes. The standard
the shape can be set as a sphere, cylinder, value is 1 unit in each direction. With a value
cube, or ring in the Shape Type menu. Depend- of 0.5 you can squeeze the shape along the
ing on your choice, there are then multiple chosen direction. In this example we will use
radii available to determine the size. When the Velocity Scale vector. The X part of this
the Preview option is active, simplified ver- vector represents the direction of travel of
sions of the cloud shapes are shown in the the particles. If these particles are supposed
editor. This is useful for the adjustment of to be spread out along the direction of travel,
the following parameters. Also note the value then the value has to be increased above 0,
for Max. Visible. It determines the maximum as shown in Figure 3.48. Depending on the
number of preview objects in the editor. speed of the particles, very small values are
Increase the value if necessary to achieve a enough for large spacings. Again, it is best to
more meaningful result. The material has to work in Preview mode to find an appropriate
be assigned to the emitter so PyroCluster value.
knows which particles are meant. Objects
that are still subordinated under the emitter Lighting and Shading of a PyroCluster
should be deleted. Cloud
As my settings in Figure 3.48 show, we
will use the sphere as our shape. Generally, it As you can imagine, volumetric calculations
is best suited for the simulation of clouds of smoke and clouds are quite complex. In
and smoke. The Use Particle TM option takes addition, depending on the density of a cloud,
the rotation of the Emitter object and trans- the interaction with light and shadow be-
fers it to the clouds. You could also activate comes important to achieve a realistic look.
Use Auto Rotation. This will make the Pyro- There are two dialog pages available just for
Cluster clouds align based on the direction the shading of the cloud surface. When Use
the particles are moving. If you selected a Illumination is active, light sources will influ-
ence the shading of the clouds. Also, be sure
to activate the options for illumination of
PyroCluster clouds in the Scene area of the
light source.
As you can see in Figure 3.49, you can
select different shading methods in the Mode
menu. The Diffuse mode is suitable for smoke
and clouds. The Ray Angle setting includes
the vector between the light source and the
cloud and delivers contrast-intense images.
This can be used for more dense columns of
smoke. The Bump mode works best for mas-
sive structures, like the depiction of lava.
The Self Illum. represents brightness that
is added to every pixel of the cloud, regard-
less of the illumination on the cloud. The
Trans. Illum. creates a softer transition be-
— Figure 3.48: Settings for the shape of the tween the transparent edges of the cloud
clouds. and the background color of the scene. With
Particle Effects 235
The Noise Structure in the PyroCluster With the Phase value, the fractal can be
Material rotated. With a keyframe animation of this
value, rolling clouds, for example, can be real-
The actual appearance of the PyroCluster ized. Gain defines the relationship between
clouds can be defined in the Fractal Type in opaque and transparent parts in the fractal. A
the Noise settings. The differences of the noise Gain of 0% results in a completely opaque frac-
patterns can be evaluated best in the editor tal. The Bias value acts in a similar manner but
with activated Preview at the Global page of influences the density of the fractal. Very airy
the dialog. Regularity controls the complexity fractals are created with a small Bias value.
of the pattern. The smaller the value, the more The values for Low Thres. and High Thres.
details are visible. With the Grow Radius you are similar to the clipping values in the noise
can control the scale of the pattern in ratio to shader and you can influence the number of
the size change of the cloud. With large val- holes in the fractal structure with them. For
ues, the expansion of the cloud also causes the adding holes, you will usually use the Low
enlargement of the pattern. Scale changes the Thres. and increase it moderately. The Color
size of the noise pattern, as you are already gradient can be released with the Use Color
used to doing with the noise shader. Peak option, which allows you to color the fractal.
Blend lets you accentuate either the core The left edge of the gradient colors the
region or the outer areas of the fractal. Posi- denser parts of the fractal and the right one
tive as well as negative values are possible. colors the transparent areas.
Detail determines the maximum number of Static Pos places the origin of the fractal
steps for the calculation. More Detail means a calculation in the screen coordinates. The
more complex depiction of the noise structure, particles then move through a set noise pat-
but also a longer calculation time. Values tern. Without this option, each particle
between 2 and 6 should be enough in most becomes the center of the fractal. When No
cases. Figure 3.51 shows you the entire dialog. Scale is deactivated, the fractal is distorted
with the shape of the cloud. Otherwise, the
calculation of the fractal stays independent
of the scaling. Invert Noise creates dense
structures from holes and renders previously
opaque segments invisible.
The PyroCluster—VolumeTracer
can create a test rendering of our waterfall in of the calculation. These percentage values
the editor. Figure 3.52 shows a possible result. define the smallest transparencies still visible
As you can see in the figure, I adjusted the for the raytracer. The smaller these values are,
Age settings of the PyroCluster material so the deeper the rays have to enter into the vol-
that the clouds become visible just before the ume. ShadowMap Step Size and ShadowMap
bend of the particle flight path. This is sup- Trans. Limit define distances between sam-
posed to simulate the spray that is created by pling rays and can therefore reduce the render
the acceleration and the falling of the water. time when moderately increased.
You can either choose from the three settings, The value for RayTrans. Correction cor-
Crispy, Crispy-Gas, and Hazy, or use the man- rects a too transparent depiction of the
ual mode. Of the three presets, Crispy delivers clouds, which happens when the Raytraced
the result with the best quality and Hazy the Trans. Limit is increased. The Volume Light
worst. Regarding the render times, it is exactly option allows the volumetric light to interact
the opposite; Hazy is rendered the fastest. realistically with the PyroCluster clouds. As
In manual mode you can determine the you can see in Figure 3.52, I slightly increased
precision of the calculation yourself. One of the values in User mode in order to render
the most important settings is the value for faster. The quality reduction is small, as can
the Ray Trans. Limit. It defines the distance be seen in the test rendering.
between the sampling rays that are sent into
the scene. This value should be in a reason-
able ratio to the size of your cloud. Values too The Animated River
small will slow down the calculation unneces-
sarily without creating better results. All fol- The particles alone look good already, but do
lowing values with the word “limit” in the not yet depict a river. It still misses the char-
name are also well suited for the acceleration acteristic reflection and shininess. We will
238 Chapter 3: Animation Techniques
add a Sweep NURBS and subordinate a new How this might look, in the camera view
spline under it, as shown in Figure 3.53. This or the perspective editor viewport, is shown
spline starts in the center of the emitter and in Figure 3.54. Notice the order of the subor-
follows the course of the particles. For the dinated splines under the Sweep NURBS. At
profile I used a Rectangle spline that you the uppermost spot there has to be the rect-
can add from the group of spline primitives. angle. I also applied a uniform distribution of
The width and height of the rectangle have intermediate points to the rectangle, as well
to be adjusted so that the Sweep NURBS is as the path spline. If you take a look at the
positioned slightly beneath the mass of the Sweep NURBS in wireframe display in the
particles and has the approximate width of editor, it should have an even subdivision, as
the particle stream. shown on the right in Figure 3.54.
This even subdivision will have advantages Settings of the Waterfall Material
when the materials are applied, since I want
to deform the object using displacement. Add The material of the waterfall provides us
a Compositing tag to the Sweep NURBS and with some interesting challenges; therefore, I
deactivate the generation of shadows in the would like to get more into detail here. Cre-
tag. This will save us some render time. For ate a new material and apply white at 100%
the illumination I recommend using a Sky as the color. This will provide strong reflec-
object so we will get not only light, but also a tions and highlights later, despite the strong
realistic sky gradient that will then be reflected transparency. The first difference from previ-
in the water. The Sky object can be found at ous materials is set in the Transparency
Objects>Sky. For the Sky object, set a random channel, since the transparency of the water
time that will generate the desired type of is supposed to change over time. The fact
lighting. I have chosen 4:30 p.m. and left all that the Sweep NURBS already contains UV
other settings alone. I deactivated only the coordinates makes it easy, since we can use
shadows cast by the sun, since it takes too the Gradient. Load it into the Transparency
long to calculate Area or Raytraced shadows channel and set the range of the gradient
with PyroCluster. Instead, I added a normal colors to white/black/white. Increase the Tur-
Light source with a soft shadow and acti- bulence and the Scale to achieve an effect as
vated, in its Detail settings, the Shadow shown in Figure 3.55.
Caster option. This calculates the shadow Also increase the frequency of the gradient
only, without the additional illumination. This to 2, so the turbulence changes along with
light source can then be roughly positioned in the animation. The white areas of the gradi-
the direction where the sunlight of the Sky ent will allow the water to appear clear,
object comes from. while the dark areas of the gradient allow for
a more opaque appearance. This opaque area tion is rendered. This time, the strength of
should be on top of the waterfall’s edge, this effect is going to change over the course
since there will be little transparency at this of the water. At the ridge of the waterfall I
spot because of the swirling in the water. If would like to see the most deformations. In
your path spline in the Sweep NURBS has addition, all this shouldn’t be static, but
about an equal length before and after the instead be animated. The deformations are
bend, then the dark area of the gradient is meant to follow the course of the water. This
exactly in the middle. Otherwise, you would can only be achieved with a combination of
have to use test renderings to see whether three shaders. We will start by loading
the gradient is placed correctly. the Layer shader into the Texture area of the
The Transparency settings are less inter- Displacement channel. I also activated the
esting. The refraction index of running water Sub-Polygon Displacement and set the Sub
is 1.333 and is entered as the Refraction division Level to 2. This depends, though, on
value. We will support the material with a how finely your Sweep NURBS was subdivided
strong Specular with a height of about 75%, by the even distribution of the splines.
as shown in Figure 3.56, before we move on In the Layer shader, load the Gradient
to the Displacement channel. and the Projector shader by using the Shader
To make the water look a bit more rough button, as shown on the right in Figure 3.56.
and wavy instead of just flat, I would like to The Projector shader can be found in the
use the displacement of the surface, the Effects group of the Shader menu. The
deformation of the surface, when the anima- projector itself is used when an image or
splines contain two points in the center of ing points at the rounding and place them, in
this rounding where one of these points is the Coordinate Manager, exactly onto the sym-
not needed anymore. The disadvantage of metry axis. Generally this will be the X axis. In
this extra point is apparent after the subordi- this case enter 0 for the X position of these
nation under the Loft NURBS, as shown on points. Then make a right click in the editor and
the right in Figure 3.60, marked by arrows. select Soft Interpolation in the context menu.
The subdivision of the shape is condensed The result is shown on the right in Figure 3.61.
where the two points are located. Therefore, A similar problem occurs along the sides
convert the two Rectangle splines with the of the splines. There the points have only
(C) key and change to Use Point Tool mode. one tangent in the direction of the round-
Then select and delete one of the duplicate ings. This pulls the faces of the subdivision,
points in the center of the rounding. Figure calculated by the Loft NURBS, more than
3.61 shows these points on the left. necessary in the direction of the roundings.
After deleting these points by using the Figure 3.62 shows this effect on the left side.
(Backspace) or (Delete) key, select the remain- Next to it you can see the adjusted spline
— Figure 3.61: Correcting the number of points and the tangents of the rounding.
244 Chapter 3: Animation Techniques
tangents and the changes in the subdivided The right side of Figure 3.62 shows the result
faces along the sides of the Loft NURBS. at the Loft NURBS. The faces are now more
In order to precisely edit the tangents, select evenly distributed around the upper edge.
the upper of the two splines and switch to the
Structure Manager. When the Point Mode is
activated, you can see a list of the current Creating the Stadium Visitors
numerical point coordinates and tangents. Fig-
ure 3.63 shows this in the upper part. The high- We will determine the number of visitors
lighted fields indicate the values that have to indirectly, using the number of faces at the
be changed. As you can see, only the sides of Loft NURBS object. Use the values for Mesh
the tangents that are of 0 length have to be Subdivision U and Mesh Subdivision V, and
changed to a fitting length in the X direction. increase them so the desired amount of seats
The lower half of Figure 3.63 shows my changes. is created. Figure 3.64 shows a possible result.
Filling a Stadium with MoGraph 245
You can work with fewer faces if you like Figure 3.65, also activate the Align Clone
and increase them anytime later on. option, choose the positive Y axis as Up Vec-
For the representation of the virtual visi- tor for the orientation of the polygons, and
tor in the stadium, we will use a Polygon select the Polygon Center mode. This will
primitive. You could also use a more complex place the subordinated polygon in the center,
geometry, but remember that we will need with its Y axis pointing upward, onto the
several thousand copies of it to fill the sta- polygons of the Loft NURBS object.
dium. Add a Cloner object from the MoGraph
menu of CINEMA 4D and subordinate the The Random Effector
Polygon object under it. In the Cloner object
dialog, activate the Object mode in the Object In order to loosen up the density of the num-
settings. This will make an object field avail- ber of visitors and to create more color vari-
able into which you can pull the Loft NURBS ety, select the Cloner object in the Object
from the Object Manager. As indicated in Manager and then choose the Random
246 Chapter 3: Animation Techniques
Effector in the MoGraph menu. As the name Figure 3.67 shows this shader and how you
indicates, several properties can be random- can add images or shaders to it.
ized with it. Because the Cloner object was Click on the Add button in the dialog of
active when we added the Random Effector, the Multi Shader and load the desired
it was automatically assigned to the clones. shader, or an image, into the new channel. In
As you can see on the right of Figure 3.66, our example I used three simple Color shad-
you can check this directly on the Effectors ers and assigned different color values to
page in the dialog of the Cloner object. them. How these textures are distributed to
In the dialog of the Random Effector, the clones is controlled with the Multi
activate the options for Position and Rota- Shader mode.
tion. You can determine, separate for X, Y, In Figure 3.68 on the left you can see the
and Z and also H, P, and B, the maximum rendered result in Index Ratio mode. In this
deviation from the original orientation of the mode, the textures in the Multi Shader are
polygons. This will loosen up the rows in a assigned to the UV coordinates of the Cloner
natural way. Also activate the Color Mode object. This will result in a striped coloring.
in the Color settings. As shown in Figure This is different in the Color Red mode used
3.66, all clones receive random color values. in the Multi Shader in our example. As you
can see on the right in Figure 3.68, the red
The Multi Shader color values of every clone are calculated.
This results in a random assignment of the
Of course, it is not very useful to randomly textures in the Multi Shader.
apply color values to the clones without hav-
ing the means to further control this color
assignment. In these cases the Multi Shader Creating an Audience Wave
of MoGraph can help us. Create a new mate-
rial and load the Multi Shader from the To create the right mood in the stadium, the
MoGraph category into the Color channel. polygons are supposed to behave like people
doing the “wave.” In preparation, we will create selection is shown on the left in Figure 3.69. In
a spline course that is positioned in the center the Structure>Edit Splines menu select Edge
of the bleachers. Duplicate the Loft NURBS to Spline. Now there is a new spline subordi-
object, convert this copy with the (C) key, and nated under the converted Loft NURBS in the
then change into Use Edge Tool mode. Object Manager that is equal to the course of
In the Selection menu, select the Loop the edge selection. Figure 3.69 shows this
Selection and place the mouse pointer over an spline on the right.
edge in the approximate center of the bleach- This spline will control the direction of
ers so a continuous edge is highlighted. Then the wave in a moment. If you want to use a
apply this preview with a click. The desired certain place at which the wave will start,
248 Chapter 3: Animation Techniques
then click on the spot in the spline in Use can see on the right of Figure 3.70, I decided
Point Tool mode. Then right click and select to use the Shape of a Capsule and reduced its
Set First Point in the context menu. Figure size, using the Size value, so it fits to the
3.69 shows, on the right side, a spline point dimensions of the bleachers. When the Visi-
that was set as the starting point in this ble option is active, you can evaluate the
manner. You can also control the future falloff radii and the shape of the effector
direction of the wave by using the polygons. directly in the editor views. The Parameter
If necessary turn the direction of the spline part of the dialog takes care of the actual
by using Reverse Sequence in the context manipulation of the clones. It would be
menu of the editor viewports. enough to change the Y position, but I also
activated the Scale and Rotation so the poly-
The Step Effector gons in the center of the wave appear slightly
tilted and enlarged, as if the person had stood
The polygons of the Cloner object now have up. Move the Step Effector, if necessary,
to be moved up and down within a certain above the polygon clones to be able to bet-
space so the effect of a running wave through ter evaluate the strength of the effect.
the bleachers is achieved. This can be done The actual movement of the wave is
with the Step Effector of MoGraph. First, achieved by the movement of the Step Effec-
select the Cloner object and then choose the tor above the bleachers. For that reason, we
Step Effector in the MoGraph menu. It will placed the spline halfway up the stadium.
then automatically be added to the Effec- Right click on the Step Effector in the
tors list of the Cloner object. Figure 3.70 Object Manager and select, in the context
shows on the left the current hierarchy of menu, CINEMA 4D Tags>Align to Spline.
the objects in the Object Manager. Next to With the help of this tag, objects can be
it you can see the parameters of the Step placed exactly on a spline and also moved
Effector. In the Effector settings correct along it. For this purpose the tag provides us
the Spline so that it creates a horizontal line with the Spline Path field. Pull the previ-
at the upper edge in the function graph. That ously generated spline from the edge selec-
way, all clones are treated in the same way tion of the Loft NURBS into this field. The
by the following parameters. Step Effector should now automatically
Then use the Falloff settings to control jump to the position of the start point at
the spatial influence of the effector. As you this spline.
Filling a Stadium with MoGraph 249
If you also activate the Tangential option, positions. To assign additional variations to
then a second spline can be used for the the clones without affecting their coloring,
alignment of the Step Effector. The spline we will use a copy of the Random Effector.
that defined the upper edge of the stadium Duplicate the Random Effector with Copy/
in the Loft NURBS can be used for that pur- Paste or with (Ctrl) or (Strg), drag and drop
pose. With the Axis menu of the Align to in the Object Manager, and rename this
Spline tag you can define the axis that is sup- effector copy by adding color. Deactivate the
posed to be aligned to this Rail Path. In my options for Position and Rotation in this
case, this is the X axis. With the percentage new effector so only the color variations
value of the Position parameter, you can remain.
determine at which point of the Spline Path In the original Random Effector, deacti-
the Step Effector should be positioned. By vate this Color mode and change the Ran-
simply animating that value between the dom Mode in the Effector settings to
extremes of 0% and 100%, the effector can Turbulence. This makes it possible to influ-
be moved once around the bleachers of the ence the calculation of the random values by
stadium. Figure 3.71 shows an example. This changing the Animation Speed value. The
completes the animation, but I would like to higher the value, the faster the random val-
add more variations to the movement. ues change during the animation. With the
Scale value, the size of the used noise pat-
Creating Additional Variations tern can be defined. Smaller Scale values
cause more variations between neighboring
Currently, we use just one Random Effector clones. I used a value of 100% for the Anima-
for the variation of the clone colors and their tion Speed and 10% for the Scale. The
250 Chapter 3: Animation Techniques
Indexed option should also be activated. This and increase the Weight value in the Trans-
generates random values for all randomly form settings to 100%. This is comparable
varied parameters, which causes even more with the vertex map weighting of a polygon
variations. object. This weighting can now be random-
In the Effectors list of the Cloner object, ized by the Random Effector, which controls
both Random Effectors have to appear so the random movements of the polygons in
they both affect the polygons. Simply pull the the stadium. You can find the settings in the
still-missing effector from the Object Man- Parameter section at the Other tab. Increase
ager into the list. When the animation is the value of the Weight Transform to 50%.
played in the editor, you should be able to When the Display menu is set to Weight in
notice that the polygons change slightly from the Cloner object, you should be able to see
frame to frame, but the colors stay the same. the different coloring of the clones directly
In order to create variations in the wave in the editor. Deactivate the green check-
itself—maybe some visitors don’t partake in mark behind the Polygon primitive under
the wave at all—we will work with weight- the Cloner object to get a better view of the
ings. Open the dialog of the Cloner object weightings.
Filling a Stadium with MoGraph 251
It is also important that you check the Step Effector does its job. As with the
order of the Effectors in the corresponding deformers, here too the order of the effectors
part of the Cloner object. In the uppermost makes a difference. The right side of Figure
position there has to be the Random Effec- 3.72 shows the desired order of the effectors.
tor, which is responsible for the movement In Figure 3.73 you can take a look at the
of the polygons. Only in that way can the described changes in the Random Effector.
weightings be randomly varied before the On the left you see the settings that cause
252 Chapter 3: Animation Techniques
the animated change of the clones and on value in the Align to Spline expression as
the right the increase of the Weight Trans- I described, an effect will appear like the one
form values. shown in Figure 3.74. At the same time, the
When you now move the Step Effector Random Effector takes care of the continu-
over the bleachers, by animating the Position ous movement of all clones in the stadium.
— Figure 4.1: Using the Doodle brush to create sketches in CINEMA 4D.
254 Chapter 4: Character Animation
the side viewport. My idea of the character is shows that something happened here as
a mix between a frog and a troll and should well. The Doodle object sets the keyframes
be easy enough to model. Figure 4.2 shows for the created sketches when the Auto-Add
my finished sketch. We will adjust the mod- Frames option is active. Otherwise, you
eling to this sketch in the following steps. can set a manual keyframe anytime with
Doodle is automatically placed in the fore- Tools> Doodle>Add Doodle Frame and fill
ground of the viewport. If this distracts it with a new sketch directly in the editor. In
you during modeling, deactivate the Doodle the same menu you will find commands for
object, which was automatically created duplicating, erasing, or deleting a Doodle
when the Doodle brush was used, in the sketch.
Object Manager. Simply click on the green Clicking on the keyframe will open a small
checkmark behind this object in the Object preview in the Attribute Manager, with an
Manager to turn it off. arrow button next to it, as you can see in
A quick look at the Timeline, which can be Figure 4.3. This arrow button can be used to
opened in the Window menu of CINEMA 4D, navigate to other drawn Doodle sketches.
be influenced in the Type menu in the Attri- this cut, which are supposed to be the upper
bute Manager. In the Hexahedron setting
lip. This selection is shown in the middle image
only quadrangles are used. This will be of the figure. Then use the Disconnect com-
mand in the Functions menu, which discon-
helpful later when the shape is smoothed
nects the selected faces from the surface. These
by a HyperNURBS. Figure 4.4 shows these
polygons now have their own new corner
settings.
points. Don’t confuse this with the Clone com-
To further adjust the shape of the sphere
mand in the same menu. The Clone command
to the sketch, convert it with the (C) key and
copies the selected faces into a new object and
then activate the Brush tool in the Struc- leaves the original object unchanged.
ture menu. The brush has several settings
In order to partially reattach the discon-
available in the Mode menu in the Attribute nected polygons to the faces of the sphere,
Manager to define its function. These range change back to Use Point Tool mode and
from painting and blurring of vertex maps to select all points along the upper edge of the
the distortion and smoothing of surfaces. In disconnected faces. The points of the sphere
Smear mode, the brush works in a manner as well as the points of the disconnected
similar to the Magnet tool, found in the faces have to be selected, so enable the selec-
Structure menu as well, and provides a sim- tion of hidden elements as well. The desired
ple way of deforming the object. selection is shown on the left of Figure 4.7.
In Use Point Tool mode, edit the sphere Then select the Optimize command in the
so it conforms more to the contours of the Functions menu and activate all its options. In
Doodle sketch and looks pear-shaped in the our case, only the Points option in connec-
front viewport. Figure 4.5 shows a possible tion with the Tolerance value is important.
result. It ensures that points within the specified
— Figure 4.4: A hexahedron sphere primitive as the start object for the modeling.
256 Chapter 4: Character Animation
should be active. Shrink these points with the inside of the lower jaw, but because of the
Scale tool, as shown on the right in Figure 4.7. closed sphere shape this is made difficult.
A gap is created where the upper and lower Therefore, we will select all faces on the
jaw meet. upper part of the head as shown on the left
in Figure 4.8, then use Hide Selected in the
Making Polygons Temporarily Invisible Selection menu. In the same menu there are
also commands for making the elements visi-
During modeling you can quickly get lost ble again or to invert the visibility, meaning
within details, especially when a model be that the faces will not get lost.
comes more complex. Sometimes the view is In the now open lower bowl shape, select
simply obstructed. This problem can be solved the edges marked on the right in Figure 4.8 in
by temporarily turning off some of the poly- Use Edge Tool mode. These are the edges lead-
gons. In our case I want to further model the ing to the corners of the character’s mouth.
— Figure 4.8: Making faces invisible to simplify the work on the inside.
258 Chapter 4: Character Animation
The Extrude tool in the Tools menu can other mouth corner. Then use the new points
extrude not only polygons but also edges. on the lower lip to reshape it, as shown in
The selected edges are duplicated and create the left part of Figure 4.10.
new faces with the Offset movement, as
shown in Figure 4.9. In order to have these The Oral Cavity
faces placed perpendicular to the outer poly-
gons, we will use an Edge Angle of 90°. Turn off the upper faces of the head again
Either combine this with a negative Offset with Hide Selected. Then use the Extrude
value or use a positive Offset with a nega- tool at the still-active edge selection of the
tive Edge Angle value. The goal is to create lower lip to create another row of polygons,
faces on the inside of the head, as shown on as shown on the left in Figure 4.11. This time
the right of Figure 4.9. Now make all poly- the edge angle is smaller than 90°. The new
gons of the head visible again by using faces are supposed to run, slightly tilted, in
Selection>Unhide All. the direction of the lower half of the sphere.
The Create Polygon tool in the Structure
Shaping the Corner of the Mouth menu will help you to close the gap between
the new polygons. As you can see in the mid-
With the future smoothing of the Hyper- dle of Figure 4.11, four quadrangles are suffi-
NURBS in mind, we will create the connect- cient for that. These faces can then be
ing faces in the corner of the mouth of the compressed along the X axis. The temporary
character. There, the faces of the upper and subordination of the model under a Hyper-
lower lips should blend into each other as NURBS shows the effect. The lower jaw is
softly as possible. The first step is the manual supposed to have a distinctive edge along
creation of a quadrangular polygon, as shown the lips, but then should swing down in a
on the left part of Figure 4.10. Use the Create soft bulge.
Polygon tool of the Structure menu and
click in Use Point Tool mode on the four The Upper Jaw
points that form the corner of the mouth, in
consecutive order. Double click on the last The upper oral cavity is shaped using the
point to create the face. Repeat this at the same principle. We will make some space
Because the lower of the two points is sup- and Sew tool that either no points of the
posed to remain at its current location, we will object, or just the two points that are sup-
use the Stitch and Sew function in the Struc- posed to be combined, are selected. This func-
ture menu. This allows us, by holding down tion is limited to only these selected elements.
the mouse button, to pull a connecting line The following steps are again identical to
between the points that should be combined. the ones used at the lower jaw. Extend the
The arrows on the right of Figure 4.13 indicate faces at the open edge of the inside of the
this. Because the open point at the inner edge upper lip with an extrusion, so they move
of the upper lip is to be moved, it has to be further toward the inside of the head and
clicked on first and, while holding the mouse upward. Then manually close the gap in
button, pulled to the lower point so it snaps to between using four quadrangles, with the
this point. Make sure when you use the Stitch help of the Create Polygon function in the
— Figure 4.12: Turning off the lower half of the head and extruding the lower lip.
— Figure 4.13: Combining the new faces with the corner of the mouth.
The Modeling of the Character 261
Structure menu. The right part of Figure the result of the missing connection in the
4.14 highlights the previously extruded faces back of the head between the upper gum and
and the closing faces on the inside. The left the lower mouth cavity. Such holes, openings
part of the figure shows how the corner of bordered on all sides, can be automatically
the mouth is supposed to look with activated closed. Select Close Polygon Hole in the
HyperNURBS smoothing. Structure menu and place the mouse pointer
over a section of the open edge. A highlighted
Closing Holes Automatically preview face appears that represents a preview
of the closing of the hole. A mouse click then
Make all polygons visible again by using Unhide actually generates this face and closes the hole,
All in the Selection menu, and then turn some as can be seen on the right of Figure 4.15. This
faces off again at the back of the head with almost completes the modeling of the head. In
Hide Selected. You should see an opening Use Polygon Tool mode, you can turn on all
there, as shown on the left in Figure 4.15. It is faces again.
Take some time and take a long look at inside of the legs then turns toward the floor
the head with activated HyperNURBS smooth and can be extruded, as shown on the right
ing. If you didn’t use a HyperNURBS yet, add side of Figure 4.19.
one from the Objects menu under NURBS,
and subordinate the head model under it in Extruding the Feet
the Object Manager. The function of the
HyperNURBS can be deactivated anytime by Extrude these faces another two times down-
clicking away the green checkmark behind it ward until the desired leg length is reached.
in the Object Manager. A possible result can Widen the last two segments by moving the
be seen in Figure 4.16. Make sure that the points, following the example shown on the
lips are placed on top of each other and that left of Figure 4.19. This takes care of the base
there is no visible gap. of the feet as well. Because of the needed
clarity in the figures, the Doodle sketch is
often turned off. You should keep it visible,
Modeling the Legs though, and compare it with your model,
since it gives you an indication of the length
The modeling of the legs can be achieved by of the legs, the position of the knees, and the
just using the Extrude tool. In Use Polygon size of the feet.
Tool mode start with a selection of the two The two faces in front and back at the
faces at the underside of the head where the lower leg base are then extruded individually
legs are supposed to be developed. The faces to build the basic shape of the feet. The back
and the first extrusion of these faces are face is extruded in one step to form the heel,
shown in Figure 4.17. and the front face is extended in two steps,
Since we need more subdivisions, espe- first to the base of the toes and then to the
cially in the area of the groin to improve the tip of the toes.
flexibility during animation, we will use a lit-
tle trick. Move outward the inside points cre- Shaping the Toes
ated by the extrusion of the legs, as the
arrows on the left side of Figure 4.18 indi- In order to keep the modeling effort to a
cate. The face previously located on the minimum, and in keeping with the simple
The Modeling of the Character 263
nature of the character, I gave the little guy chaotic without HyperNURBS smoothing,
a big toe and a combined shape for the but after the activation of HyperNURBS it
remaining toes. The big toe can be formed will all come together, as shown on the right
from the frontal polygon at the tip of the side of the figure. The outer toes should hud-
foot. Just shrink this face along the world dle against the big toes and give the front of
X axis, so we almost get a square, and place the feet a nice appearance.
it on the inside of each foot, as indicated on The HyperNURBS smoothes and gives the
the left of Figure 4.20. Then select the face roughly modeled shape a nice organic form.
that now runs slightly tilted on the outside However, this can be a bit distracting on the
of each foot. From these faces we will shape bottom of the feet, where the sole should be
the remaining toes by extruding them. plain and less curved. This can be achieved by
Extrude and move these faces as shown adding a polygon ring. Select all polygons on
on the left of Figure 4.21. This will look a bit the bottom of the feet, but skip the two
faces under the toes. The toes can look more mode. Figure 4.23 shows some suggestions
round since they don’t have to be flat on the for these cuts, indicated by arrows. All toes
ground. are cut once in the middle, and we will add
Use the Inner Extrude command in the another subdivision at the last segment of
Structure menu to shrink these faces. Figure the leg. Use the new points to refine the
4.22 shows the desired result on the very shape in these areas. At the same time, these
left. The images in the middle and on the subdivisions will improve the maneuverabil-
right show that the soles have become nice ity of the feet during the animation.
and flat.
To be able to show details like the width of We will now take care of the arms, which
the toes or the indication of an ankle, we will start at the sides of the back of the head and
make some additional Knife cuts in Loop end with hands that will lie on the floor. We
start again with a simple extrusion of two Another extrusion extends the arms up to
faces, as shown on the left in Figure 4.24. In the location of the wrists and leads them in a
order to set the profile of the arms more soft curve downward and back, as shown in
exactly, the points of the newly extruded faces Figure 4.25. The finishing touch is made with
should be straightened, as seen in the middle the Extrude Inner command, which slightly
of the figure. Switch to Use Point Tool mode tapers the arms. Pull these new faces slightly
and select the two lower points of each of the backwards along the world Z axis so a little
extruded faces. Force them onto one plane by rounding at the end of the arm stumps is
entering 0 at the Y and Z Size settings of the created. You can see this in the middle and
Coordinate Manager. Then the faces under on the right of Figure 4.25. It is helpful here
the arm stumps that are almost parallel to the as well to turn on the HyperNURBS smooth-
floor can be extruded further downward, as ing to better evaluate the curvature of the
shown on the far right in Figure 4.24. arms.
— Figure 4.25: Extending the arms and shaping the transition to the hand.
The Modeling of the Character 267
Modeling the Hands nal third face of the arm stumps. Extrude
this face a short distance in the direction of
As can be seen on the far left in Figure 4.26, the fingers, as shown on the right of Figure
we will widen the ends of the arms a bit. The 4.27. Then select the two faces that are
arrows in the figure indicate the movement marked with colored points in the figure and
of the two edges. There you also can see the extrude them one step diagonally upward, to
two highlighted faces at the ends of the arm shape the actual thumb. Figure 4.28 shows
stumps, which will be extruded in three steps (highlighted) the extruded faces and the
and rotated slightly to depict the palms and desired form of the thumbs. Here you can
the stylized fingers at the end. Figure 4.27 refer to the original shape in your Doodle
shows on the very left how the smoothed sketch.
HyperNURBS shape might look. This completes the modeling of the char-
Now the only parts missing are the acter for the moment. As I promised, we
thumbs, which we can shape out of the origi- were able to use just a few tools and we kept
— Figure 4.32: An IK chain including Pole Null the case with the bone objects. There
vector. fore, the size of these joint bones can be
determined independently from the joint
Bone Settings positions. In the Size setting Length, the
measurements of the drawn bones adjust to
The Bone menu determines how the bone the length of the segments between the
connections between the joints are inter- joint objects. At Custom the circumference
preted. At the Axis setting, these connections of the bones can be set with the Custom
run, like normal bone objects, along the value, as shown in Figure 4.33. These set-
Z axis of the joints. With an active Align Axis tings are a mere visual change and don’t
option, the joints are automatically oriented have anything to do with the future func-
so their Z axis points to the following joint. tion of the bones and joints. Also, the high-
With To Child, the bone connection ends at lighting of the joints and bones in the
the subordinated joint object. With To Par- Display part of the Joint tool can be influ-
ent, this direction is reversed. The direction enced with the Highlight and Bounding
of the bone connections is important for the Box option. Highlight changes the bright-
assignment of weightings. Depending on the ness of the bone when the mouse pointer is
choice in the Bone menu, the weightings are above it. Bounding Box draws an orange
applied either to the section of the following box, familiar to us from the selection of
joint or to the section in between the current normal objects, around the bone.
joint and the one above. The results are quite
different and cannot be switched later. The
setting To Child should be the more logical The Joint Setup of the Character
choice in most cases.
Let’s get back to our character. We will use
The Size of the Bones the Joint tool to create some joint chains. It
is helpful to orient ourselves on an imaginary
The connections between the joints are also skeleton of the character, as if we were work-
called bones but aren’t real objects, as is ing with a living creature. On every spot
272 Chapter 4: Character Animation
where the character needs a joint or where The Rig of the Legs
you want to gain control over the mobility,
you have to place a joint. Many joint objects We now move on to the legs. These natu-
in a section can increase the mobility of the rally belong under the joint object of the hip,
character, but also make it more difficult to which is generally called the root joint and
animate. We have to find a compromise acts as the uppermost object of a character
between the two goals. rig. Because the legs of our character are
After activating the Joint tool we will symmetrical, we can save ourselves half the
start with (Ctrl) clicks in the side viewport, work by using the Symmetry function of the
starting at the hip, to place the joints marked Joint tool. Activate Draw as the Symmetry
1, 2, and 3 in Figure 4.34. I used the standard option for the drawing of the joints and use
settings of the Joint tool, no Symmetry, and World as the Origin and YZ as Plane. Local
no IK Chain. The bones are aligned To Child or world system doesn’t make a difference
and the axis aligned with Align Axis. The here, as long as the sphere wasn’t rotated
Root Null option can remain deactivated; around the Y or Z axis in the beginning of
otherwise, it would create another Null the modeling. Figure 4.35 summarizes these
object under which all other created joint settings.
objects would be subordinated. Select the hip joint in the Object Man-
The joint marked number 4 in Figure 4.34 ager and create, with (Ctrl) clicks in the side
is supposed to be connected to joint number viewport, the joints marked with the num-
2. Therefore, the creation of the joints is fin- bers 1 to 5 in Figure 4.36. After creating the
ished after the creation of joint 3. Then select first joint, move it in the front viewport
the joint second from the top in the Object along the X axis so it is placed in the correct
Manager and set, with another (Ctrl) click, position at the base of the leg. Because of
joint 4 at the crown of the character. Joint 4 the activated symmetry, the mirrored joint in
is automatically subordinated under the last the other leg is automatically moved as well;
selected object in the Object Manager. That we don’t have to hold any other key for
way, you can generate branched joint hierar- moving the joint. Just click on the yellow cir-
chies without having to leave the Joint tool. cle of the joint object and pull it to the
The main body now contains enough joints. desired position. As you continue to create
— Figure 4.34: The joints for the body and the — Figure 4.35: The leg joints can be created
head of the character. symmetrically.
Applying Joints and Weightings to the Character 273
— Figure 4.36: The joint objects within the legs of the character.
the remaining leg joints in the side viewport, joints for all toes. This will not be necessary
they should automatically be generated in for our simple comic figure.
the same ZY plane and placed in the center
of the legs. Check and correct this, if neces- The Rig for the Arms and Legs
sary, in the front viewport.
Regarding the number and location of the Normally, it would be enough to use three
joints, the order of the joints shown in Figure joint objects for the arms: one for the shoul-
4.36 has proven to be the best setup. In addi- der, one for the elbow, and one for the wrist.
tion to the joint object of the hip, a joint is The joint objects for the hands and the fin-
placed at the knee, one at the ankle, and gers would be connected to these. In our
another one at the base of the toes. The con- case, I would like the arms to be more elas-
necting joint is placed at the tip of the toes. tic, though, without a set joint in the center.
Depending on the complexity of the charac- As you can see in Figure 4.37, I created an
ter, it might be useful to create individual almost evenly subdivided joint chain from
— Figure 4.39: The weight tag with applied, but not weighted, joint objects.
Figure 4.41 you can see as an example the the intensity of the applied weightings
automatically created joint weighting at the between the extremes 0% and 100%. When
jaw joint of the character. The unwanted Auto Normalize is active, all subtracted or
weighting of the bottom jaw and stomach of newly painted weightings of a joint are auto-
the character is clearly visible. matically synchronized with the remaining
joint weightings. That way, every point auto-
Options of the Weight Tool matically keeps a weight strength of 100%.
The Mode determines whether weightings
The Weight tag offers in its Options and are applied with every pass of the tool or sub-
Paint settings several options for editing such tracted from the joint with the erase function.
unwanted weightings. Figure 4.42 shows the Weightings can be applied absolute or painted
corresponding part of the dialog that we will with soft edges as well. Bleed increases the
now go through. The majority of these func- already weighted areas of the object and
tions are self-explanatory. The Strength sets Remap allows the editing of existing weight
Applying Joints and Weightings to the Character 277
radius of the Weight tool in the Radius set- in the Options section of the dialog. Then
ting, the intensity of the weight application in repaint the points, which should be moved
Strength, and the falloff curve of the tool in when the jaw is rotated. It might help to
Hardness. The None setting deactivates this switch to a line display in the editor to reach
special behavior resulting from the use of a the points positioned within the model.
pressure-sensitive graphics tablet. Repaint the wrongly weighted points with a
Now you know everything about the Strength of 0% or use the Erase mode of
options for the manual application of weight- the tool. Figure 4.43 shows the corrected
ings. In the Weight tool, select the joints, weighting of the jaw joint.
one after the other in the corresponding part Faulty weightings are also possible at the
of the tool dialog, to evaluate their weight- upper joints of the arms, since the geometry of
ings. When you encounter a section with the body comes very close to the arms in this
wrong or unfavorable weightings, like with spot. Delete any weighting for the lower arm
the jaw joint, activate a 100% Strength in joints at the body of the character, as shown in
Abs Mode and leave Auto Normalize active the before and after images in Figure 4.44.
Checking the Weightings and case of the hip joint, moved as well. In
Deformations places where the character is more often in
contact with other objects, the use of
As previously explained, contrary to the bone inverse kinematics makes more sense. This
objects, joints are not deformers. Therefore, is generally the case with the feet and legs.
despite the previously applied weighting, In the Object Manager, hold (Ctrl) and
there won’t be a deformation when the joints select, one after the other, the four joints of
are rotated. We will need to use the so-called the leg. They are marked by colored points
Skin object that is found in the Character in Figure 4.46. The joint of the knee can be
menu. Simply subordinate it under the object skipped over.
to be deformed or under its superordinated In the Character menu, while still holding
object. the (Ctrl) key, select IK Chain. It applies IK
Figure 4.45 shows the resulting hierarchy. tags to the currently selected objects and
You can see that the joints don’t have to be automatically creates three external help
in hierarchical relation to the objects that are objects for the foot. Figure 4.46 shows these
to be animated. When the Skin object is sub- additional objects on the right side. These are
ordinated, the rotation of single joints should generic Null objects that apply a magnetic
move the geometry of the character. For the force through the IK tags to the joints. That
first tests it would be best to check critical way, the joint position can be controlled
areas such as the jaw joint, the thigh, and from outside the joint hierarchy.
the shoulder. If strange deformations occur,
go back to the Weight tool and correct the
weightings again until the deformations are
correct.
To make it easier to use these external rotations in a future animation, so align these
handlers during an animation, create a Null joints with the Joint Align tool in the Char-
object and place it under the sole of the foot acter menu.
for which you just created the IK. Null objects This tool can orient selected joints toward
can be found in the Objects menu of CIN- objects. We will utilize this for aligning the
EMA 4D. Then subordinate the three exter- Y axis of the joints. Create a new Null object
nal handlers under the new Null object, as that we can use as the target object for the
shown in Figure 4.47. When you now move Y axes. Place it above the hand of the cur-
this group of handlers backward along the rently selected joint chain. An appropriate
Z axis, the foot should move backward as positioning can be seen on the right of Figure
well and automatically lift the heel while the 4.48. The Z axis is automatically aligned in
front part and the toes remain on the ground. the direction of the bones.
As you can see, quite complex movements The figure also shows the necessary set-
can be achieved by a simple movement of tings in the dialog of the tool. The Z Axis
the handler objects. Do the same with the of the joints should still point in the Direc-
joints of the other leg. tion of the next Bone. In Up Axis we define
the Y axis of the joints and orient them,
Orienting Joint Objects with the Up Direction selection of Aim,
toward the new Null object. With a click
The uniform orientation of the joint objects on the Align button, all joint axes are
in a continuous chain is not as critical as with updated without changing the position of
bone objects, but helps nonetheless. While the joints.
the orientation to the following joint was
activated during the creation of the joints, Using MOCCA IK
their rotation around the Z axis can vary, as
a quick look at Figure 4.48 proves. As you Besides the IK tag, for the inverse kinematics
can see by the arrows, the Y axes of the arm of the legs there is also the MOCCA IK tag. It
joints are uniformly oriented up to a point. offers additional possibilities for overlaying
However, in the area of the hands there is a inverse kinematics with dynamic effects such
–180° rotation. This could cause unwanted as drag or gravity. We will now use this tag
Applying Joints and Weightings to the Character 281
at the arms of the character. Select all joints negative value. A value of –9.81 represents
of an arm from the shoulder down to the the average value of earth’s gravity. Since we
wrist and apply the tag by right clicking and can’t assign mass to the bones, you should
selecting Character>MOCCA IK. use the Drag and Gravity values to create
Contrary to the previously used IK tags, the desired behavior of movement. Drag
the MOCCA IK tags have to be restricted controls the passing of rotations from one
with an Anchor. It defines the uppermost bone to another. High values slow down the
object of an inverse kinematics chain. Select passing of changes through the bone chain,
the MOCCA IK tag at the shoulder joint and causing the individual bones to try to stay in
activate the Anchor option in the Tag set- their current position longer. In this way,
tings of the Attribute Manager, as seen on high drag values can be used to simulate big,
the right in Figure 4.49. This automatically heavy masses.
turns on the options for the dynamic behav- Select the MOCCA IK tag of the wrist
ior of the joints or bone objects that follow joint and take a look at its Constraint
in the hierarchy. My settings can also be dialog. External reference objects can be
seen in the figure. assigned or created within this dialog. The
Speed is a multiplier for the calculation of choices are the Target object that magneti-
dynamic effects. Higher values cause faster cally affects the position of the joint and an
movements and lower values cause the oppo- Up Vector object that is used to point one
site. Drag is a kind of resistance against of the axes of the joint or bone toward it.
impulses. A drag set too high can, in extreme The use of the Apply button behind the Tar-
cases, stop the dynamic effects altogether. get field generates a new Null object that
Gravity, on the other hand, pulls all objects can be used to move the entire joint chain
downward along the Y axis when used with a between the Anchor shoulder and the wrist.
282 Chapter 4: Character Animation
hand. If you still have the Null object that Activate the Skin object again by clicking on
we created for the alignment of the joints, the now red cross in the Object Manager.
then use that one instead. Simply pull this The character should remain unchanged.
object into the Up Vector field, which makes Figure 4.52 shows these last steps. On the
the use of the Add button unnecessary. left side you can see the supporting display
Then select all following MOCCA IK tags of lines for the Up Vectors and the yellow
in the Object Manager with a frame selec- connecting line that automatically spans
tion and, in their dialogs, pull the new Null between the anchor and the last link of a
object into the Up Vector field as well. Figure MOCCA IK chain.
4.51 shows the last few steps.
Since the joints might have been rotated, Converting Joints to Bones
you should deactivate the Skin object for
a moment by simply clicking on the We are now at a point where we could start
green checkmark behind it in the Object with the animation. But since I would like to
Manager. The geometry of the character demonstrate a possible exchange of the ani-
then automatically jumps back to the state mation with an external program that doesn’t
in which it was modeled. In case their posi- know joints, we will first convert the current
tion changed, use the two external handlers joint rig to a bone setup. All weightings and
at the wrists to place the joint chains in the IK tags remain the same.
center of the arms. Then click on Set Pose Select the root joint and then choose
in the Weight tag of the character to save Character>Conversion>Convert to Bones.
the new angles and positions of the joints. A new bone hierarchy is generated, displayed
284 Chapter 4: Character Animation
on the left in Figure 4.53, which consists of unwanted distortions do the following. First,
already fixed bones, as indicated by the select the uppermost bone object and then
checkmark. In order to exchange the joint select Soft IK/Bones>Reset Bones in the
hierarchy with the bones, you first have to Character menu. The question about the
delete the Skin object. It is not needed any- subordinated object has to be confirmed with
more, since bone objects themselves are OK. The bones lose their deforming proper-
deformers. Then delete the entire group of ties for now and can be pulled into the Null
joint objects, but keep the external help object group of the character. Figure 4.53
objects that were automatically assigned to shows these steps on the left side. On the
the new bone objects during the conversion. right you can see how else the joint objects
Because deformers always have to be subor- differ from the bone objects, because the
dinated, these bones now belong in the group structure changed at the locations where the
with the model of the character. To prevent rig branches out. This change of location
Applying Joints and Weightings to the Character 285
doesn’t influence the deformation of the optimized for working on the UV coordi-
character, but you can take the time to align nates, and the BP 3D Paint layout, which is
the bones again the way you think they need meant to be used for the painting and edit-
to be. For example, you could pull the bones ing of textures.
of the upper part of the head and the bones
of the arms out of the hierarchy, align the Creating a New Texture
stomach bone to the imaginary spline, and
then subordinate the head and arm bones In the first step you should create a new
again. material in the Material Manager for our
After the bones are realigned, fix the comic character. In the Color channel of this
bones to their current location. Again, select new material in the texture area, click on the
the uppermost bone and this time select small triangle and select Create New Texture
Character>Soft IK/Bones>Fix Bones. Also from the drop-down menu. Then a dialog
here, confirm with an OK that the subordi- opens, as shown in Figure 4.54, in which you
nated bones should be fixed as well. This can define the name, size, and background
completes the conversion from a joint rig to color of the desired texture. After closing the
a bone rig and we can start with the anima- dialog with OK, assign the material to the
tion. Our character could use some color and character and then change to the BP 3D
textures, though. Therefore, we will use this Paint layout.
opportunity to take a look at the BodyPaint In the Material Manager you will now
3D module of CINEMA 4D. find our material in a slightly different for-
mat. Every material can contain a variety of
Texturing Objects with BodyPaint 3D textures in all possible channels. Before we
edit the textures, we have to tell BodyPaint
Many surfaces can be textured with shaders 3D which of them will be manipulated in order
or, for example, with a plane or spherical to optimize the memory. Behind every mate-
projection of images. In some cases these rial there is a red cross that can be activated
methods don’t go far enough, like when a by clicking on it, which turns the symbol into
surface is supposed to be changed in a cer- a pen. Now the textures within this material
tain way by painting on it, or when an image
structure should follow a curve on the object
without being distorted. In such cases the
creation and unwrapping of so-called UV
coordinates is necessary beforehand. These
coordinates cover objects like a second skin
and determine the projection of the material
onto the surface. Imagine that these coordi-
nates are like the unfolding of the entire sur-
face onto one plane. Of course, it is much
easier to project the texture that way than
onto the curved surface.
Even though BodyPaint is completely
integrated into CINEMA 4D, it is not imme-
diately apparent. When you switch into
one of the BodyPaint 3D layouts with
Window>Layout, all managers and tools of
BodyPaint 3D become visible. In this menu
there is the BP UV Edit layout, which is — Figure 4.54: Creating a new texture.
286 Chapter 4: Character Animation
can be edited in BodyPaint 3D. In the small Attribute Manager. Figure 4.56 shows as an
displays of the textures in the materials, you example the settings for the brush and its
will notice the abbreviation of the channels corresponding color settings. By using diverse
containing the textures—in our case it’s a C parameters, the size, opacity, and shape can
since the texture is used in the color channel. be adjusted. The use of bit-maps is also possi-
Just like in Photoshop, there is also a toggle ble. A large number of brush presets are
switch for changing between foreground and included and can be seen after clicking and
background color. You can see these elements holding the mouse button on top of the pre-
on the left of Figure 4.55. view image of the brush, in the top left of
As in the common graphics programs, in the Attribute Manager.
BodyPaint 3D you can build textures with
different layers and allow these layers to Unfolding the UV Coordinates of
interact with each other. All of this is done in the Character
the layers section, seen in the middle of
Figure 4.55. There you can create new layers Before we start the painting of a complex
or combine them with the Functions menu, surface, we have to prepare the UV coordi-
shown on the right in the same figure. These nates. With basic shapes like the cylinder,
layers can also be multiplied with each other sphere, cube, and the spline-generated NURBS
or used for other color changes. objects, this isn’t necessary since these objects
The majority of the more important paint are already generated with UV coordinates.
tools can be found as icons on the left side of However, as soon as changes are applied to
the layout, as shown in Figure 4.56. There these objects, such as extrusions or manually
are many familiar tools, such as a brush, generated faces, the existing UV coordinates
stamp, eraser, and tools for text. The settings won’t fit anymore because they are not auto-
for the selected tool can be found in the matically updated by all tools.
To edit the UV coordinates, first switch to of Figure 4.57. There you can find a num
BP UV Edit. In the icon palette at the upper ber of standard commands for mirroring,
edge you will find some familiar icons, such combining, and maximizing the selected UV
as the ones used to switch to point, polygon, polygons. It is important to know that the
or Use Edge Tool mode. But there are new, value range of the UV coordinates spans only
similar-looking icons as well, consisting of a between 0 and 1. Deviant values are possible
texture symbol as well as one for points and as well, as long as tiling is active in the mate-
one for a polygon. With these icons you can rial. Then the UV polygons will receive a part
switch to the editing mode of the UV coordi- of the neighboring tile.
nates, which can be edited as UV polygons as
well as UV points. Interactive Mapping
We should do this step by step, in order
for the UV polygons of the character to This value range of the original tile of every
unfold as flat as possible. It is helpful that the texture, the coordinate range between 0 and
selection of polygons can, at the same time, 1 in the X and Y direction, is depicted as a
be used as a UV polygon selection. Start by highlighted square. You can find this texture
selecting the polygons of the lower part of view in the BP 3D Edit layout directly to the
the body, as well as the visible outer seg- right of the editor viewports. Later, when
ments of the lower jaw, as shown in Figure placing and scaling the UV polygons, you
4.57. The familiar selection methods are avail- should make sure that all faces are located
able as icons in the upper icon palette. within this highlighted square. However, we
Switch to Use UV Polygon Edit Tool are not that far yet and first have to unfold
mode and open the dialog of UV Commands the UV polygons. We will use the Start
in the UV Mapping group. This section of the Interactive Mapping button in the UV Com-
BodyPaint 3D layout is shown on the bottom mands. This mode allows us to restrict one of
288 Chapter 4: Character Animation
— Figure 4.59: The result of the interactive mapping and the manual unfolding of the UV polygons.
faces visible from the outside and ends at every object can be cleanly unfolded. In some
about the height of the corner of the mouth. cases, though, this can become quite time
The back of the head, including Trolly’s back, consuming, especially when the object con-
will be unfolded in another step. Here, too, I tains a large number of points or is shaped
have used interactive mapping with a spheri- irregularly. For these instances, there are spe-
cal projection. These UV polygons might have cial unfolding algorithms available that can
to be edited at point level in the texture be found in the Relax UV section. We talked
view as well. about them before in reference to automati-
As an alternative, you could activate Pin cally removing overlapping faces. Additional
Border Points and use the Apply button at options allow simultaneous disconnecting of
UV Mapping>Relax UV. You should still be in UV polygons for the unfolding of otherwise
Use UV Polygon Edit Tool mode and the cylindrically aligned polygons to a flat plane.
UV polygons should be selected. This tool This is often used for the arms and legs of a
automatically rearranges the UV polygons character.
so overlaps disappear. This rearrangement is Besides the necessary selection of the poly-
based on the area defined by the pinned gons, the course of the cut for the automatic
open edge of the outside of the selected UV unfolding has to be specified as well in Use
polygons. For clarity, you should also move Edge Tool mode. Figure 4.61 shows such a
these UV faces to the side or above the other selection for the example of the arm. In our
UV polygons in the texture view, so a sepa- case I made the cut along the side of the
rate “island” of UV faces is created. Use the shoulder and followed the natural course of
same principle for the soles of the feet and the polygons down to and around the finger
the back, which you can unwrap with a flat tips. Generally, such cuts are made in less visi-
interactive mapping. The polygons on the ble places, since a texture offset might be
inside of the mouth can also be unwrapped obvious there.
this way, as well as those of the gum and the First we will work the same way as before.
lower mouth cavity. Select the polygons of an arm—the edge
selection will not be deactivated—and then
Automatic Unfolding switch to Use UV Polygon Edit Tool mode.
Use the Interactive Mapping with a cylindri-
By using the technique of interactive map- cal projection, as shown in Figure 4.62, and
ping with the correction of the UV points, adjust it to the position of the arm.
Applying Joints and Weightings to the Character 291
— Figure 4.61: Preparation for the unfolding of the arms and hands.
After finishing the interactive mapping, ated that are used to fix parts of the surface.
change to the Relax UV category of the UV The UV coordinates are then unwrapped
Mapping section. Everything there should be based on these fixed points.
deactivated except for the Cut Selected There are two unfolding methods avail-
Edges option. The selected edges will turn to able: LSCM and the newer ABF. The latter
open edges at the selected faces, and the UV is slower, but better suited for organic
coordinates can be unwrapped after clicking objects and the UV faces are straighter. In
on the Apply button. As an alternative, selec- this case, though, both modes, which can
tion tags could be used, which are pulled into be switched just above the Apply button,
the fields under the options. Besides the edge create the same good result. Figure 4.63
selection, point selections can also be gener- shows the outcome. You can see the only
292 Chapter 4: Character Animation
The UV polygons are now unwrapped onto a Not always is the concept of a rig or a char-
flat plane and a texture can be optimally acter planned in such detail that a project
placed onto them. This doesn’t guarantee a can be completed without subsequent modi-
distortion-free display of the texture on fications or additions. In our case, I think,
the object, though, since the straightening after looking at the character, that the miss-
of the UV faces doesn’t mean that the size ing eyes limit our possibilities for expressing
ratio of the UV polygons is identical to emotions in the animation. How can we
that of the geometry polygons. This is best expand the character and its rig after the
checked visually by using an even pattern as fact?
the texture. A good texture to use is the First, we need additional geometries.
Checkerboard shader, found in the Surfaces We will use two simple Cube primitives
group. The number of squares can be set in that are placed hovering above the head of
the dialog of the shader. When you use the
the character. Put them onto the same
same number of squares for both the U and
hierarchical plane as the character. This is
V directions, the result is a uniform checker-
under the Null object, which itself is subor-
board pattern. This shader can then be loaded
dinated under the HyperNURBS. The cubes
into the Color channel of our character.
are then smoothed and lose their distinc-
Figure 4.65 shows this effect on the left side.
tive shape. We will counteract that by
You can clearly see the areas of the charac-
adding subdivisions. I used two additional
ter that have an irregular projection. Espe-
cially noticeable is the area of the lower lip, segments each in the X, Y, and Z directions
contrary to the region beneath, which has of the cubes. Then I converted both cubes
too high of a resolution. Here the UV poly- with the (C) key and pulled the center
gons have to be moved closer together so points on the top and bottom apart, as
the lips take up less space. After this correc- shown in Figure 4.66.
tion, the checkerboard pattern looks much Create a new material and add a New
more uniform, as displayed on the right of Texture with white color in the Color chan-
Figure 4.65. nel, as shown on the right in Figure 4.66.
Assign this material to both eyes. The projec- conversion of the joints and their weightings,
tion of this texture is automatically set to we automatically received bone objects with
UV mapping. This is not a problem since we Claude Bonet weightings. For the creation
work with primitives that are slightly dis- of these weightings there is a tool in MOCCA
torted, but otherwise weren’t changed. that can be found at Character>Soft IK/
Then add two bone objects separately, Bones>Claude Bonet.
either from the icon palette or with The use of this tool is quite simple. First,
Character>Soft IK/Bones. Place these bones click on the bone object that you want to
lengthwise and inside the eyes as shown weight and then paint the points on the
highlighted in Figure 4.67. These bones object that are supposed to follow the bone
should then be integrated into a proper loca- with the Claude Bonet tool. A colored dis-
tion within the existing bone hierarchy. play on the object gives you feedback about
A good place would be under the head or the strength of the weighting. The radius
spine bone, so the eyes can be moved and strength of the weight tool are set in the
together with the character. Lastly, the bones Attribute Manager. That way, you can paint
have to be fixed so their position and rota- the complete eye geometry of an eye, since
tion are saved. Therefore, select one of the the eyes should be controlled exclusively
two new bones and select Character>Soft by the new bones. Figure 4.68 shows the
IK/Bones>Fix Bones. Do the same with the hierarchy of the new objects and the dialog
second bone object. of the Claude Bonet tool. You can see there
as well that I applied additional compositing
Adding Weightings Manually to tags to the eyes. If you don’t have MOCCA
the Bone Objects available, then you can achieve the same
effect with Vertex Maps. You can paint them
In order to let the bones know what areas of with the Brush tool from the Structure
the character they are supposed to influence, menu, with the live selection or by direct as-
they have to receive weightings. There are signment to a point selection. Select all points
two methods to accomplish this. With the of the left eye and choose Selection>Set
Applying Joints and Weightings to the Character 295
Vertex Weight. Give the generated Vertex Tags>Restriction. In the name list of this tag
Map a meaningful name in the Attribute in the Attribute Manager, enter at the
Manager and then create a Restriction tag uppermost spot the name of the previously
for the bone located within this eye. It can generated vertex map. Now this bone object
be found in the Object Manager after a right is weighted and can be used for the character
click on the bone object at CINEMA 4D animation.
296 Chapter 4: Character Animation
Painting Objects Directly in across one of the eyes and paint it directly in
BodyPaint 3D the editor viewports. Figure 4.69 shows an
example of the painting.
After you are done with the painting, take
So far we have only unfolded the UV poly-
a look at the side and the back of the eye, as
gons in BodyPaint 3D and therefore prepared
shown on the left of Figure 4.70. The painted
them for the texturing. BodyPaint 3D can also structure suddenly appears multiple times. It
be used for the painting of objects. Change to does so because the UV polygons of a cube
the BP 3D Paint layout and activate the new primitive are placed on top of each other by
eye material in the Material Manager by default. The texture in front is then automati-
clicking away the red cross behind it. Select cally projected onto the five other sides of the
the brush tool from the icon palette on the cube. We can correct this easily in our case.
left side and set its size and color according to Select all faces that are not supposed to show
your taste. Then move the mouse pointer the eye motif. Change to Use UV Polygon
Edit Tool mode and activate the scale tool. directly on the character the areas that are
Shrink the selected faces so much that they meant to have another material applied later.
are placed in the lower left corner of the tex- I envisioned the body to be covered with
ture. You can see the corresponding texture toad-like warts, except the feet and the inside
view in the middle of Figure 4.70. That way surface of the hands. They will receive a dif-
the center of the painted texture remains only ferent material and should therefore be
at the front faces of the eye. All other faces marked on the character with the black paint.
just show white. If you can’t paint all areas within the editor
viewports, then switch to the texture view
Texturing the Body and paint there instead, as shown in Fig
ure 4.71. In this texture view you have the
Finally, we will concentrate on the texturing advantage of painting directly onto the UV
of the character’s body. At the beginning of polygons, and you can see their proximity to
the workshop we made a material and cre- the other UV islands as well.
ated a new texture in its Color channel. This When you are happy with the masking of
texture was later replaced by the Checker- the hands and feet, load this texture into
board shader, to control the unwrapping of the activated Alpha channel of the same
the UV polygons. You can get the original material. This automatically turns the black
white texture back by opening the shader painted areas transparent and allows you to
menu within the channels texture area and see another material underneath. Again, use
looking into the Bitmaps entry. There, you the Bitmaps entry of the shader menu in the
can find a list of all textures used within Texture area of the Alpha channel to load
the scene. You should also be able to find the custom texture.
and select the texture with the standard In the Color channel we will now load a
name Mat_Color_1, which then replaces the prepared toad skin texture. Of course, we
Checkerboard shader. could have made the effort to create the
If this texture was not created or got lost, texture directly in BodyPaint 3D, but this
simply create a new texture with a white would go beyond the scope of this work-
color in the Color channel, using Create New shop. I created this texture by cloning and
Texture. As previously done with the eye, copying different toad images that I found
use a brush with a black color and paint on the Internet. The coloring can be adjusted
298 Chapter 4: Character Animation
within CINEMA 4D using the Colorizer slightly raised. Since the warts are dark in
shader, found in the uppermost level of the the image, the Strength of the Bump
shader menu. After the toad skin texture is effect, otherwise based on the brightness
loaded into this shader, you can exchange of the image, needs to be set to a negative
the original colors with a custom color gra- value. Figure 4.73 shows on the right side
dient and recolor the image. This shader can the use of the painted image in the Alpha
also be used to turn color images into gray- channel.
scale or to color grayscale images. Figure The highlights can be set any way you
4.72 shows the texture being used and its want, depending on whether you would like
recoloring in the Color channel using the the skin to look dry or wet.
Colorizer shader. Feel free to be creative We still need a second material for the
with your color choices, or simply use the hands and feet of the character. The first
provided skin texture with its original step is to duplicate the skin material with
colors. Edit>Copy and Edit>Paste, and to deactivate
I loaded the same skin texture into the the Alpha and Bump channels of the dupli-
Bump channel of the material and used a cated material. Remove the skin texture from
negative Strength value, as you can see in the Color channel as well—use the Clear
Figure 4.73. I would like the warts to be command in the shader menu—and use the
Applying Joints and Weightings to the Character 299
color slider there to set an appropriate color Make sure that the yellow material is
tone. In my case, I colored the skin with the placed underneath the skin material, which
Colorizer so the warts have a reddish tint means put it to the left of the skin material
while the base color of the skin appears in the Object Manager. Only in that way can
rather yellowish. I therefore set a correspond- the yellow material be seen through the alpha
ing yellow color and applied this material to areas of the skin. Figure 4.74 shows an exam-
the character, too. ple of the finished look of the character.
300 Chapter 4: Character Animation
Ambient Occlusion receives its settings from File option. After clicking on the Bake button,
the render settings, and therefore doesn’t need we will receive a file in which we can mix the
to be applied as a shader within the material. Ambient Occlusion with the color of the sur-
Ambient Occlusion doesn’t even have to be face. Don’t be irritated by the small size of
activated in the render settings. the preview window that shows the progress
Every activated option for the baking of a of the calculation. It shows the result of only
surface property enables some additional one baked channel, but all checked properties
options below it. For baking the Color you are saved. Figure 4.76 shows a possible result.
can include the influences of lighting, shad- Clearly visible is the darkening by Ambient
ows, diffusion, and luminance. We will leave Occlusion between the lips, the base of the
everything deactivated, though. Ambient arms, and of course the mouth cavity.
Occlusion could be set to calculate the self With the baking of textures, it is very
shadowing only. In addition, the intensity of important to check the surface normals. They
the Ambient Occlusion can be converted to should uniformly point outward so no irregulari
weightings for the points of the object and ties occur during the calculation of Ambient
saved as a vertex map. This map could then Occlusion or lighting effects. Load this baked
be interpreted by the Vertex Map shader. texture into the Color channel of the skin tex-
However, we don’t need that option and will ture and deactivate the Alpha channel of the
keep it deactivated. material. The second, yellow material for the
I decided to save the baked texture in hands and feet can be removed entirely from
Photoshop format and checked the Single the character. These colors are now baked
302 Chapter 4: Character Animation
A click onto one of the commands in the or individual arm movements, can then be
list shows its ID as well as existing key added to make the animation appear less
board shortcuts for executing the command. linear.
That way you can use individual shortcuts as The timing is very important during an
well. animation. The wrong approach is to set too
The look of the hotspot icons is set by the many keyframes in the beginning. First comes
Visual Selector and based on the type of the length of the animation, then the speed
linked objects. We have a selection of sym- has to be determined. This is also called
bols to choose from, in a list of preset icons Blocking the animation. The goal is to depict
which opened after clicking on the icon of a the animation with just a few core poses.
hotspot as shown in Figure 4.80. The color- The time between the poses should be set in
ing of the icons can be altered as well. The such a way that the correct speed of the
right side of the figure shows an example of character movement is achieved. With a walk
the individual composition of the applied movement, this can be set with three poses,
links. where two of these poses are identical. The
first pose shows the character, for example,
with the left foot forward and the right foot
Creating a Walk Cycle in the back. The second pose shows an oppo-
site step, which means the right foot is now
With animations of characters, the term in front and the left foot in the back. Figure
Walk Cycle is often used. It is a complete 4.81 shows these two poses from different
walk movement of the character that can be perspectives. The upper row shows the pose
turned into a walk or run by automatically from frame 0 of the animation. It is created
repeating it multiple times. That way we by moving and rotating the handlers at the
have to use only a few keyframes to allow feet, and by the moving and rotation of the
the character to walk a certain distance. root bone to indicate a shifting of the char-
Additional movements, like facial expressions acter’s weight.
Animating the Character 305
For more clarity in the timeline, I like to In order to check the speed of the step, play
turn off all objects, materials, and any addi- the movement of the character in a looped
tional information that have nothing to do animation. In the Animation menu of CIN-
with the animation. Click on the eye symbol EMA 4D, set the Play Mode to Preview
in the title bar of the timeline. This causes a Range and Cycle. Then reduce the preview
list to appear, containing several elements range by moving the end arrows in the pow-
that can be displayed in the timeline, such erslider to an area between frame 0 and
as the Render Settings or the materials. A frame 28. The necessary steps are shown in
click on the eye symbol next to these ele- Figure 4.84. Frame 29 of the animation looks
ments turns them invisible in the timeline. exactly like the state of the character in
This is no loss for us, since we didn’t want frame 0 and can therefore be skipped. Other-
to animate these elements in the first place, wise, there would be a hesitation at the end
and it gives us more space and a less clut- of a step, since this pose appears twice.
tered look. In addition, you can use the Because so far we are working with only
magnifying glass symbol to control which three keyframes, it is still easy to adjust the
objects or settings can be found by the speed of the steps. Simply select and move
search function and which ones should be the keyframes, at frame 14 and 29 in the
ignored. This can be helpful with complex main track of the timeline. Once you are
scenes containing many animated objects. pleased with the timing of the steps, move on
The search function itself is hidden behind to the details. You should then concentrate
the magnifying glass in the title bar of the on the rolling motion of the feet and the
timeline. shift in weight.
— Figure 4.84: Necessary settings for the cyclic playback of a certain section of the animation.
Animating the Character 307
four keyframes for the external handlers of A Y movement, the up and down moving
the arms until their animation looks right. of the stomach, does not occur. The charac-
Then jump back to the beginning of the ani- ter instead falls slightly forward as soon as
mation and fix the existing animation of the the front foot has contact with the floor. At
arms with additional keyframes in even steps. the same time, the lateral shift along the
You could record rotation keyframes for the X axis causes a weight shift to the front
arms at every two frames, to capture with foot. The maximum of this lateral movement
keyframes the dynamic behavior controlled is always reached at the time when the rear
by the MOCCA IK. foot just starts to depart the floor and begins
The reason for not that many keyframes to move forward. As long as you use the
being needed for the legs and the body is standard Spline interpolation for the key-
that we don’t save their poses with key- frames, you can control the course of these
frames alone, but can also influence the sec- curves with tangents in the display of the
tions in between the keyframes with curves function curves, without having to set addi-
and tangents. Figure 4.87 shows in the upper tional keyframes.
part my keyframes for a complete walking
sequence. Below you can see as an example Onion Skinning/Ghosting
the display of the stomach bone movement
in both the X and Z directions. For this view During the refinement and evaluation of ani-
of the function curves of an animation, you mations, the constant comparison of the cur-
have to change to the corresponding mode, rent pose with the previous and following
as indicated by the arrow in the figure. one is important. Therefore, the playback of
Animating the Character 309
the animation in real time, in my case with You can activate this effect in the Ghost-
25 frames per second, is important. This can- ing settings. Several display modes offer dif-
not always be achieved, though, when com- ferent views in the editor. Figure 4.88
plex animations or high-resolution objects shows an example. The movement phases of
have to be displayed. In these cases, the objects can be shown as a track curve, as
Onion Skinning can be a big help since it single points, or as the whole object surface.
depicts past and future states of an animated With deformations there are certain restric-
object within one image. Apply a Display tag tions, since the animation has to be saved
to the animated object. This tag can be found first in a cache with the Display tag. You can
in the context menu in the CINEMA 4D Tags, find the corresponding function in the lower
after a right click on the object in the Object part of the dialog. By using the Calculate
Manager. Cache button, you initiate the saving of the
310 Chapter 4: Character Animation
When the clips are arranged in a manner available in addition to the keyframes of the
that creates overlaps, the animation of the Motion Clip.
clips is blended. The length of the blending
is defined with Blend Start and Blend End. Mixing Motion Clips
This area can be edited directly in the time-
line as well. The blending itself can be The strengths of Motion Clips can only be
defined in the Blending menu. The so-called used to their fullest extent when several sep-
ease curves create a natural-looking transi- arate clips are combined with each other.
tion between the clips. Depending on the Therefore, create another clip, but this time
Ease In and Ease Out settings, this transi- only for the head bone and the subordinated
tion starts slowly and then speeds up or bone objects. Depending on your walk cycle
does the opposite. The Easy Ease setting cre- animation, this bone might already have
ates a slow blending in and out of the clips. some keyframes, which cause the mouth to
This is similar to the normal spline interpola- open and close slightly during walking so
tion between keyframes. A separate Spline this area doesn’t appear too static. If you
mode is also available that makes it possible don’t have such keyframes, you could create
to define an individual curve. The curve that them now. An overlap of bone object key-
runs from top left to bottom right by default frames and Motion Clip keyframes can be
causes a linear blending. Control points, excluded during the recording of new key-
which can be added to the curve by clicking frames for the bone hierarchy by using the
on it, allow you to shape a different behav- Muting symbol behind the Motion Clip of
ior curve. the walk cycle. This filmstrip symbol acti-
Back in the Keyframe mode of the Time- vates or deactivates the evaluation of se
line, you can see that a copy of the objects quences in the Timeline. The term Mute is
in the Motion Clip was created. Figure 4.95 used in CINEMA 4D for this function. An
shows that. In the Object Manager every- animation can be muted for a period of time
thing stays the same, though; no new that way.
objects were created. Depending on the set- If several keyframes are created for the
ting of the Remove Included Animation movement of the head or mouth, select
from Original Object option when the the head bone and choose Animation>Add
Motion Clip is created, the keyframes are Motion Clip. This time you can activate
either gone from the original objects or still Remove Included Animation from Original
become more difficult, for example, to have complete blend of multiple clips. I will add
the character walk around a curve. In order to two more motion sequences to the original
change the position of the animated object in scene with the walk cycle, a so-called idle
3D space without having to change the existing animation and a jump. An idle animation
keyframes, we need to use the Pivot object. contains a minimum of body movements,
You can create it by clicking on the col- such as those that are used in video games
ored area of a motion layer in the timeline when the game character doesn’t receive
and switching to the Advanced section in the input from the player. This could be a simple
Attribute Manager. Figure 4.100 shows the shift of weight from one foot to the other or
dialog on the left. With the Create Pivot or a look around. The jump animation expands
Create Keyframe Pivot button, you can cre- the motion range of the character, for exam-
ate an object that is similar to a Null object. ple, to jump over an obstacle.
By moving or rotating this Pivot object, the Figure 4.101 shows how simply such an
animation of the motion layer can be moved idle animation can be structured. The charac-
or oriented differently. This Pivot object can ter just bends its knees a bit by moving the
also be animated with keyframes and there- root bone slightly downward. This has to be
fore could generate a forward movement of done in the scene where the external help
the character without having to change the objects and the IK tags are still active.
keyframes of the motion clip. Your jump animation could look similar to
It is not so important whether you create that shown in Figure 4.102—just use your
the Pivot object with or without keyframes. creativity. I put the three different anima-
They can always be manually added later. tions directly into the timeline, one after the
The handling of the Pivot object is not much other. This idle animation lasts, in my scene,
different from any other normal object. Only from frame 0 to frame 24. At frame 25 the
the display in the editor, contrary to the Null jump starts, and it returns to its start posi-
object, can be changed. This can be seen on tion again at frame 49. The walk cycle is
the right of Figure 4.100. With the Radius placed between frame 50 and frame 79.
value entered directly on the Pivot object, its Figure 4.103 shows these areas highlighted
size can be changed. by their selection.
Besides the variation and addition of ani- As before, create different Motion Clips
mations, the Motion Clip can be used for a for these three areas. The keyframes of the
— Figure 4.103: The keyframes for the idle, jump, and walk animation in the timeline.
Animating the Character 319
original hierarchy can be left alone. You can the beginning of the clip. This way you can
simply set them to mute by deactivating the take from each layer exactly the part you
filmstrip behind the root bone in the time- want to use in the animation.
line. In Motion Mode, arrange the clips to
your liking and repeat the walk cycle multi- Automatically Blending Clips
ple times. Figure 4.104 shows the status right
after creating the three clips. Arrange and mix the motion layers in the way
they should be played. You can do this in the
Trimming Clips same way the second head animation was
added. This can be made even easier with the
Make sure that the clips end with the same Make Transition function in the Motion Sys-
pose with which they started. If you included tem menu of the Timeline. When you create a
the whole frame range of the animation connection between two motion layers with
when the clips were created, click on the col- this tool, by pulling the mouse directly in the
ored area of each layer, and for End increase timeline, an Easy Ease blending between the
the value to 1 in the Attribute Manager. You movements is automatically generated.
can find this value in the Trim settings of the Figure 4.105 shows this procedure on the
Advanced section. The layer then ends one left side. The arrow indicates the pulling of the
frame before the motion clip is completed tool from one layer to the next. After the mouse
and doesn’t show the last keyframe. This pointer is released, a blending is created, as
could also be done with the Start value in shown on the right of the same figure. Since
the walk cycle is repeated several times, the but also for information applications or archi-
tool automatically blends the jump out at the tecture walkthroughs.
end of its run and again leaves the control of Unity 3D creates, at the start of a new
the character to the walk cycle. project, a so-called Assets folder in which
Now you are familiar with all the impor- you should save all objects, materials, and
tant techniques and functions of the Motion animations that are used within the project.
Clips and their layers. This provides you with These elements automatically appear in the
a powerful tool for the creation of complex Project window of Unity 3D and can be
animations that can quite easily be changed pulled into the game scene from there. First,
and varied later. The possibility of animating we tell Unity 3D that the animation in the
the Pivot point separately makes it easy to scene is supposed to be split into three parts.
use motion clips multiple times within a These can be separated from each other by a
scene and to utilize the created animations in number of frames. Here, mainly Motion Clips
other scenes as well. are generated. As you can see in Figure 4.106,
I again skipped the last image of the anima-
tion so there is no hesitation at the end of
the animation.
Game Development
The individually given names of the clips Unity 3D even takes over the settings of
are later used in the script language to gain the HyperNURBS object and automatically
access to the single animations. First, we smoothes our character.
determine the standard behavior of the char- The key setting is the render subdivision
acter. Pull the character from the Project value of the HyperNURBS. Just remember
window into the Hierarchy view. This is sim- that we have to use the smallest possible
ilar to the Object Manager in CINEMA 4D number of polygons. Ideally, the character is
and lists all objects in the scene. The Inspec- already modeled, so no additional subdivi-
tor window works like the Attribute Man- sions and smoothings are necessary and the
ager and shows parameters, such as the details are simulated by the texture.
current position in 3D space or general set- The actual control of the game is done
tings of the selected object. In the Animation with scripts that react to objects and the
section the three loaded clips of our charac- entries of the player. Such scripts can be
ter appear. Figure 4.107 shows this area of written in JavaScript, whose syntax can be
the Unity 3D layout on the right. The setting learned quickly. Such a script for the control
of the Wrap Mode defines the behavior of of our character could look like the one
the clip. In this case I have selected Loop. shown in Figure 4.108.
The animations are then played in an end- There are fixed structures, like functions,
less loop by default. Play Automatically is that are executed at certain times in the
selected as well; this causes the automatic game. Function Start is executed only once
playing of the idle animation when the game at the beginning of the game; Function
is started, since it was chosen at Animation Update, on the other hand, is used with every
as the standard animation. redraw of the screen. In Function Start the
There’s not much more to do, since, with- speed of the animations can be changed to,
out interaction with the keyboard, we can’t for example, make the walking appear faster
add interactivity. The game could be com- than specified in the keyframes. I left these
piled and started, but then it would only values at the multiplier 1.0 and instead
show the character in the idle animation. changed the playback behavior of the jump
animation from a cyclic loop to a single play- that a soft blending between the idle and the
back. This allows us to inquire about when walk is achieved. For a jump, the soft blend-
the jump has ended, so we can show the idle ing between clips wouldn’t look so good. The
or walk animation again. First, assign the up jump could wind up being blended in the air
and down cursor buttons to the move vari- with the idle or walk animation and would
able in the Update function. Then the if look quite funny.
inquiry asks for the state of the left mouse The basic structure of the script is done,
button. When the mouse button has been and now we could add some commands for
used, this will initiate the playback of the moving the character during its jump or while
jump animation. The inquiry (!animation. walking, or add collision detection. This would
IsPlaying(“jump”)) executes the following take us too far from the subject of this chap-
sections of the script only when the jump is ter, though. The goal of this detour was to
finished. Then a value of the move variable show you additional possibilities for character
executes the walk animation. When this vari- animation and how the new Motion Clips of
able is empty, the idle animation will follow CINEMA 4D can be utilized in that way. Have
instead. The CrossFade commands ensure fun animating!
Index
A animation palette
icons, 203
ABF, 291 keyframe editing, 204–205
Abs Mode, 278 parameter keyframe creation,
Absorption, 84, 135, 224 204
Absorption Color, 134 characters, see Character
Absorption Distance, 84, 134 animation
Absorption Filter, 135 scene settings, 201–202
Acceleration, 229 stadium, see Stadium audience
Accurate Color, 223 animation Axis, 72–73, 249, 271, 310
Action menu, 303 Anisotropic, 65 A Without B mode, 16
Active Objects, 307 Anti-Aliasing, 26, 137
Adaptive, 219 Apply All, 277
Add, 246 B
Apply Selected, 277
Add Doodle Frame, 254 Apply, 11, 20, 41, 45, 48 Back tag, 37
Add Motion Clip, 314 Arc object, 110 Bake Effectors, 277
Advanced, 319 Area, 119, 121, 239 Bake Expressions, 311
Advanced Renderer, 120, 125, 228 Area Light, 26–27, 121 Bake Solver, Baking Layer, 219
Advanced workshops, see Outdoor Arms Bake Texture, 300
scene lighting; Room character modeling, 265–266 Baking Frame Step, 219
illumination rigging, 273–274 Basic, 119, 127
Aerodynamics, 216 Array object, 75–76, 81, 131 Basic Properties, 63
Age, 237 As Seen Intensity, 118–119 Bend object
AIM, 280 Aspect Ratio, 68 advanced workshops, 180, 185, 192
Align, 184, 280 Assets, 320 short projects, 37, 48, 50
Align Axis, 271–272 A Subtract B, 9, 14, 221 Best Anti-Aliasing, 70
Align Clone, 245 Atmospheric, 232 Bevel tool, 81, 94, 101, 153
Align Normals, 34, 40 Atmospheric Strength, 117 Bezier spline, 12, 71
Align to Spline, 248–249, 252 Attribute Manager Bias, 236
All, 77 animation, 204, 208, 228, 231 Birth, 187, 232
All Frames, 202 character animation, 254–255, 274, Birth Rate, 228
Along Normals, 73 281, 286, 288, 295, 300, Bitmaps, 297
Along Spline, 183 302–303, 313, 316–317, 319 Bleed, 276
Alpha channel HyperNURBS object modeling, 33, Blend Channel, 196
advanced workshops, 176, 178, 190 35–36, 38–39, 41, 44, 48, Blend End, 314
animation, 297–298 53, 59, 61–62 Blend Start, 313
short project examples, 69 modeling with parametric objects, Blending menu, 314
Ambient Occlusion 2–3, 5–6, 8–9, 11, 13, 18–19, Blinn shading, 158
character animation, 300–301 21, 25 Blurriness
outdoor scene lighting workshop, outdoor scene lighting workshop, animation, 222
160, 174, 176, 178 149, 152–153, 159, 167, 181, modeling projects, 22, 66–67,
room illumination workshop, 194 85, 116
123–124, 127, 130, 137, 139 room illumination workshop, 92, BodyPaint 3D
short project examples, 26, 28, 31, 98, 113, 116, 131 painting of objects
66–67 vase short project, 72–73, 76–77, baking textures, 300–301
Amplitude, 163 81–82 texturing of character body,
Anchor, 281 A Union B, 9 297–299
Angle, 80 Auto Normalize, 276–278 texture creation, 285–286
Angle Horizontal, 229 Auto Planar, 65 UV coordinate unfolding
Angle Vertical, 229 Auto Tangents, 209, 311 automatic unfolding, 290–292
Animation menu, 306, 321 Auto Weight, 275 individual UV point moving,
Animation Speed, 249 Auto-Add Frames, 253–254 289–290
Animation, see also Dynamics Automatic Mode, 207 interactive mapping, 287–293
module; Particle effects; Automatic Size, 300 overview, 286–287
Timeline Axial, 218 unwrapping control, 293
324 Index
Bones menu, 271, 285, 294 IK Chain, 270 Circle spline, 11, 13, 54, 56, 131
Boolean Type, 9 MOCCA IK tag, 280–283 City, 117
Boolean Type A Subtract B, 92 orienting joint objects, 280 Clamp, 209, 311
Boole object joints Claude Bonet weightings, 294
animation, 221 arm rigging, 273–274 Clear, 108, 119
room illumination workshop, conversion to bones, 283–285 Clear Weights, 275
92, 104 leg rigging, 272–274 Clone, 255
short project examples, 8–11, 14, overview, 268–269 Cloner object, 245–246, 248, 250–251
17, 41 painting of objects with Close Polygon, 104
Bounding Box, 271 BodyPaint 3D Close Polygon Hole, 46, 96, 261
Box, 215–216 baking textures, 300–301 Close Spline, 6, 13, 149
Box Collision Detection, 217 texturing of body, 297–299 Clothilde, 219
BP 3D Paint, 285, 296 symmetry settings, 269 Cloud shader, 176, 178, 198
BP UV Edit, 287 texturing with BodyPaint 3D Clump, 170
Break Tangents, 209 texture creation, 285–286 Collision Detection, 215
Bridge tool, 50–51, 53, 71, 100 UV coordinate unfolding, Collision Rest Speed, 219
Bright Multiplier, 124 286–293 Color channel
Brightness weightings animation, 223–224
animation, 222, 224, 235 checking, 279 character animation, 285, 293,
room illumination workshop, 114, creation, 274–275 297–298
116, 134 editing and displaying, outdoor scene lighting workshop,
short project examples, 66, 84 275–277 158, 160, 162, 171, 174, 176,
B Rotation, 110 manual weighting of bone 178, 196
Brush tool objects, 294–295 room illumination workshop,
character animation, 255, 294 Paint settings, 277–278 106–108, 116, 134
modeling, 167, 185 Weight tag options, 276–277 short project examples, 22, 64,
B-Spline, 131 modeling 84–85, 88
Bulge, 80 arms, 265–266 Color Correction, 118
Bulge deformer, 2, 80 feet, 262–263, 265 Color gradient, 232–233, 236
Bump channel hands, 267–268 Color Mapping, 124, 138
advanced workshops, 112, 158, 160, jaw, 258–262 Color Mix, 233
174, 176 legs, 262 Color Mode, 246
character animation, 298 mouth, 255–258 Color Red, 246
short project examples, 18–19, 22, oral cavity, 258 Colorizer, 298–299
25, 85 overview, 255 Command ID, 303
Bump mode, animation, 234–235 toes, 262, 264 Command Manager, 303
Selection Object, 302 Compositing Background, 70, 194
sketching with Doodle, 253–254 Compositing tag
C
Visual Selector, 303–304 advanced workshops, 118, 129, 192,
Calculate Cache, 309 walk cycle creation 194
Camera object, 180, 194 cyclical playback, 306 animation, 239
Cameras, 67–68, 181 display optimization in timeline, short project examples, 25, 70, 85,
Capsule object, 16, 29, 248 306 88–89
Caribiner, see HyperNURBS object finishing, 307–310 Composition Tag, 28
modeling frame rate setting, 305 Cone object, 1
Cast Shadow, 28, 118, 130, 192 motion clips Configure, 36
Ceiling automatic blending, 319–320 Connect, 12, 46, 50, 166, 168
materials, 112–114 creation, 310–312 Constraint, 281
modeling, 96–99, 104–106 mixing, 314–316 Constraint tag, 214–215, 217, 220
Center, 77 Motion System tag, 312–314 Continue UVs, 300
Chamfer, 2, 81, 92 Pivot object, 316–317, 319 Contrast, 121, 123
Character animation trimming, 319 Convert to Bones, 283
game development, 320–321 onion skinning/ghosting, Convex Type, 153
joints and weightings 308–310 Coordinate Manager
bones overview, 304–305 advanced workshops, 110–111, 144,
menu, 271 Character menu, 275, 277, 279, 284, 150, 152
size, 271 294 animation, 213, 243
inverse kinematics Character Tags, 303 character animation, 266
activation, 279–283 Check Record Visibility, 127 HyperNURBS object modeling, 37,
general information, 269–270 Checkerboard shader, 293, 297 45, 48, 55, 62
Index 325
modeling with parametric objects, Diffuse Depth, 31, 126–127, 130, Edit scene, 183
6, 11, 20 137–138, 226 Edit Spline, 3, 92, 103, 105–106, 247
vase short project, 73, 76, 81 Diffuse Falloff, 88 Editor Camera, 68
Coordinates, 19, 62 Diffuse Reduction, 23 Effects, 64, 66, 240
Copies, 183 Diffusion channel Electric, 134
Copy, 160, 171, 186 advanced workshops, 160, 174, 176, Ellipse, 13
Copy Channel, 107 178 Ellipsoid, 215
Count, 169–170 short project examples, 66–67, 86 Emitter
Create Caps, 153, 157 Diffusion shader, 86 flight path control, 229, 231
Create Keyframe Pivot, 317 Direction, 131 objects as particles, 229
Create Motion Clip, 311 Disc primitive, 194 overview, 228–229
Create N-Gons, 153 Disconnect, 44–45, 128, 145, 255 Enable, 77
Create New Texture, 285, 297 Dispersion, 26 Enable Position, 163, 183
Create Outline, 92 Displacement channel, 107–108, 240 End, 311, 319
Create Pictures, 312 Display, 26, 53, 271, 309 End Angle, 54
Create Pivot, 317 Distance, 92 End Scale, 228
Create Polygon, 33, 40, 43–44, 46, Distance Map, 127 Energy Loss, 219
48, 51, 71, 145, 258, 260 Distorter shader, 174–175 Environment object, 236
Create Selection Object, 302 Document, 202 EPS, 219
Create Single Object, 9, 92 Doodle, 253–254 Erase, 278
Create Sky, 116 Doodle Eraser, 253 Euler, 219
Crispy, 237 Drag, 281 Evaluate Angle, 156
Crispy-Gas, 237 Draw, 272 Evaluate Bump, 300
Cube, 83 Draw Mode, 310 Exclude, 26
Cube primitive Duplicate tool, 183–184 Exit Reflections, 22, 84, 114, 134
animation, 216 Dynamic, 216 Expression, 63
character animation, 293 Dynamics menu, 217, 220 Extrude
modeling projects, 83, 100, 108, Dynamics module, work sample advanced workshops, 94, 108, 153,
110, 141, 151, 174, 185 behavior defining 157
Cubic, 114 adding two cubes, 216–217 character animation, 258–259, 262
Current State to Object, 38, 50, 156, Constraint tag, 214 short projects, 43–44, 51, 71, 81–82
185 Rigid Body Dynamic tag, Extrude Inner
Current Value, 220 215–216 character animation, 266
Curve, 277 materials HyperNURBS object modeling, 41,
Custom, 271 cube corners, 223 43, 47–48, 52
Custom Color, 119 cubes, 222 outdoor scene lighting workshop,
Custom Sun Object, 119 pendulum, 224, 226 149–150, 165
Cut Selected Edges, 291 pendulum modeling, 212–214 outdoor scene lighting workshop,
Cycle, 19, 306 render settings, 226–227 152
Cylinder, 14, 37–38, 48, 53, 56, 78 simulation room illumination workshop, 92,
Cylindrical, 19 editing, 219–220 94, 96–97, 99–101,
improving, 220–221 108–109, 12, 132
object, 217–219 short project examples, 10
D Dynamics Tag, 214 vase short project, 71–73, 79, 81–82
Dark Factor, 235 Extrusion, 82, 93
Dark Multiplier, 124, 138 E
Darken Opacity, 235 F
Data Type, 61 Ease In, 314
Death, 232 Ease Out, 314 Fall-Off, 277
Default Layer, 312 Easy Ease, 314, 319 Falloff menu, 77
Default Light, 26 Edge Angle, 44, 258 FC Mode, 210
Deformation menu, 80, 131, 156, 180 Edge Cut, 155 F-Curve menu, 210–211
Degree, 62 Edge to Spline, 103, 105, 247 Feet, character modeling, 262–263,
Delete, 12 Edit Alpha, 233 265
Density, 232 Edit menu Field menu, 218
Depth, 196 advanced workshops, 97, 151, 186 File, new file creation, 1
Deselect All, 40, 46 animation, 201 Filename, 182
Detail, 68, 121, 236, 239 character animation, 305 Filter, 207
Details Enhancement, 127, 196 short project examples, 12, 36, 57 Filter Length, 137
Diffuse, 234 Edit Polygon Tool, 44, 51 Filter shader, 88, 172, 174, 190
326 Index
Make Transition, 319 Night Intensity Ratio, 117 Oral cavity, character modeling, 258
Manage User Data, 61 No Snapping, 57 Oren-Nayar Model
Mass Center, 217 Nodes, 58 animation, 112, 175–176, 178
Material Editor, 18–19, 64 Noise shader short project examples, 22–23, 67,
Material Manager advanced workshops, 112, 134, 158, 85–86
advanced workshops, 106, 158, 174–175, 198 Orientation Axis, 73
160, 164 short project examples, 85 Orientation menu, 5, 7, 73
animation, 231, 236 Normal, 190, 196, 302 Origin, 269, 272
character animation, 285, 296 Normalize, 277 Outdoor scene lighting
short project examples, 18–19, 22, Normal Move, 73, 79, 98 global illumination settings, 196
25, 64, 84 Null object, 57, 163–165, 180, 184 green hill addition to scene,
Matrix Mode, 59 NURBS menu, 10, 46, 81, 262 184–190
Max, 61, 232, 234 lanterns
Maximum Angle, 94 materials
Maximum Ray Length, 26, 160 O coloring cube ends, 159
Melt, 151, 156 main body, 160–161
Merge, 112, 190 Object, 269, 310 paper wall, 162–163
Mesh Subdivision U, 244 Object Manager roof, 158–159
Mesh Subdivision V, 244 animation, 207, 220, 229, 245, modeling
Min, 61, 232 247–250 decorative grid, 154–158
Minimal Thickness, 136 character animation, 254, 262, 272, framework, 142–144
Mirror Plane, 110, 148 274–275, 283, 295, 299– overview, 141–142
Mix Mode, 162 300, 302–303, 309, 321 roof, 146–151
Mix Strength, 134, 174 HyperNURBS object modeling, side parts, 151–154
MOCCA, 219, 253 33–34, 38, 46, 50, 53, upper intermediate ceiling,
MOCCA IK tag, 280–285, 310 57–61, 63, 67, 70 144–146
Mode menu, 26, 59, 234, 276 modeling with parametric objects, placement in scene, 181–184
Modeling 6, 12, 14, 19, 21, 25–26, 29 tea light flickering, 163–165
advanced workshops, 92, 103, outdoor scene lighting workshop, scene environment creation
110–111, 131 141, 144, 156, 159–160, depth of field, 194
short project examples, 9, 75–76 163–165, 184, 186 ivy texturing, 190–191
Modeling Axis, 72 room illumination workshop, 103, sky, 191–194
MoGraph, 245–246, 248 106, 111, 113, 118–119, sun simulation, 194
Motion Clip, 207, 311–315, 317, 322 128–129, 133 Sky object, 196–199
Motion Layer, 311–313, 315–316 vase short project, 71, 73, 76, 81, stone stairs
Motion Mode, 207, 312–313 88 modeling
Motion Sources, 312 Objects list, 26 deforming of step, 166–167
Motion System, 312–313, 319 Objects menu grass addition, 168–173
Motion View, 313 animation, 228 overview, 165–166
MountainSide object, 191 character animation, 262, 280 step addition, 167–168
Mouth, character modeling, 255–258 outdoor scene lighting workshop, stone materials, 173–180
Move tool 156, 163, 181 Outer Distance, 224
advanced workshops, 94, 108, 167, room illumination workshop, 92, Outer Radius, 121
174, 185 110, 133 Output, 32, 202, 227
character animation, 288 short project examples, 35, 46, Output Lower, 62
short project examples, 13, 33, 57–58, 75 Output Range, 62
37–38, 62, 76 Octa Type, 221 Output Upper, 62–63
Movement, 92, 149–150 Offset Oversampling
Movie Clip, 312 advanced workshops, 96, 97–99, animation, 219, 223–224
Multiply, 162, 241 108 modeling, 29–30, 127, 137, 163,
Multi Shader, 246 animation, 258 192
Mute, 209 short project examples, 39, 41, 44, Ozone, 117
48, 82
Offset Y, 241
N OK button, 61, 156 P
Omni, 224
New Material Onion Skinning, 309–310 Paint, 276–277
advanced workshops, 106 Only Select Visible Elements, 52, 167 Paper object, 162
short project examples, 18, 64, 84 Open, 61 Parameter, 59, 312
New Texture, 293 Optimize, 79, 156, 166, 255 Parametric objects, see Flashlight
Newton, 218 Options, 276, 278, 300 Parent, 269
Index 329