SmartTools
← All projects
Hard-surface modeling

Inside a planetary gearset

Follow the ring, sun and three planet gears through assembly, from the bare housing to the finished carrier.

Inside a planetary gearset
Housing and race
Housing and race
Sun gear and three planets
Sun gear and three planets
Carrier and retaining ring installed
Carrier and retaining ring installed

What you need

Blender 5.3.0

For the project exercises

Recreate the finished image in Blender

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.

Start a new study scene

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.

Open the scene recipe
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 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 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 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'
    deep = mat('Petrol enamel', (0.018, 0.16, 0.2), 0.52, 0.24)
    cream = mat('Porcelain enamel', (0.79, 0.84, 0.78), 0.36, 0.26)
    orange = mat('Vermilion lacquer', (0.92, 0.105, 0.018), 0.46, 0.25)
    steel = mat('Machined stainless', (0.39, 0.48, 0.52), 0.83, 0.22)
    glass = mat('Signal cyan', (0.04, 0.82, 0.78), 0.2, 0.23, 0.8)
    def fin(name, outline, thickness, material):
        pts = [(x, y + dy, z) for dy in (-thickness / 2, thickness / 2) for (x, y, z) in outline]
        n = len(outline)
        faces = [tuple(range(n - 1, -1, -1)), tuple(range(n, n * 2))] + [(i, (i + 1) % n, (i + 1) % n + n, i + n) for i in range(n)]
        o = mesh(name, (0, 0, 0), pts, faces, material)
        for p in o.data.polygons:
            p.use_smooth = False
        bevel = o.modifiers.new('Rounded rim', 'BEVEL')
        bevel.width = 0.026
        bevel.segments = 3
        return o
    black = mat('Graphite', (0.016, 0.022, 0.029), 0.55, 0.28)
    gold = brushed('Champagne brass', (0.61, 0.36, 0.13))

    generate = vars(product_module('smart_geometry_suite.max_procedural_primitives.mesh_generators'))['make_tube_v2']
    def tube(name, r, inner, h, loc, m):
        d = generate(dict(radius1=r, radius2=inner, height=h, sides=144))
        return mesh(name, loc, d['verts'], d['faces'], m)
    def gear(name, n, r, h, loc, m, inside=False, rotation=0):
        d = generate(dict(radius1=r + 0.27 if inside else r, radius2=r if inside else r * 0.29, height=h, sides=n * 8))
        vv = []
        for (x, y, z) in d['verts']:
            radius = math.hypot(x, y)
            a = math.atan2(y, x)
            j = round(a * n * 8 / tau) % 8
            if abs(radius - r) < 0.0001:
                delta = (-0.078, -0.078, -0.067, 0.067, 0.078, 0.078, 0.067, -0.067)[j]
                radius += (-1 if inside else 1) * delta
            vv.append((radius * cos(a), radius * sin(a), z))
        o = mesh(name, loc, vv, d['faces'], m)
        o.rotation_euler.z = rotation
        for p in o.data.polygons:
            p.use_smooth = False
        active(o)
        assert bpy.ops.smsuite.bevel_normal_stack(width=0.015, segments=3) == {'FINISHED'}
        assert any((x.type == 'BEVEL' for x in o.modifiers))
        return o
    studio((0.064, 0.084, 0.092), (0.74, 0.87, 1))
    shoot((6.9, -8.6, 9), (0, 0, 1.42), 8.3)
    body = [tube('Housing foot', 2.12, 1.53, 0.16, (0, 0, 0.12), deep), tube('Housing race', 2.09, 1.8, 0.29, (0, 0, 0.35), steel)]
    for j in range(12):
        a = tau * j / 12
        body.append(cyl('Housing bolt', (1.975 * cos(a), 1.975 * sin(a), 0.5), 0.075, 0.08, black))

    yield
    gears = [gear('60-tooth internal ring', 60, 1.8, 0.36, (0, 0, 0.76), deep, True), gear('24-tooth sun', 24, 0.72, 0.48, (0, 0, 0.78), gold)]
    carrier = [tube('Carrier hub', 0.41, 0.22, 0.32, (0, 0, 1.16), orange)]
    for i in range(3):
        a = 1.03 + i * tau / 3
        (x, y) = (1.26 * cos(a), 1.26 * sin(a))
        gears.append(gear('18-tooth planet', 18, 0.54, 0.44, (x, y, 0.77), steel, rotation=0.045))
        arm = bx('Carrier arm', (x * 0.55, y * 0.55, 1.21), (1.35, 0.28, 0.13), orange, 0.1)
        arm.rotation_euler.z = a
        carrier.extend([arm, tube('Bearing boss', 0.25, 0.13, 0.19, (x, y, 1.22), orange), cyl('Bearing journal', (x, y, 1.25), 0.115, 0.24, steel), cyl('Socket', (x, y, 1.385), 0.056, 0.008, black)])
    flange = [tube('Retaining ring', 2.055, 1.76, 0.1, (0, 0, 1.12), cream)]
    for i in range(12):
        a = tau * i / 12
        flange.append(cyl('Cap fastener', (1.93 * cos(a), 1.93 * sin(a), 1.184), 0.053, 0.027, steel))
    def hide(objs, on):
        for o in objs:
            o.hide_render = on
    hide(carrier + flange, True)
    hide(gears, True)
    hide(gears, False)
    hide(carrier + flange, False)

    yield
    for (objs, off) in [(gears, 0.35), (carrier, 1.1), (flange, 1.8)]:
        for o in objs:
            o.location.z += off

    yield


