Vol. 1 · No. 338Blender 3.6 / 4.2 / 4.5 / 5.0 / 5.2 / 5.3Cycles · EEVEE
JANCTION
Render · Blender on RTX PRO 6000 · Tokyo
0.1 JPYper GPU-secondFirst 100 JPYfree, no card
Front page / The Render Journal / Motion graphics

Case No. 6  Motion graphics

A wave through 144 cubes on EEVEE

A 12 × 12 field of cubes, keyed every second frame, rendered to a 48-frame MP4.

● Motion graphics · EEVEERTX PRO 6000 · Tokyo
EEVEE1280 × 720Samples 64Frames 1–48MP4
Fig. — A wave through 144 cubes, 48 frames on EEVEE (MP4). A real render from the production GPU.
The short answer

This 48-frame animation of 144 cubes rippling in a wave was rendered with EEVEE on a JANCTION GPU and returned as an MP4. The script keys every cube's height on every second frame and brings its own world and lights, so no preset is needed. It took 56.6 GPU seconds on the production GPU, 5.7 JPY at 0.1 JPY per GPU-second.

What is in the frame

A square grid of pastel cubes rising and falling in a travelling wave. It loops cleanly and works as a background plate or a social clip.

How the scene is built

The animation is plain keyframes: each cube's height is keyed on every second frame from a sine of its distance to the centre. The scene sets its own world colour and lights, so no environment preset is passed.

Adapt it

EEVEE is the right engine for graphic motion like this: it is fast and the look does not depend on path-traced light. Change the grid size or the wave speed in the script and preview four frames before rendering all 48.

5.7 JPY for this render. The free welcome credit of a new key covers about 17 of them, with no card.

Render this example with your AI

ChatGPT · Claude · Grok · Perplexity

Use JANCTION Render (MCP server https://render.janction.jp/mcp) to render this example: render_preview(scene_url="https://render.janction.jp/samples/ex06_wave_cubes.py"). Then suggest how to change the colors, shapes and camera for my own subject. Ask me before the final render.

Each link opens the app with the text below filled in (if it is not, copy and paste it). If JANCTION Render is not connected in that app yet, add https://render.janction.jp/mcp as a connector first.

The script (bpy, runs as is)

ex06_wave_cubes.py. It builds the scene, the camera and the frame range; resolution, samples, denoising and the GPU are set by the service.

"""JANCTION Render example 06: a 12x12 field of cubes rippling in a wave, 48 frames on EEVEE (MP4).

Reproduce: render_final(scene_url="https://render.janction.jp/samples/ex06_wave_cubes.py",
                        frame_start=1, frame_end=48, width=1280, height=720, engine="eevee", output="mp4")
The script keys every cube's height on every second frame; the scene has its own world and lights,
so no environment preset is needed.
"""
import colorsys
import math

import bpy
from mathutils import Vector

for ob in list(bpy.data.objects):
    bpy.data.objects.remove(ob, do_unlink=True)
scene = bpy.context.scene
scene.frame_start = 1
scene.frame_end = 48
scene.render.fps = 24
FRAMES = 48


def material(name, color, roughness=0.5, metallic=0.0, **inputs):
    mat = bpy.data.materials.new(name)
    mat.use_nodes = True
    bsdf = mat.node_tree.nodes["Principled BSDF"]
    bsdf.inputs["Base Color"].default_value = (*color, 1.0)
    bsdf.inputs["Roughness"].default_value = roughness
    bsdf.inputs["Metallic"].default_value = metallic
    for key, value in inputs.items():
        bsdf.inputs[key].default_value = value
    return mat


def add(op, name, mat=None, **kw):
    getattr(bpy.ops.mesh, op)(**kw)
    ob = bpy.context.object
    ob.name = name
    if mat is not None:
        ob.data.materials.append(mat)
    return ob


def look_at(ob, target):
    ob.rotation_euler = (Vector(target) - ob.location).to_track_quat("-Z", "Y").to_euler()


def camera(location, target, lens=50.0):
    data = bpy.data.cameras.new("Camera")
    data.lens = lens
    cam = bpy.data.objects.new("Camera", data)
    scene.collection.objects.link(cam)
    cam.location = location
    look_at(cam, target)
    scene.camera = cam
    return cam


def light(name, kind, location, energy, target=None, size=1.0, color=(1.0, 1.0, 1.0)):
    data = bpy.data.lights.new(name, kind)
    data.energy = energy
    data.color = color
    if kind == "AREA":
        data.size = size
    ob = bpy.data.objects.new(name, data)
    scene.collection.objects.link(ob)
    ob.location = location
    if target is not None:
        look_at(ob, target)
    return ob


def own_world(color=(0.05, 0.05, 0.06), strength=1.0):
    world = bpy.data.worlds.new("World")
    world.use_nodes = True
    bg = world.node_tree.nodes["Background"]
    bg.inputs["Color"].default_value = (*color, 1.0)
    bg.inputs["Strength"].default_value = strength
    scene.world = world
    return world


own_world((0.02, 0.03, 0.06), 0.6)
floor = material("Floor", (0.06, 0.06, 0.08), roughness=0.4)
add("primitive_plane_add", "Floor", floor, size=40, location=(0, 0, -0.2))

N = 12
GAP = 1.0
mats = {}
for ix in range(N):
    for iy in range(N):
        x = (ix - (N - 1) / 2) * GAP
        y = (iy - (N - 1) / 2) * GAP
        dist = math.hypot(x, y)
        hue = (0.55 + 0.06 * dist) % 1.0
        key = round(hue, 2)
        if key not in mats:
            r, g, b = colorsys.hsv_to_rgb(hue, 0.75, 0.9)
            mats[key] = material("Cube%02d" % len(mats), (r, g, b), roughness=0.35)
        cube = add("primitive_cube_add", "Cube_%d_%d" % (ix, iy), mats[key], size=0.8, location=(x, y, 0.6))
        # 2 コマおきに高さを打つ。位相は 48 コマで 1 周するので、MP4 はそのままループする
        for f in list(range(1, FRAMES + 1, 2)) + [FRAMES + 1]:
            phase = 2 * math.pi * (f - 1) / FRAMES
            cube.location = (x, y, 0.6 + 0.55 * math.sin(phase * 2 - 0.9 * dist))
            cube.keyframe_insert("location", frame=f)

light("Sun", "SUN", (6.0, -8.0, 10.0), 3.0, target=(0, 0, 0), color=(1.0, 0.95, 0.9))
light("Fill", "AREA", (-8.0, 6.0, 7.0), 1500, target=(0, 0, 0.5), size=6.0, color=(0.7, 0.8, 1.0))
camera((9.5, -12.5, 8.5), (0.0, 0.0, 0.3), lens=45)

Questions about this case

Can I render a Blender animation to MP4 online?

Yes. Pass frame_start, frame_end and output="mp4" to render_final. Up to 3,000 frames per instruction are rendered in parts under one job id and joined into one video.

When should I use EEVEE instead of Cycles?

For graphic motion, type and flat-coloured scenes where speed matters more than physically based light. Pass engine="eevee".

More from the Journal