Skip to content

armgit / viz3d

Public Imported from GitHub
0

An AI agent skill that turns any subject into a 3D film or app

Refresh clay-reveal reference wording; release 0.9.7

Nguyen Xuan Ancb8f50751839
diff --git a/plugins/visualize-in-3d/.claude-plugin/plugin.json b/plugins/visualize-in-3d/.claude-plugin/plugin.json
index 666fbd4..063a920 100644
--- a/plugins/visualize-in-3d/.claude-plugin/plugin.json
+++ b/plugins/visualize-in-3d/.claude-plugin/plugin.json
@@ -1,6 +1,6 @@
{
"name": "visualize-in-3d",
- "version": "0.9.6",
+ "version": "0.9.7",
"description": "Visualize anything in 3D: places, systems, objects, products, creatures, stories and events, as a documentary or action film, a showcase, a live three.js app with a dashboard, a lesson, an illustrated cutaway book or a playable game, in twelve looks across four families, built from real layouts and models made from real references.",
"author": {
"name": "CodePawl",
diff --git a/plugins/visualize-in-3d/skills/visualize-in-3d/references/clay-reveal.md b/plugins/visualize-in-3d/skills/visualize-in-3d/references/clay-reveal.md
index 99c8513..38ac1b9 100644
--- a/plugins/visualize-in-3d/skills/visualize-in-3d/references/clay-reveal.md
+++ b/plugins/visualize-in-3d/skills/visualize-in-3d/references/clay-reveal.md
@@ -1,8 +1,8 @@
# Clay reveal film (beauty, clay, beauty)
-Reading map: When · Grammar · Build in 67js · Where Blender still earns its place · Sound · Checks · Traps.
+Reading map: When · Grammar · Build it (any software) · Sound · Checks · Traps.
Learned 2026-11-07 from a Blender + Claude station film (Tripo for a few props, everything else modelled by script,
-procedural shaders, AI foley). This is the light version: one 67js scene, two passes, wipes joined in ffmpeg.
+procedural shaders, AI foley). The flow works in any 3D tool and any editor: two passes, wipes joined afterwards.
## When
@@ -22,39 +22,41 @@ procedural scene. The clay pass is the explanation, so the film needs no titles.
silence, sound cuts back in hard on the wipe back. No music.
Times for a 36 s cut (measured on the reference): beauty 0-10.5, wipe 10.5-11.5, clay crane 11.5-22, wipe 22-23.25,
-beauty aerial to 25.7, cut to clay at the opening spot, wipe 28.5-29.5, beauty to the end. A 12 s proof keeps
-beauty 0-3, wipe 3-4, clay crane 4-8.6, wipe 8.6-9.6, beauty aerial to 12.
-
-## Build in 67js
-
-- One page, `?pass=beauty|clay`, one camera function of time. Render each pass to its own MP4 with the same frames,
- then join them; nothing in the page knows about wipes.
-- Clay pass: the same parts with `material` replaced by flat colour, no maps: one warm grey for built things
- (about 0.6 linear), darker for roads and ground, flat green for plants (keep the leaf alpha map and its
- `alphaMode`, or leaves become solid cards). Neutral white key, high ambient, a blurred overcast sky, no bloom,
- grain or vignette. Beauty pass: a puresky sunset HDRI, warm key from the sun side, light fog, AgX view transform
- (import `src/view-transform-shader.js`, or the page throws).
-- Wipe in ffmpeg, beauty as input A and clay as B:
- `blend=all_expr='if(lt(T,B0),if(lt((X/W+Y/H)/2,clip((T-A0)/1,0,1)*1.02),B,A),if(lt((X/W+Y/H)/2,clip((T-B0)/1,0,1)*1.02),A,B))'`
- with A0 the first wipe's start and B0 the second's. Sound envelope with `volume='...':eval=frame` on the bed.
-- Worlds that suit it: city tiles from an open dataset (clean shapes, no bases), or a scene built from recipe
- parts with material `pattern` for procedural looks. Hero props can come from Tripo (Studio credits, commercial use
- on paid plans) or CC0 libraries.
-
-- Put the sun in frame behind the subject: find the HDRI's sun (brightest texel; 67js maps `u = atan(x, -z) / 2pi + 0.5`),
- set the key light's azimuth to where you want it, and turn the sky with `loadHdri(url, { rotation })` in radians,
- `rotation = atan2(sunZ, sunX) of the HDRI's sun - atan2(z, x) of the wanted azimuth`. Check it by the brightest
- pixel of a still, not by eye.
-- Haze for an eye-level shot washes out an aerial. Pass `environment: { fogDensity }` to `renderer.render` per frame
- and thin it with camera height (`fog / (1 + height / 300)` worked for a city).
-- Measured 2026-11-07 on an RTX 3060: ten city tiles (about 1.5 M triangles), 960x540, 4x MSAA, 360 frames per pass
- in 4 to 17 s. Both passes plus the join take under a minute, so iterate on the whole film, not on stills alone.
-
-## Where Blender still earns its place
-
-The reference modelled hundreds of parts by script with procedural node shaders and wear. Use Blender only for a
-hero asset that needs that (modifiers, bevels, node-graph wear, a baked texture), exported as GLB into the 67js
-scene. Lighting, camera, both passes and the wipes stay in 67js: they render in seconds per frame and need no bake.
+beauty aerial to 25.7, cut to clay at the opening spot, wipe 28.5-29.5, beauty to the end.
+
+Pacing: the opening beauty runs long, about a third of the film, with the mover's
+whole action in it; after that time follows detail, slow where there is structure to read, quick through empty
+space. A 21 s metro cut: beauty 0-7.5, wipe to 8.5, clay 8.5-16, wipe to 17, beauty section to 21. A 3 s opening
+(the first city proof) was too short.
+
+Everyday places read best (a metro station over a city): build the place by script in a DCC as one GLB or FBX and cut
+it with a section plane, as in "Cutaways under ground" in the 3d-generalist skill's `references/clay-reveal.md`,
+which also holds subframe blur for the train and the dark-mass trap at the opening camera.
+
+## Build it (any software)
+
+The flow is not tied to one tool: Blender, Cinema 4D, Maya, Houdini, Unreal, Unity, Godot, three.js or 67js all
+work, and the wipe can be made in Resolve, Premiere, After Effects, CapCut, Kdenlive or FFmpeg. The per-tool table
+(clay override and two-pass render in each) is in the 3d-generalist skill's `references/clay-reveal.md`, "Build it".
+The rules that hold everywhere:
+
+- One scene, one camera that is a function of time, two passes rendered with the same frames and size, joined
+ afterwards; nothing in the scene knows about the wipe.
+- Clay pass: every material replaced by flat colour, no maps: warm grey for built things (about 0.6 linear), darker
+ for roads, ground and cut faces, flat green for plants with their leaf alpha kept. Neutral white key, high
+ ambient, blurred overcast sky, no bloom, grain, vignette or emissive.
+- Render pass: a puresky HDRI with its sun turned to where the key light is, light haze thinned with camera height
+ (an eye-level haze washes out an aerial), AgX or filmic.
+- Wipe: hard linear wipe at 45 degrees from one corner, about 1 s, no feather. FFmpeg, render A and clay B:
+ `blend=all_expr='if(lt(T,B0),if(lt((X/W+Y/H)/2,clip((T-A0)/1,0,1)*1.02),B,A),if(lt((X/W+Y/H)/2,clip((T-B0)/1,0,1)*1.02),A,B))'`.
+- Iterate on the whole film in whatever renders a full pass in minutes; keep slow path tracing for the final.
+- Worlds that suit it: open city tiles (clean shapes, no bases), a place built by script in a DCC, kitbashed library
+ assets; hero props from CC0 libraries or an image-to-3D service.
+
+When the renderer is 67js (measured on an RTX 3060): ten city tiles, 960x540, 4x MSAA, 360 frames per pass in
+4 to 17 s. Turn the sky with `loadHdri(url, { rotation })`, `rotation = atan2(sunZ, sunX) of the HDRI's sun -
+atan2(z, x) of the wanted azimuth` (67js maps `u = atan(x, -z) / 2pi + 0.5`), check by the brightest pixel of a
+still; per-frame `environment: { fogDensity }` for the haze; import `src/view-transform-shader.js` for AgX.
## Sound
@@ -73,8 +75,8 @@ tool is set up. Nothing under the clay section.
- Sketchfab or Objaverse buildings often ship standing on their own diorama base (a plinth, snow, a scanned patch of
ground) inside the same mesh. In clay those bases show as white islands. Measure the base first (vertex spread per
height slice); if it cannot be cut, pick another source.
-- Very heavy CC0 trees (millions of vertices) crash the tab; check the vertex count in the glTF before placing many.
-- glTF with KHR_materials_unlit and black factors renders black in 67js; skip or fix the material.
+- Very heavy CC0 trees (millions of vertices) crash a browser tab or stall a viewport; check the vertex count in the glTF before placing many.
+- glTF with KHR_materials_unlit and black factors renders black in some renderers (67js); skip or fix the material.
- A camera looking almost straight down yaws hard for small moves: the crane smeared and snapped at the top in the
first proof. End the crane on a high oblique (about 60 degrees down), keep it moving through the wipe back, and let
the last shot drift on at the crane's speed instead of starting from rest.