Start with this task
How do you give a rounded character graphic shadows?
A ceramic lucky cat rendered in three bands of light. Compare it with a glazed version of the same model.
Blender 5.3.0
Inflate the selected tip of the raised paw while preserving the face and ears. Compare the silhouette where the paw meets the background.
No model or texture download is needed. Use the lesson below to build this scene in three passes, from the first shapes to the camera view. Pause between passes to inspect the model and materials.
Select a product name for its manual. In Blender, open Edit → Preferences → Add-ons and enable the products listed here.
Save your current file and choose File → New → General. Open the Scripting workspace, choose New in the Text Editor, then expand the scene recipe below. Copy all of it and paste it into the Text Editor.
import bpy
import importlib
import math
import random
from math import cos, sin, pi, tau
from mathutils import Vector, Quaternion
def product_module(path):
base, _, sub = path.partition('.')
actual = next((a.module for a in bpy.context.preferences.addons if a.module.rsplit('.', 1)[-1] == base), None)
if actual is None:
raise RuntimeError('Enable the required SmartTools extension in Preferences: ' + base)
return importlib.import_module(actual + ('.' + sub if sub else ''))
def product_symbol(path, name):
module = product_module(path)
if hasattr(module, name):
return getattr(module, name)
return importlib.import_module(module.__name__ + '.' + name)
def drawing(scene):
builders=product_module('smart_shader_suite.builders')
def bx(name, loc, dim, m, r=0.04):
bpy.ops.mesh.primitive_cube_add(size=1, location=loc)
o = bpy.context.object
o.dimensions = dim
bpy.ops.object.transform_apply(location=False, rotation=False, scale=True)
return finish(o, name, m, r)
def finish(o, name, m, r=0):
o.name = name
o.data.materials.append(m)
if r:
be = o.modifiers.new('Highlight radius', 'BEVEL')
be.width = r
be.segments = 4
be.harden_normals = True
o.modifiers.new('Planar normals', 'WEIGHTED_NORMAL')
return o
def ball(name, loc, scale, m):
bpy.ops.mesh.primitive_uv_sphere_add(segments=48, ring_count=32, location=loc)
o = bpy.context.object
o.scale = scale
for f in o.data.polygons:
f.use_smooth = True
return finish(o, name, m)
def cyl(name, loc, r, d, m, rot=(0, 0, 0), edge=0.015):
bpy.ops.mesh.primitive_cylinder_add(vertices=80, radius=r, depth=d, location=loc, rotation=rot)
o = bpy.context.object
for f in o.data.polygons:
f.use_smooth = len(f.vertices) == 4
return finish(o, name, m, edge)
def line(name, coords, r, m):
cu = bpy.data.curves.new(name, 'CURVE')
cu.dimensions = '3D'
cu.resolution_u = 16
cu.bevel_depth = r
cu.bevel_resolution = 4
sp = cu.splines.new('BEZIER')
sp.bezier_points.add(len(coords) - 1)
for (p, c) in zip(sp.bezier_points, coords):
p.co = c
p.handle_left_type = 'AUTO'
p.handle_right_type = 'AUTO'
o = bpy.data.objects.new(name, cu)
scene.collection.objects.link(o)
cu.materials.append(m)
return o
def mesh(name, loc, verts, faces, m):
me = bpy.data.meshes.new(name)
me.from_pydata(verts, [], faces)
me.update()
o = bpy.data.objects.new(name, me)
scene.collection.objects.link(o)
o.location = loc
for f in me.polygons:
f.use_smooth = True
return finish(o, name, m)
def mat(name, c, metal=0, rough=0.4, em=0):
m = bpy.data.materials.new(name)
m.use_nodes = True
b = m.node_tree.nodes.get('Principled BSDF')
b.inputs['Base Color'].default_value = (*c, 1)
b.inputs['Roughness'].default_value = rough
b.inputs['Metallic'].default_value = metal
if em:
b.inputs['Emission Color'].default_value = (*c, 1)
b.inputs['Emission Strength'].default_value = em
return m
def shader(name, fn, c, **props):
m = bpy.data.materials.new(name)
getattr(builders, fn)(m, dict(base_color=[*c, 1], **props))
assert any((n.type == 'BSDF_PRINCIPLED' for n in m.node_tree.nodes))
return m
def brushed(name, c):
return shader(name, 'build_brushed_metal', c, roughness=0.29, anisotropy=0.48, brush_scale=145, detail_bump=0.014)
def geo_ring(name, loc, major, minor, m):
data = vars(product_module('smart_geometry_suite.max_procedural_primitives.mesh_generators'))['make_torus'](dict(radius1=major, radius2=minor, segments=112, sides=16))
return mesh(name, loc, data['verts'], data['faces'], m)
def aim(o, p):
o.rotation_euler = (Vector(p) - o.location).to_track_quat('-Z', 'Y').to_euler()
def light(name, pos, target, power, col, w, h=None):
d = bpy.data.lights.new(name, 'AREA')
d.energy = power
d.color = col
d.shape = 'RECTANGLE'
d.size = w
d.size_y = h or w
o = bpy.data.objects.new(name, d)
scene.collection.objects.link(o)
o.location = pos
aim(o, target)
def studio(bg, lightcol=(1, 0.85, 0.65)):
bx('Seamless studio floor', (0, 0, -0.24), (200, 200, 0.45), mat('Set', bg), 0)
light('Large diffusion', (-4.4, -5, 7), (0, 0, 1.6), 640, (1, 0.91, 0.8), 5)
light('Warm rim', (1.3, 3, 5), (0, 0, 1.5), 760, lightcol, 3.8)
light('Cool strip', (4, -1.2, 3.1), (0, 0, 1.4), 300, (0.6, 0.82, 1), 1.5, 4)
def shoot(pos, target, scale, lens=None):
cd = bpy.data.cameras.new('Art direction')
cam = bpy.data.objects.new('Art direction', cd)
scene.collection.objects.link(cam)
scene.camera = cam
cam.location = pos
aim(cam, target)
if lens:
cd.lens = lens
else:
cd.type = 'ORTHO'
cd.ortho_scale = scale
bpy.context.view_layer.update()
cd.smart_camlight_settings.rig_target_distance = (Vector(target) - cam.location).length
assert bpy.ops.smart_camlight_suite.create_camera_rig(camera_name=cam.name) == {'FINISHED'}
assert any((c.type == 'TRACK_TO' and c.target for c in cam.constraints))
def active(o):
bpy.ops.object.select_all(action='DESELECT')
o.select_set(True)
bpy.context.view_layer.objects.active = o
world = bpy.data.worlds.new('Ambient')
scene.world = world
world.use_nodes = True
world.node_tree.nodes['Background'].inputs[0].default_value = (0.26, 0.34, 0.44, 1)
world.node_tree.nodes['Background'].inputs[1].default_value = 0.27
scene.render.engine = 'CYCLES'
scene.cycles.samples = 24
scene.cycles.use_denoising = True
scene.render.threads_mode = 'FIXED'
scene.render.threads = 5
scene.render.resolution_x = 1120
scene.render.resolution_y = 730
scene.render.resolution_percentage = 100
scene.render.image_settings.color_mode = 'RGB'
def cone(name, loc, r1, r2, h, m, segments=16):
bpy.ops.mesh.primitive_cone_add(vertices=segments, radius1=r1, radius2=r2, depth=h, location=loc)
return finish(bpy.context.object, name, m)
def model_line(name, points, r, m):
return line(name, points, r, m)
gold = brushed('Champagne brass', (0.61, 0.36, 0.13))
smart_toon = product_symbol('smart_shader_suite', 'smart_toon')
scene.render.engine = 'CYCLES'
studio((0.085, 0.16, 0.24), (0.65, 0.82, 1))
porcelain = mat('Ivory glaze', (0.86, 0.69, 0.43), 0.1, 0.28)
ink = mat('Sumi ink', (0.028, 0.025, 0.043), 0.15, 0.32)
verm = mat('Vermilion', (0.72, 0.042, 0.035))
rose = mat('Blush', (0.97, 0.34, 0.25))
shell = []
def oval(name, xyz, size):
o = ball(name, xyz, size, porcelain)
shell.append(o)
return o
base = cyl('Round foot', (0, 0, 0.12), 1.03, 0.23, verm, edge=0.08)
oval('Body', (0, 0.03, 0.98), (0.7, 0.55, 0.89))
oval('Face', (0, -0.04, 1.93), (0.75, 0.56, 0.62))
for side in (-1, 1):
o = cone('Ears', (side * 0.5, -0.015, 2.46), 0.31, 0.022, 0.61, porcelain, 3)
o.rotation_euler.y = side * 0.22
shell.append(o)
o = cone('Ear markings', (side * 0.5, -0.2, 2.46), 0.174, 0.01, 0.37, rose, 3)
o.rotation_euler.y = side * 0.22
x = side * 0.26
line('Closed eye', [(x - 0.12, -0.548, 1.95), (x, -0.594, 2.018), (x + 0.12, -0.548, 1.96)], 0.028, ink)
for j in range(2):
line('Whisker', [(side * 0.43, -0.482, 1.855 - j * 0.065), (side * 0.63, -0.424, 1.89 - j * 0.11)], 0.012, ink)
oval('Foot', (side * 0.38, -0.28, 0.39), (0.25, 0.3, 0.19))
yield
ball('Coral nose', (0, -0.604, 1.88), (0.079, 0.055, 0.055), rose)
for s in (-1, 1):
line('Smile', [(0, -0.598, 1.85), (s * 0.071, -0.583, 1.79), (s * 0.13, -0.56, 1.81)], 0.016, ink)
collar = geo_ring('Collar', (0, -0.02, 1.52), 0.47, 0.067, verm)
collar.scale.y = 0.83
ball('Bell', (0, -0.49, 1.41), (0.14, 0.11, 0.135), gold)
oval('Raised forearm', (0.69, -0.12, 1.47), (0.222, 0.225, 0.52))
oval('Raised paw', (0.73, -0.18, 1.9), (0.248, 0.22, 0.265))
for dx in (-0.052, 0.052):
line('Paw crease', [(0.73 + dx, -0.374, 1.97), (0.73 + dx, -0.386, 1.9)], 0.012, ink)
oval('Folded paw', (-0.53, -0.28, 0.97), (0.224, 0.235, 0.33))
charm = ball('Oval plaque', (-0.24, -0.515, 0.86), (0.31, 0.105, 0.43), gold)
charm.rotation_euler.y = -0.25
for y in (0.68, 0.82, 1.0):
bx('Plaque engraving', (-0.25, -0.615, y), (0.24, 0.016, 0.026), verm, 0.01)
shoot((2.25, -8, 3.2), (0, -0.02, 1.39), 4.9)
yield
active(shell[0])
before = set(bpy.data.materials)
assert bpy.ops.sss.smart_toon_create_material() == {'FINISHED'}
toon = next((m for m in bpy.data.materials if m not in before and hasattr(m, smart_toon.SETTINGS_PROPERTY_NAME)))
options = getattr(toon, smart_toon.SETTINGS_PROPERTY_NAME)
for (n, color) in [('zone1_color', (0.98, 0.83, 0.59)), ('zone2_color', (0.91, 0.49, 0.27)), ('zone3_color', (0.49, 0.21, 0.25)), ('zone4_color', (0.22, 0.13, 0.22))]:
vec = getattr(options, n)
setattr(options, n, (*color, 1) if len(vec) == 4 else color)
smart_toon.rebuild_toon_material(toon)
assert toon.use_nodes and len(toon.node_tree.nodes) > 5
for o in shell:
o.data.materials.clear()
o.data.materials.append(toon)
scene.render.engine = 'BLENDER_EEVEE'
yield
course_key = 'SmartTools lesson / lucky-cat'
session = bpy.app.driver_namespace
current = session.get(course_key)
if not current or current[0] != bpy.context.scene:
for required in ['smart_camlight_suite', 'smart_geometry_suite', 'smart_shader_suite']:
product_module(required)
scene = bpy.data.scenes.new('Study / lucky-cat')
bpy.context.window.scene = scene
current = [scene, drawing(scene), 0]
session[course_key] = current
if current[2] < 3:
next(current[1])
current[2] += 1
current[0]['Lesson step'] = current[2]
bpy.context.view_layer.update()
Click ▶ Run Script at the top of the Text Editor once per step, three times in total. The first click opens a separate study scene. Between clicks, hover over the 3D Viewport and press Home to frame the objects.

