Series Web3 Project 3D Modeling Voyage Training Log

~1 min read

Publishing the Three-Shapes Animation as Web 3D

A Blender-to-web log: a minimal animation study of a cone, cube, and sphere floating among bubbles. This entry's gate was translating one procedural material that colors each object differently.

TrainingBlender3DThree.js

Three Shapes, and Bubbles

This model is not a finished object but an animation study. A cone, a cube and a sphere are stacked in the air, each moving on its own, with glass bubbles drifting around in a minimal composition. It is practice for the Web3 project's motion feel.

3D 뷰어 로딩 중…

One Material, Many Colors

In the POI marker episode, the material names carried their colors (…Blue, …White and so on), so injecting by name was enough. This file was trickier. The three shapes and every bubble share a single Plastic material, yet each renders a different blue. It's a procedural trick that scatters color per object, and since glTF attaches materials to meshes rather than objects, the trick evaporates entirely.

So instead of patching the material, I built a new material per object and swapped them in. Shape colors were sampled from the render, and the bubbles were cast as transmission glass.

HERO = {
    "Cone.001":   make_mat("ConeBlue",   (0.40, 0.62, 0.90), ...),  # pale sky
    "Cube.001":   make_mat("CubeBlue",   (0.03, 0.18, 0.42), ...),  # deep navy
    "Sphere.001": make_mat("SphereBlue", (0.07, 0.30, 0.65), ...),  # mid blue
}
BUBBLE = make_mat("BubbleGlass", (1, 1, 1), rough=0.05, transmission=1.0)

The bubble glass slots right into the viewer's glass options from the Geo DiPin episode. Here it is just thinner, soap-bubble thin (glassThickness={0.1}).

Speed from Repetition

Key point

With every entry in this series, the pipeline becomes muscle memory. The order is inspect the scene → preview render → selective export + material patch → one tag in the post. The gate changed with each piece (lighting, glass, procedural colors, per-object colors), but every gate left an option behind in the viewer, so this entry needed zero new code. Build the tool once, and the next publish is just writing.