Skip to content

armgit / viz3d

Public Imported from GitHub
0

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

viz3d 0.9.5: fixes from the second round of style tests

Nguyen Xuan An7e701d482afa
diff --git a/plugins/visualize-in-3d/.claude-plugin/plugin.json b/plugins/visualize-in-3d/.claude-plugin/plugin.json
index 0f82662..276f3de 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.4",
+ "version": "0.9.5",
"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/book.md b/plugins/visualize-in-3d/skills/visualize-in-3d/references/book.md
index da53b0f..d22afa2 100644
--- a/plugins/visualize-in-3d/skills/visualize-in-3d/references/book.md
+++ b/plugins/visualize-in-3d/skills/visualize-in-3d/references/book.md
@@ -44,15 +44,15 @@ Use three.js with no Blender. A lofted shell, boxes and a few extrusions read we
- **Machines** (a watch, an engine, a pump). The rooms are stages of the power path: source, transmission, regulator,
output. Callouts name each part's job and its real speed or ratio from tooth counts or specs, and the parts move at
- those ratios on one clock, with a speed control (real time and two faster steps) so slow parts are seen to move. A
+ those ratios on one clock, with a speed control (real time and two faster steps) so slow parts are seen to move. Fast parts (a 4 Hz balance) flicker when sped up: keep them at real-time phase in the fast steps and say so on the speed label. A
case or frame is cut like a shell and stays round: at least 64 segments, never a faceted box. A plate is plain or
- finished as the real part is (brass, perlage, stripes), never a dot grid. Figures are left out.
+ finished as the real part is (brass, perlage, Geneva stripes, ruby jewels, bridges with slotted screws), never a dot grid. A watch case has a bezel, tapered lugs and a crown. Figures are left out.
## Post pass
A full-screen pass turns the render into a plate.
-- Paper: cream base with low-frequency blotches, so no area is flat. Grain at the end, multiplied over everything.
+- Paper: cream base with low-frequency blotches, so no area is flat. Colour uniforms in a shader are linear: convert each hex with `new THREE.Color(hex)` (which converts sRGB to linear) or the paper renders dark. Grain at the end, multiplied over everything.
- Washes: band the lit colour to 3 or 4 tones per material. Darken the colour along band edges, where pigment pools.
- Ink: outlines from depth and normal edges in dark brown, about 24, 15 and 9 percent red, green and blue
(`#3d2615`). Black outlines read as a vector cartoon. Vary the width a little with noise.
diff --git a/plugins/visualize-in-3d/skills/visualize-in-3d/references/live-embed.md b/plugins/visualize-in-3d/skills/visualize-in-3d/references/live-embed.md
index 054de38..26cee7b 100644
--- a/plugins/visualize-in-3d/skills/visualize-in-3d/references/live-embed.md
+++ b/plugins/visualize-in-3d/skills/visualize-in-3d/references/live-embed.md
@@ -45,7 +45,7 @@ plate, and none of them needs props or a dressed ground. Plain three.js without
<screenshot>`; it prints PASS or FAIL and the share of the largest flat colour. A look whose design is a flat
background (the paper of a cutaway plate or space-time cube, the void of a point cloud, white model) passes
`--ignore "<background hex>"`, and the rest of the frame must still pass. The subject named in the request
- fills at least a third of the default view: a strait seen as a thin line between hills fails. Measure brightness against the
+ fills at least a third of the default view, measured as the share of the frame covered by the screen-space box of its points (a strait's centre line, a machine's parts): a strait seen as a thin line between hills fails. Measure brightness against the
reference with `scripts/compare-look.py` (`style-reference.md`, Compare each round).
7. **Done when** the gates pass, the overview, a clicked unit with its card and each stage preset look right in screenshots, it runs
at 60 fps, the page logs no errors, and `npm run build` gives a static folder that opens from any web server.
diff --git a/plugins/visualize-in-3d/skills/visualize-in-3d/references/looks.md b/plugins/visualize-in-3d/skills/visualize-in-3d/references/looks.md
index 04625e9..6012705 100644
--- a/plugins/visualize-in-3d/skills/visualize-in-3d/references/looks.md
+++ b/plugins/visualize-in-3d/skills/visualize-in-3d/references/looks.md
@@ -29,7 +29,7 @@ plaza. Think of a clean isometric diorama inside a light operations dashboard.
Reference: a strait-monitoring app drawn as white dots over terrain. Fits places defined by their land and water: straits, ports, borders, mountains, coasts, a city seen from above.
- World: terrain as a dense grid of small white spheres raised by a real heightmap, so slopes shade and valleys sit
- in shadow. Water is a flat, matte, light-grey plane. Vehicles and buildings are matte white clay models (no
+ in shadow. Water is a flat, matte plane a clear step darker than the dots (about `#87919b` under white `#f2f2f2` dots), with a sparse dot lattice; a light-grey plane hides white ships. Vehicles and buildings are matte white clay models (no
textures, no colour) with real detail; wakes, trails and exhaust are particles of the same dots.
- Rendering: under about 150k dots, `InstancedMesh` of low-poly spheres (8x6 segments). Above that, `THREE.Points`
with a sphere-impostor shader (round point sprite, normal from the sprite UV for lambert shading, depth written so