Choose View → Cameras → Active Camera and compare the framing with the image above. Choose Render → Render Image (F12), then Image → Save As in the render window to save a PNG. Save the .blend file to keep the editable scene.
Select Face and inspect its toon material in the Shader Editor. Select the plaque to compare the separate metal material.
If you close the file between steps, start the lesson again in a new file.
The white body uses Smart Toon. The silhouette and curved ears stay the same while the shadow boundaries describe the form.
The ceramic cat receives a Smart Toon material on its body. Four zone colors define the light-to-shadow transitions. The same framing shows the new bands across the ears and cheeks.
Anime-Style Shading with "Create Toon Material"The Smart Toon material splits the body shading into three bands.
The camera and model stay fixed. On the cheek and paw, Smart Toon replaces the smooth glaze shading with three distinct bands.
The shading, which used to darken smoothly, is now clearly divided into steps: light, mid, and dark. You can change the amount of highlight and rim light in the "Highlight" and "Rim Light" fields under the same section header.
View the captured exampleThe red collar uses geometry nodes.
SmartTools Geometry walkthrough ↗All controls and documentationWithout recreating it, just changing the value and refreshing makes the box longer. You can edit it the same way even after saving and reopening the file. Here, the length was changed from 2.5 m to 8 m. The figure shows a box created at the default size.
View the captured exampleA fixed camera captures both versions.
SmartTools CamLight walkthrough ↗All controls and documentationSales open January 1, 2027. One-time prices in USD. Local taxes may apply.
How do you give a rounded character graphic shadows?
Total for these individual tools $62
Included tools used here
SmartTools Shader · SmartTools CamLight
Tools used here outside this bundle
SmartTools Geometry
Bundle plus the listed tools outside it: $88
For just the listed tools, individual purchases cost $26 less.
Also in the bundle
SmartTools Paint · SmartTools Node