course_key = 'SmartTools lesson / transmission'
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_modeling_suite', 'smart_shader_suite']:
        product_module(required)
    scene = bpy.data.scenes.new('Study / transmission')
    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.

  1. Build the housing
  2. Assemble the ring and planet gears
  3. Separate the assembly vertically
Geometry after step two: Inside a planetary gearset
After step two. The solid view isolates the forms and their positions before the final render.

Render and save the finished image

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.

Change one detail yourself

Select Retaining ring in the Outliner. Press G, Z to move it vertically and expose the three planet gears beneath. Escape cancels the move and restores its published height.

If you close the file between steps, start the lesson again in a new file.

Use this when

How do the parts of a gear assembly fit together?

The housing, gears and carrier are separate parts, so the assembly and exploded view share the same framing.

Detail from the finished render
See the three planets inside the housingDetail from the finished render

See the three planets inside the housing

The sun and three planet gears sit inside the housing and race. The carrier and retaining ring go on last. The three assembly views use the same camera to show each added part.

Remove Shading Smears from a Beveled Box

Where the tools were used

  1. 01

    Housing and gear blanks

    Smart Geometry generates annular blanks with inner and outer diameters. The tooth profiles are modeled separately for this study.

    SmartTools Geometry walkthrough ↗All controls and documentation
    Related worked example · Lengthen a Box Later by Changing a Value
    1. Click "Box" in "Primitive Generators" and drag to create a box.
    2. Open the "Modifiers" tab in the Properties Editor.
    3. Change "Length" in "Max Primitives Parameters".
    4. Click "Refresh Max Primitive".

    Without 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 example
  2. 02

    Finishing the teeth

    Smart Modeling’s bevel and normal stack chamfers the teeth so that the edges catch the light.

    Bevel a gear so light catches the teeth

    Isolate the 24-tooth sun gear from the exploded assembly. These exposures keep the light fixed and compare the untreated edge with a three-segment bevel of width 0.045. The Smart Modeling bevel-and-normal command adds both modifiers together.

    Tooth tips with the bevel disabled
    Tooth tips with the bevel disabled
    The bevel-and-normal command adds both modifier rows to the gear
    The bevel-and-normal command adds both modifier rows to the gear
    Highlights along the beveled teeth and bore
    Highlights along the beveled teeth and bore
    SmartTools Modeling walkthrough ↗All controls and documentation
    Related worked example · Remove Shading Smears from a Beveled Box
    1. Select the box in Object Mode.
    2. Open "Smart Modeling" tab > "Hard Surface Modeling" > "Weighted Normal".
    3. Click "Apply Weighted Normal".

    The diagonal smears on the left and top faces disappear, every face becomes evenly bright, and only the rounded corners look smooth. The shape (the vertex positions) does not change.

    View the captured example
  3. 03

    Camera

    A target-tracking camera holds the framing.

    SmartTools CamLight walkthrough ↗All controls and documentation
    Create Camera Rig
    1. Creates the rig and leaves the target selected. When you move the target, the camera turns to face it. This camera's previous rig markers and constraints are replaced with new ones.
  4. 04

    Metal highlights

    A brushed metal material gives the brass parts their directional highlights.

    SmartTools Shader walkthrough ↗All controls and documentation
    Compare six materials on the same shape
    1. Select the mesh and switch the viewport to Material Preview.
    2. Press N. In Smart Shader → PBR Material Generator, select the PBR category and the Brushed Metal preset.
    3. Create the preset look material. In the Shader Editor, inspect the new material. Its Principled shader has Metallic set to 1.0.

Inspect the carrier arm in Blender

Read the carrier arm’s rotation axes

Isolate the carrier arm from the planetary gear assembly. Its color-coded rotation rings show which axis you are about to manipulate.

The carrier in the assembled gear train
The carrier in the assembled gear train
Smart gizmo at the selected carrier arm
Smart gizmo at the selected carrier arm
Inspect the gizmo axes

Select Carrier arm in the finished scene and enter Local View with Numpad /. Choose the Transform tool and enable the Smart Transform gizmo. The capture uses display scale 1.60.

See edges behind the carrier without losing the surface

Isolate the carrier arm and show both sets of edges in a single view. Solid lines are in front of the blue face. Dashed lines are behind it.

Location of the carrier arm
Location of the carrier arm
Dashed edges show through the solid face
Dashed edges show through the solid face
See hidden edges without X-Ray

Enter Edit Mode and enable mesh overlays. Set Highest Quality, Always and Dashed, with edge width 4 px and orange for occluded edges. Solid white edges remain in front.

Viewport tools · SmartTools Transform $14 · SmartTools Overlay $14

Choose products for this work

Sales open January 1, 2027. One-time prices in USD. Local taxes may apply.

Extend your workflow

Included tools used here
SmartTools Geometry · SmartTools Modeling

Tools used here outside this bundle
SmartTools CamLight · SmartTools Shader

Bundle plus the listed tools outside it: $132
For just the listed tools, individual purchases cost $31 less.

Also in the bundle
SmartTools UV · SmartTools Modifier

Compare all four bundles and the complete collection →
← Explore more projects