Skip to content

A toolbox of film styles made in code for Claude Code: 66 ready to use, and your own. Each style is a style prompt plus a demo film made entirely in code by Claude Opus 5.5, with no video model. By Lemomo. · 一套用代码做片的风格工具箱:66 种现成风格,也能做出你自己的

Low-poly Isometric Island: gable roofs wound outward, so they stop flickering against the wall tops

lemomo-aieb353ebf2aef
diff --git a/styles/lowpoly-island/demo/stills/styleframe.jpg b/styles/lowpoly-island/demo/stills/styleframe.jpg
index 53a775b..7423ff6 100644
Binary files a/styles/lowpoly-island/demo/stills/styleframe.jpg and b/styles/lowpoly-island/demo/stills/styleframe.jpg differ
diff --git a/styles/lowpoly-island/demo/world.js b/styles/lowpoly-island/demo/world.js
index e6606ba..cf2bac4 100644
--- a/styles/lowpoly-island/demo/world.js
+++ b/styles/lowpoly-island/demo/world.js
@@ -64,14 +64,16 @@ function hexPrism(r, h, top, side, y0 = -2.4) {
return g;
}
function gable(w, d, h, over = .08) { // gable roof: a triangular prism along x (the slopes), gable ends built separately
+ // counter-clockwise seen from outside: the slopes face out and the underside faces down. (Wound the other way, the slopes were culled and
+ // the camera saw the upward-facing underside, which lies in the same plane as the top of the wall box → the roofs z-fought / flickered.)
const W = w / 2 + over, D = d / 2 + over, g = new THREE.BufferGeometry();
- const v = [-W, 0, -D, W, 0, -D, W, h, 0, -W, 0, -D, W, h, 0, -W, h, 0, -W, 0, D, -W, h, 0, W, h, 0, -W, 0, D, W, h, 0, W, 0, D,
- -W, 0, -D, -W, 0, D, W, 0, D, -W, 0, -D, W, 0, D, W, 0, -D];
+ const v = [-W, 0, -D, W, h, 0, W, 0, -D, -W, 0, -D, -W, h, 0, W, h, 0, -W, 0, D, W, h, 0, -W, h, 0, -W, 0, D, W, 0, D, W, h, 0,
+ -W, 0, -D, W, 0, D, -W, 0, D, -W, 0, -D, W, 0, -D, W, 0, D];
g.setAttribute('position', new THREE.Float32BufferAttribute(v, 3)); g.computeVertexNormals(); return g;
}
function gableEnds(w, d, h) {
const W = w / 2, D = d / 2, g = new THREE.BufferGeometry();
- const v = [W, 0, -D, W, 0, D, W, h, 0, -W, 0, D, -W, 0, -D, -W, h, 0];
+ const v = [W, 0, -D, W, h, 0, W, 0, D, -W, 0, D, -W, h, 0, -W, 0, -D]; // facing out, like the roof
g.setAttribute('position', new THREE.Float32BufferAttribute(v, 3)); g.computeVertexNormals(); return g;
}
diff --git a/styles/lowpoly-island/poster.jpg b/styles/lowpoly-island/poster.jpg
index db6323d..bad6640 100644
Binary files a/styles/lowpoly-island/poster.jpg and b/styles/lowpoly-island/poster.jpg differ