Build and revise procedural 3D assets with your coding agent. Local MCP server, CLI and TypeScript engine with rendered review, editable source and GLB export.
JavaScript 3d3d-assets3d-modelingagent-skillsagent-toolsai-agentsasset-pipelinecligame-assetsglbgltfmcpmcp-servermodel-context-protocolprocedural-generationprocedural-modelingtext-to-3dthreejstypescript
Refine orbital station rear symmetry and refresh gallery media (#53)
Matthew Kissinger283f1dee0330
diff --git a/README.md b/README.mdindex 7d8a2d7c..22bbc6f4 100644--- a/README.md+++ b/README.md@@ -17,12 +17,18 @@ the model; Kiln does not require a separate model API key for its tools.| --- | --- | --- || [](examples/abyssal-surveyor.kiln.js) | [](examples/typewriter.kiln.js) | [](examples/solar-sail-courier.kiln.js) |-<p align="center"><a href="https://kilnstudio.tools/#/mechanical-peacock"><img src="examples/renders/mechanical-peacock.png" width="460" alt="Mechanical peacock with a jewel-coloured fan and brass frame"></a></p>+| Mechanical peacock · Claude Opus 5 | Orbital station · GPT-6 Astra |+| --- | --- |+| [](examples/mechanical-peacock.kiln.js) | [](examples/orbital-station.kiln.js) |Mechanical peacock · Claude Opus 5. Maintainer-agent repairs connect the neck andcorrect the body shell's face direction; the [source revisions](site/examples/history/mechanical-peacock/history.json)record the original and repaired programs.+Orbital station · Codex refinement following owner art direction: mirrored rear+assemblies, a recessed service hatch, supported radiators and smoother material finish.+The [source revisions](site/examples/history/orbital-station/history.json) retain the original.+[Browse the interactive gallery](https://kilnstudio.tools/#/gallery)· [All examples and model credits](docs/examples.md)diff --git a/docs/evaluation/orbital-refinement.md b/docs/evaluation/orbital-refinement.mdnew file mode 100644index 00000000..541a1710--- /dev/null+++ b/docs/evaluation/orbital-refinement.md@@ -0,0 +1,37 @@+# Orbital station refinement++Owner-directed refinement of the rear radiator assembly. Both radiator pivots now+have identity rotation and positions `[-1.95, -2.65, 0]` and `[-1.95, 2.65, 0]`.+The plates are parallel, equal-sized, and use mirrored supports. Paired communication+dishes replace the solitary dish/horn; the hub gains a recessed service hatch,+mechanical latches, ventilation panels, chamfered ends and smoother materials.++The original and current source are retained in+`site/examples/history/orbital-station/`. Updated provenance distinguishes the+original authoring session from this source-aware refinement. No new provider call+was made. This is a visual refinement, not a claim of AAA production certification.++## Review outputs++- README and examples page use the updated square GPU render.+- Local site assets and hero poster rebuilt; all 62 source/GLB/poster pairs verified.+- Local browser confirmed the new 15,040-triangle model and revision-history control.+- Both private posting grids regenerated in `tmp/launch-kit/F-gallery-grid/`;+ station image copies and the private media manifest updated.+- `tmp/orbital-review/` contains before/after detail images, full hero image,+ an optional optimized GLB and verification records. The optimized export has+ 23 mesh draws versus the editable artifact's 635, preserves 15,040 triangles,+ bounds and the HabitatRotation clip, and has zero glTF validator errors/warnings.+ Its reviewed GPU image differs by less than 0.0001 mean channel levels from the+ editable artifact. It is separate from the editable gallery download.++## Validation++Typecheck, lint (existing warnings/information), site build, asset hash verification,+exact GPU poster captures, radiator orientation checks and GLB validation passed.+Local Windows full tests: 1,737 pass, 2 skip, 5 fail. The failures are four `probeRenderService`+cases and `HTTP adapter forwards exact cameras and artifact fidelity`; each reports+`Failed to start server. Is port 0 in use?`. No runtime implementation was changed.++These results describe local review. The repository's CI and Gallery workflow+records establish subsequent source validation and public deployment status.diff --git a/docs/examples.md b/docs/examples.mdindex df1e7aae..cf143071 100644--- a/docs/examples.md+++ b/docs/examples.md@@ -12,7 +12,7 @@ Browse the [interactive gallery](https://kilnstudio.tools/#/gallery), or open a<td width="33%" valign="top"><a href="../examples/renders/mechanical-peacock.png"><img src="../examples/renders/mechanical-peacock.png" alt="Brass mechanical peacock with an articulated jewel-colored fan"></a><br><b><a href="../examples/mechanical-peacock.kiln.js">mechanical-peacock</a></b><br>44,688 tris · Claude Opus 5<br><sub>Articulated enamel fan; neck connection repaired by a Codex maintainer agent</sub></td></tr><tr>- <td width="33%" valign="top"><a href="../examples/renders/orbital-station.png"><img src="../examples/renders/orbital-station.png" alt="a rotating-torus orbital station with lit window bands, four spokes, a docking hub and solar wings, generated by Kiln"></a><br><b><a href="../examples/orbital-station.kiln.js">orbital-station</a></b><br>10,212 tris · GPT-6 Astra<br><sub>Habitat ring, solar arrays and docking modules</sub></td>+ <td width="33%" valign="top"><a href="../examples/renders/orbital-station.png"><img src="../examples/renders/orbital-station.png" alt="a rotating-torus orbital station with lit window bands, four spokes, a docking hub and solar wings, generated by Kiln"></a><br><b><a href="../examples/orbital-station.kiln.js">orbital-station</a></b><br>15,040 tris · GPT-6 Astra<br><sub>Habitat ring, solar arrays and docking modules</sub></td><td width="33%" valign="top"><a href="../examples/renders/abyssal-surveyor.png"><img src="../examples/renders/abyssal-surveyor.png" alt="Custom curved hull, guarded thrusters and articulated sampling arm"></a><br><b><a href="../examples/abyssal-surveyor.kiln.js">abyssal-surveyor</a></b><br>34,456 tris · GPT-6 Astra<br><sub>Custom curved hull, guarded thrusters and articulated sampling arm</sub></td><td width="33%" valign="top"><a href="../examples/renders/kestrel-rescue-craft.png"><img src="../examples/renders/kestrel-rescue-craft.png" alt="Sculpted rescue aircraft with articulated tilt rotors"></a><br><b><a href="../examples/kestrel-rescue-craft.kiln.js">kestrel-rescue-craft</a></b><br>54,272 tris · GPT-6 Astra<br><sub>Sculpted rescue aircraft with articulated tilt rotors</sub></td></tr>diff --git a/examples/orbital-station.kiln.js b/examples/orbital-station.kiln.jsindex ef6e0994..a540a2e0 100644--- a/examples/orbital-station.kiln.js+++ b/examples/orbital-station.kiln.js@@ -1,16 +1,13 @@// Authored by: gpt-6-astra, via codex.//-// Written by the model itself through the Kiln MCP tools: it wrote the-// program, rendered it, looked at its own six-view contact sheet, and-// revised. Not a line of it is hand-authored.-//-// Dispatched into a clean directory containing only the brief and the Kiln-// skills, with no access to this repository or to any finished example.+// Original model-authored station retained in site/examples/history/orbital-station.+// Maintainer revision: Codex refinement following owner feedback on the rear assembly.+// This revision uses the existing source and repository context.const meta = { name: 'OrbitalStation', category: 'prop' };function build() {const root=createRoot('OrbitalStation');- const white=gameMaterial(0xdce3e4,{roughness:0.6}), dark=gameMaterial(0x293a47,{metalness:0.6}), blue=gameMaterial(0x193f79,{metalness:0.5,roughness:0.3}), glass=gameMaterial(0x63b7c9,{emissive:0x286778,emissiveIntensity:0.35}), gold=gameMaterial(0xc58b43,{metalness:0.5});+ const white=gameMaterial(0xbfcbd0,{metalness:0.22,roughness:0.42,flatShading:false}), dark=gameMaterial(0x202d38,{metalness:0.65,roughness:0.38,flatShading:false}), blue=gameMaterial(0x153450,{metalness:0.55,roughness:0.26,flatShading:false}), glass=gameMaterial(0x4393a5,{metalness:0.25,roughness:0.23,emissive:0x174857,emissiveIntensity:0.18,flatShading:false}), gold=gameMaterial(0xa67b44,{metalness:0.72,roughness:0.34,flatShading:false});const frame=createPivot('Station',[0,10.25,0],root);const rotor=createPivot('HabitatRotor',[0,0,0],frame);const part=(n,g,m,p,parent=frame,r=[0,0,0])=>createPart(n,g,m,{position:p,parent,rotation:r});@@ -19,7 +16,7 @@ function build() {function wedge(r0,r1,x0,x1,a0,a1) {const v=[];for(const x of [x0,x1])for(const r of [r0,r1])for(const a of [a0,a1])v.push(...ringPoint(x,r,a));const g=new THREE.BufferGeometry();g.setAttribute('position',new THREE.Float32BufferAttribute(v,3));- g.setIndex([0,1,3,0,3,2,4,6,7,4,7,5,0,4,5,0,5,1,2,3,7,2,7,6,0,2,6,0,6,4,1,5,7,1,7,3]);g.computeVertexNormals();return g;+ g.setIndex([0,1,3,0,3,2,4,6,7,4,7,5,0,4,5,0,5,1,2,3,7,2,7,6,0,2,6,0,6,4,1,5,7,1,7,3]);const solid=g.toNonIndexed();solid.computeVertexNormals();return solid;}for(let i=0;i<24;i++){const a=i*Math.PI/12, b=(i+1)*Math.PI/12, mid=(a+b)/2;@@ -44,9 +41,25 @@ function build() {beam('SpokeService'+i,[0.4,1.4,0],[0.4,8.2,0],0.08,gold,p);for(let j=0;j<3;j++)part('SpokeFlange'+i+'_'+j,boxGeo(1.12,0.15,1.12),dark,[0,3+j*2,0],p);}- part('FixedHub',cylinderXGeo(1.35,1.35,6.4,16),white,[0,0,0]);- part('RotorBearing',cylinderXGeo(1.58,1.58,1.2,24),dark,[0,0,0]);- for(const x of [-2.9,2.9])part('HubEndBand'+x,cylinderXGeo(1.43,1.43,0.22,16),gold,[x,0,0]);+ const hubShell=lathe([[0,-3.2],[1.2,-3.2],[1.35,-3.04],[1.35,3.04],[1.2,3.2],[0,3.2]],48);hubShell.rotateZ(-Math.PI/2);+ part('FixedHub',hubShell,white,[0,0,0]);+ part('RotorBearing',cylinderXGeo(1.58,1.58,1.2,48),dark,[0,0,0]);+ for(const x of [-2.9,2.9])part('HubEndBand'+x,cylinderXGeo(1.43,1.43,0.22,48),gold,[x,0,0]);+ // A recessed axial service port, surrounded by a structural annulus.+ // The dark backing sits behind the lip, so the end reads as a cavity rather than a blank cap.+ part('AftPressureBulkhead',cylinderXGeo(1.22,1.35,0.48,48),dark,[-3.38,0,0]);+ part('AftPortRecess',cylinderXGeo(0.84,0.84,0.08,48),dark,[-3.66,0,0]);+ const aftRing=(name,radius,tube,x,mat)=>part(name,torusGeo(radius,tube,8,48),mat,[x,0,0],frame,[0,90,0]);+ aftRing('AftStructuralLip',1.16,0.16,-3.68,white);+ aftRing('AftSeal',0.91,0.07,-3.72,gold);+ part('ServiceHatch',cylinderXGeo(0.64,0.64,0.06,32),white,[-3.73,0,0]);+ part('HatchSplit',boxGeo(0.025,1.08,0.035),dark,[-3.77,0,0]);+ for(let i=0;i<8;i++){+ const a=i*Math.PI/4;+ part('AftLatch'+i,boxGeo(0.18,0.2,0.16),gold,ringPoint(-3.83,1.13,a),frame,[a*180/Math.PI,0,0]);+ part('HubServicePanel'+i,boxGeo(1.4,0.12,0.55),white,ringPoint(-1.98,1.34,a),frame,[a*180/Math.PI,0,0]);+ for(let j=0;j<4;j++)part('HubVent'+i+'_'+j,boxGeo(0.065,0.025,0.38),dark,ringPoint(-2.42+j*0.23,1.415,a),frame,[a*180/Math.PI,0,0]);+ }const dock=createPivot('DockingNode',[3.7,0,0],frame);part('DockingManifold',cylinderXGeo(0.95,1.15,1.4,12),dark,[0,0,0],dock);for(let i=0;i<4;i++){@@ -75,19 +88,33 @@ function build() {beam('ArrayCrossbar_'+s+'_'+j,[-2.3,-0.12,-4+j*1.14],[2.3,-0.12,-4+j*1.14],0.045,white,wing);beam('ArrayTruss_'+s+'_'+j,[-2.25,-0.36,-4+j],[2.25,-0.12,-3+j],0.045,white,wing);}- const rad=createPivot('Radiator'+s,[-2.4,s*2.6,0],frame);rad.rotation.x=s*0.45;- beam('RadiatorMount'+s,[-2.4,s*1,0],[-2.4,s*2.6,0],0.18,dark);- part('WhiteThermalPanel_'+s,boxGeo(3.4,0.12,4.8),white,[0,0,0],rad);- for(let j=0;j<7;j++)part('RadiatorChannel_'+s+'_'+j,boxGeo(0.035,0.025,4.65),dark,[-1.4+j*0.46,0.075,0],rad);+ // Mirrored, double-sided thermal cassettes, with a visible load path to the hub.+ const rad=createPivot('Radiator'+s,[-1.95,s*2.65,0],frame);+ for(const z of [-0.9,0.9]){+ beam('RadiatorRoot'+s+'_'+z,[-1.2,s*0.92,z*0.65],[-1.2,s*2.65,z],0.11,dark);+ beam('RadiatorBrace'+s+'_'+z,[-2.85,s*0.92,z*0.65],[-1.2,s*2.65,z],0.075,gold);+ }+ part('ThermalCassette_'+s,boxGeo(2.55,0.2,3.5),dark,[0,0,0],rad);+ for(const face of [-1,1]){+ for(let j=0;j<6;j++){+ part('ThermalTile_'+s+'_'+face+'_'+j,boxGeo(0.37,0.045,3.18),white,[-1.025+j*0.41,face*0.12,0],rad);+ part('ThermalTube_'+s+'_'+face+'_'+j,boxGeo(0.025,0.025,3.05),dark,[-1.025+j*0.41,face*0.155,0],rad);+ }+ }+ for(const z of [-1.7,1.7])part('RadiatorHeader'+s+'_'+z,boxGeo(2.62,0.25,0.12),gold,[0,0,z],rad);+ for(const x of [-1.28,1.28])part('RadiatorEdge'+s+'_'+x,boxGeo(0.09,0.24,3.5),white,[x,0,0],rad);+ }+ // Paired communications pods flank the aft port. No isolated top mast or horn:+ // the rear service assembly is mirrored across both its vertical and lateral axes.+ for(const s of [-1,1]){+ beam('CommsOutrigger'+s,[-2.9,0,s*1.2],[-4.15,0,s*2.05],0.12,dark);+ for(const y of [-0.35,0.35])beam('CommsBrace'+s+'_'+y,[-2.5,y,s*1.18],[-4.15,0,s*2.05],0.055,gold);+ const pod=createPivot('CommsPod'+s,[-4.15,0,s*2.05],frame);pod.rotation.x=s*Math.PI/2;+ part('CommunicationsDish'+s,lathe([[0,0],[0.2,0.025],[0.43,0.13],[0.6,0.29],[0.6,0.35],[0.42,0.19],[0.18,0.085],[0,0.06]],32),white,[0,0,0],pod);+ beam('DishFeed'+s,[0,0,0],[0,0.5,0],0.035,gold,pod);}- beam('DishMast',[-1.9,1.1,0],[-1.9,3.6,0],0.1,dark);- part('CommunicationsDish',lathe([[0,0],[0.3,0.04],[0.65,0.2],[1,0.48],[1,0.54],[0.64,0.26],[0.28,0.1],[0,0.07]],16),white,[-1.9,3.6,0]);- beam('DishFeed',[-1.9,3.6,0],[-1.9,4.5,0],0.05,gold);- beam('HornMast',[1.8,0.9,0],[1.8,2.8,0.2],0.09,dark);- part('HornAntenna',cylinderXGeo(0.48,0.12,0.7,4),gold,[2.12,2.8,0.2]);root.updateMatrixWorld(true);const bounds=new THREE.Box3().setFromObject(root);frame.position.y-=bounds.min.y;return root;}function animate(){ return [createClip('HabitatRotation',60,[rotationTrack('Joint_HabitatRotor',[0,15,30,45,60].map((time,i)=>({time,rotation:[i*90,0,0]})))])]; }-diff --git a/examples/orbital-station.provenance.json b/examples/orbital-station.provenance.jsonindex b1c2268e..ba65f0e7 100644--- a/examples/orbital-station.provenance.json+++ b/examples/orbital-station.provenance.json@@ -1,39 +1,39 @@{- "sourceHash": "d2c1693ef6938a14e482a3640c838bbf17c721aa333a7559ad496593ae1f33ea",+ "sourceHash": "cac72b1669d259d4083d1f094dfd6c49d842f03ef45e509d6b24f70672cd55fd","model": "GPT-6 Astra","harness": "Codex","provenance": {"attribution": "Source-header credit",- "sourceAccess": "Source header declares no repository implementation or finished examples supplied",- "inheritedContext": "Not independently recorded; source-header declarations only",- "startingExample": "None supplied, according to source header",- "humanIntervention": "Header declares no hand-authored source; other intervention not recorded",- "reviewFidelity": "Six-view review declared; renderer fidelity not recorded",+ "sourceAccess": "Existing station source and repository implementation available during this refinement.",+ "inheritedContext": "Owner screenshot and feedback on the rear silhouette.",+ "startingExample": "Original orbital station, retained in gallery revision history.",+ "humanIntervention": "Owner art direction; source refinement authored by Codex.",+ "reviewFidelity": "Refinement reviewed separately from the original authoring session.","poster": "Gallery GPU render of the exact downloadable GLB. Source, artifact, image hashes and camera settings are recorded alongside the poster.","posterReceipt": {"captureIdentity": ["kiln.capture-producer.v1","sha256:10f346ec6287c8d635dabe4668d72925080e6fe3d059dd7a9252f2694ce595c2",- "a3fa7ff0-5d67-45ca-b663-3de687c939da",+ "457e4f85-753d-4e1a-ac20-f7d20c989694","dawn-d3d12:nvidia-geforce-rtx-3070:D3D12 driver version 32.0.16.1074"],- "sourceHash": "d2c1693ef6938a14e482a3640c838bbf17c721aa333a7559ad496593ae1f33ea",- "artifactHash": "0270271ecfef25ead0652c480c8959e72fdacddb60aa91a97021679cdfc8d053",- "imageHash": "f077deae87a1b85f8a1eec1e3349a8b76de5c1302b64362ff081f9aa97eef445",+ "sourceHash": "cac72b1669d259d4083d1f094dfd6c49d842f03ef45e509d6b24f70672cd55fd",+ "artifactHash": "699399dc2d43ea206c5265a09f88358608cd1b4f7111a6aaebd57f51080de235",+ "imageHash": "be2b64375a12f3dbdd8bfe8057beb8260b3d56bcd44a7181b56fee444d92fd31","width": 1024,"height": 1024,"camera": {"version": "kiln.camera.v1","projection": "orthographic","position": [- 69.77844410950888,- 44.189336425386585,- 50.67984019060035+ 69.83758324436859,+ 44.21772321011923,+ 50.72123758500214],"target": [- 0.3301681944798219,- 10.854163986172633,- 2.0660470500800145+ 0.21141063955594783,+ 10.797160359809173,+ 1.9829167616333045],"up": [0,@@ -42,7 +42,7 @@],"aspect": 1,"near": 0.01,- "far": 227.72787533357985,+ "far": 228.3112164555806,"halfHeight": 18.799998408372225},"rendererId": "dawn-d3d12:nvidia-geforce-rtx-3070:D3D12 driver version 32.0.16.1074",diff --git a/examples/renders/orbital-station.json b/examples/renders/orbital-station.jsonindex 59de41db..75fc72ef 100644--- a/examples/renders/orbital-station.json+++ b/examples/renders/orbital-station.json@@ -2,26 +2,26 @@"captureIdentity": ["kiln.capture-producer.v1","sha256:10f346ec6287c8d635dabe4668d72925080e6fe3d059dd7a9252f2694ce595c2",- "a3fa7ff0-5d67-45ca-b663-3de687c939da",+ "457e4f85-753d-4e1a-ac20-f7d20c989694","dawn-d3d12:nvidia-geforce-rtx-3070:D3D12 driver version 32.0.16.1074"],- "sourceHash": "d2c1693ef6938a14e482a3640c838bbf17c721aa333a7559ad496593ae1f33ea",- "artifactHash": "0270271ecfef25ead0652c480c8959e72fdacddb60aa91a97021679cdfc8d053",- "imageHash": "f077deae87a1b85f8a1eec1e3349a8b76de5c1302b64362ff081f9aa97eef445",+ "sourceHash": "cac72b1669d259d4083d1f094dfd6c49d842f03ef45e509d6b24f70672cd55fd",+ "artifactHash": "699399dc2d43ea206c5265a09f88358608cd1b4f7111a6aaebd57f51080de235",+ "imageHash": "be2b64375a12f3dbdd8bfe8057beb8260b3d56bcd44a7181b56fee444d92fd31","width": 1024,"height": 1024,"camera": {"version": "kiln.camera.v1","projection": "orthographic","position": [- 69.77844410950888,- 44.189336425386585,- 50.67984019060035+ 69.83758324436859,+ 44.21772321011923,+ 50.72123758500214],"target": [- 0.3301681944798219,- 10.854163986172633,- 2.0660470500800145+ 0.21141063955594783,+ 10.797160359809173,+ 1.9829167616333045],"up": [0,@@ -30,7 +30,7 @@],"aspect": 1,"near": 0.01,- "far": 227.72787533357985,+ "far": 228.3112164555806,"halfHeight": 18.799998408372225},"rendererId": "dawn-d3d12:nvidia-geforce-rtx-3070:D3D12 driver version 32.0.16.1074",diff --git a/site/examples/history/orbital-station/history.json b/site/examples/history/orbital-station/history.jsonnew file mode 100644index 00000000..155ec212--- /dev/null+++ b/site/examples/history/orbital-station/history.json@@ -0,0 +1,22 @@+{+ "version": 1,+ "brief": {+ "kind": "summary",+ "text": "Refine the orbital station rear assembly into a more appealing hero asset while preserving the ring silhouette."+ },+ "currentSourceHash": "cac72b1669d259d4083d1f094dfd6c49d842f03ef45e509d6b24f70672cd55fd",+ "revisions": [+ {+ "file": "original.kiln.js",+ "title": "Original station",+ "description": "Original model-authored station before owner feedback on the rear assembly.",+ "sourceHash": "d2c1693ef6938a14e482a3640c838bbf17c721aa333a7559ad496593ae1f33ea"+ },+ {+ "file": "refined.kiln.js",+ "title": "Rear assembly refinement",+ "description": "Owner-directed Codex refinement: mirrored radiator cassettes and communications pods, recessed service hatch, supported joints and smoother material finish. Existing source and repository context were available.",+ "sourceHash": "cac72b1669d259d4083d1f094dfd6c49d842f03ef45e509d6b24f70672cd55fd"+ }+ ]+}diff --git a/site/examples/history/orbital-station/original.kiln.js b/site/examples/history/orbital-station/original.kiln.jsnew file mode 100644index 00000000..ef6e0994--- /dev/null+++ b/site/examples/history/orbital-station/original.kiln.js@@ -0,0 +1,93 @@+// Authored by: gpt-6-astra, via codex.+//+// Written by the model itself through the Kiln MCP tools: it wrote the+// program, rendered it, looked at its own six-view contact sheet, and+// revised. Not a line of it is hand-authored.+//+// Dispatched into a clean directory containing only the brief and the Kiln+// skills, with no access to this repository or to any finished example.++const meta = { name: 'OrbitalStation', category: 'prop' };+function build() {+ const root=createRoot('OrbitalStation');+ const white=gameMaterial(0xdce3e4,{roughness:0.6}), dark=gameMaterial(0x293a47,{metalness:0.6}), blue=gameMaterial(0x193f79,{metalness:0.5,roughness:0.3}), glass=gameMaterial(0x63b7c9,{emissive:0x286778,emissiveIntensity:0.35}), gold=gameMaterial(0xc58b43,{metalness:0.5});+ const frame=createPivot('Station',[0,10.25,0],root);+ const rotor=createPivot('HabitatRotor',[0,0,0],frame);+ const part=(n,g,m,p,parent=frame,r=[0,0,0])=>createPart(n,g,m,{position:p,parent,rotation:r});+ const beam=(n,a,b,r,m,parent=frame)=>beamBetween(n,a,b,r,m,{segments:6,parent});+ const ringPoint=(x,r,a)=>[x,r*Math.cos(a),r*Math.sin(a)];+ function wedge(r0,r1,x0,x1,a0,a1) {+ const v=[];for(const x of [x0,x1])for(const r of [r0,r1])for(const a of [a0,a1])v.push(...ringPoint(x,r,a));+ const g=new THREE.BufferGeometry();g.setAttribute('position',new THREE.Float32BufferAttribute(v,3));+ g.setIndex([0,1,3,0,3,2,4,6,7,4,7,5,0,4,5,0,5,1,2,3,7,2,7,6,0,2,6,0,6,4,1,5,7,1,7,3]);g.computeVertexNormals();return g;+ }+ for(let i=0;i<24;i++){+ const a=i*Math.PI/12, b=(i+1)*Math.PI/12, mid=(a+b)/2;+ part('HabitatWedge_'+i,wedge(8.1,9.9,-0.9,0.9,a,b),i%6===0?gold:white,[0,0,0],rotor);+ for(const side of [-1,1]){+ part('WindowBand_'+i+'_'+side,wedge(8.65,9.2,side>0?0.899:-0.93,side>0?0.93:-0.899,a+0.035,b-0.035),glass,[0,0,0],rotor);+ part('WindowMullion_'+i+'_'+side,boxGeo(0.06,0.57,0.055),white,ringPoint(side*0.942,8.925,mid),rotor,[mid*180/Math.PI,0,0]);+ beam('Handrail_'+i+'_'+side,ringPoint(side*1.22,9.65,a),ringPoint(side*1.22,9.65,b),0.045,dark,rotor);+ beam('RailStanchion_'+i+'_'+side,ringPoint(side*0.86,9.65,a),ringPoint(side*1.22,9.65,a),0.045,dark,rotor);+ }+ beam('OuterCoolant_'+i,ringPoint(0,10.15,a),ringPoint(0,10.15,b),0.1,gold,rotor);+ part('CableTray_'+i,boxGeo(0.34,0.12,2.56),dark,ringPoint(-0.5,9.96,mid),rotor,[mid*180/Math.PI,0,0]);+ if(i%2===0){+ part('ServiceJunction_'+i,boxGeo(0.65,0.22,0.5),white,ringPoint(0.25,9.9,mid),rotor,[mid*180/Math.PI,0,0]);+ part('ServiceLatch_'+i,boxGeo(0.18,0.04,0.3),gold,ringPoint(0.25,10.02,mid),rotor,[mid*180/Math.PI,0,0]);+ }+ beam('PipeClamp_'+i,ringPoint(0,9.8,mid),ringPoint(0,10.15,mid),0.12,dark,rotor);+ }+ for(let i=0;i<4;i++){+ const a=i*Math.PI/2, p=createPivot('SpokeFrame'+i,[0,0,0],rotor);p.rotation.x=a;+ part('TaperedSpoke'+i,cylinderGeo(0.65,0.32,6.9,8),white,[0,4.95,0],p);+ beam('SpokeService'+i,[0.4,1.4,0],[0.4,8.2,0],0.08,gold,p);+ for(let j=0;j<3;j++)part('SpokeFlange'+i+'_'+j,boxGeo(1.12,0.15,1.12),dark,[0,3+j*2,0],p);+ }+ part('FixedHub',cylinderXGeo(1.35,1.35,6.4,16),white,[0,0,0]);+ part('RotorBearing',cylinderXGeo(1.58,1.58,1.2,24),dark,[0,0,0]);+ for(const x of [-2.9,2.9])part('HubEndBand'+x,cylinderXGeo(1.43,1.43,0.22,16),gold,[x,0,0]);+ const dock=createPivot('DockingNode',[3.7,0,0],frame);+ part('DockingManifold',cylinderXGeo(0.95,1.15,1.4,12),dark,[0,0,0],dock);+ for(let i=0;i<4;i++){+ const a=i*Math.PI/2;+ beam('RadialDockNeck'+i,ringPoint(0,0.7,a),ringPoint(0,1.65,a),0.42,white,dock);+ const p=createPivot('DockCollarFrame'+i,ringPoint(0,1.7,a),dock);p.rotation.x=a-Math.PI/2;+ part('RadialDockCollar'+i,torusGeo(0.48,0.12,6,12),gold,[0,0,0],p);+ }+ part('AxialDockCollar',cylinderXGeo(0.58,0.58,0.55,12),gold,[4.6,0,0]);+ const craft=createPivot('SupplyCraft',[6.3,0,0],frame);+ part('CargoHull',cylinderXGeo(0.86,0.86,2.9,12),white,[0,0,0],craft);+ part('CargoForwardCap',coneXGeo(0.86,0.75,12),white,[1.8,0,0],craft);+ for(const x of [-1,0.8])part('CargoStrap'+x,cylinderXGeo(0.9,0.9,0.18,12),dark,[x,0,0],craft);+ part('Cockpit',boxGeo(0.7,0.14,0.85),glass,[1,0.82,0],craft);+ for(const s of [-1,1]){+ part('ThrusterPod'+s,cylinderXGeo(0.24,0.3,0.9,8),dark,[-0.8,0,s*0.92],craft);+ beam('ArrayBoom'+s,[-2.5,0,0],[-2.5,0,s*11.4],0.18,white);+ part('GimbalBearing'+s,cylinderZGeo(0.5,0.5,0.8,12),gold,[-2.5,0,s*11.2]);+ const wing=createPivot('SolarWing'+s,[-2.5,0,s*15.2],frame);wing.rotation.z=-0.85;+ part('ArrayBacking_'+s,boxGeo(4.6,0.16,8.2),dark,[0,0,0],wing);+ for(let row=0;row<12;row++)for(let col=0;col<4;col++)+ part('SolarCell_'+s+'_'+row+'_'+col,boxGeo(1.06,0.035,0.6),blue,[-1.68+col*1.12,0.097,-3.63+row*0.66],wing);+ for(const x of [-2.27,0,2.27])beam('ArraySpar_'+s+'_'+x,[x,-0.36,-4.1],[x,-0.36,4.1],0.055,white,wing);+ for(const x of [-2.27,0,2.27])for(const z of [-4,4])beam('TrussTie_'+s+'_'+x+'_'+z,[x,-0.36,z],[x,0,z],0.055,white,wing);+ for(let j=0;j<8;j++){+ beam('ArrayCrossbar_'+s+'_'+j,[-2.3,-0.12,-4+j*1.14],[2.3,-0.12,-4+j*1.14],0.045,white,wing);+ beam('ArrayTruss_'+s+'_'+j,[-2.25,-0.36,-4+j],[2.25,-0.12,-3+j],0.045,white,wing);+ }+ const rad=createPivot('Radiator'+s,[-2.4,s*2.6,0],frame);rad.rotation.x=s*0.45;+ beam('RadiatorMount'+s,[-2.4,s*1,0],[-2.4,s*2.6,0],0.18,dark);+ part('WhiteThermalPanel_'+s,boxGeo(3.4,0.12,4.8),white,[0,0,0],rad);+ for(let j=0;j<7;j++)part('RadiatorChannel_'+s+'_'+j,boxGeo(0.035,0.025,4.65),dark,[-1.4+j*0.46,0.075,0],rad);+ }+ beam('DishMast',[-1.9,1.1,0],[-1.9,3.6,0],0.1,dark);+ part('CommunicationsDish',lathe([[0,0],[0.3,0.04],[0.65,0.2],[1,0.48],[1,0.54],[0.64,0.26],[0.28,0.1],[0,0.07]],16),white,[-1.9,3.6,0]);+ beam('DishFeed',[-1.9,3.6,0],[-1.9,4.5,0],0.05,gold);+ beam('HornMast',[1.8,0.9,0],[1.8,2.8,0.2],0.09,dark);+ part('HornAntenna',cylinderXGeo(0.48,0.12,0.7,4),gold,[2.12,2.8,0.2]);+ root.updateMatrixWorld(true);+ const bounds=new THREE.Box3().setFromObject(root);frame.position.y-=bounds.min.y;+ return root;+}+function animate(){ return [createClip('HabitatRotation',60,[rotationTrack('Joint_HabitatRotor',[0,15,30,45,60].map((time,i)=>({time,rotation:[i*90,0,0]})))])]; }+diff --git a/site/examples/history/orbital-station/refined.kiln.js b/site/examples/history/orbital-station/refined.kiln.jsnew file mode 100644index 00000000..a540a2e0--- /dev/null+++ b/site/examples/history/orbital-station/refined.kiln.js@@ -0,0 +1,120 @@+// Authored by: gpt-6-astra, via codex.+//+// Original model-authored station retained in site/examples/history/orbital-station.+// Maintainer revision: Codex refinement following owner feedback on the rear assembly.+// This revision uses the existing source and repository context.++const meta = { name: 'OrbitalStation', category: 'prop' };+function build() {+ const root=createRoot('OrbitalStation');+ const white=gameMaterial(0xbfcbd0,{metalness:0.22,roughness:0.42,flatShading:false}), dark=gameMaterial(0x202d38,{metalness:0.65,roughness:0.38,flatShading:false}), blue=gameMaterial(0x153450,{metalness:0.55,roughness:0.26,flatShading:false}), glass=gameMaterial(0x4393a5,{metalness:0.25,roughness:0.23,emissive:0x174857,emissiveIntensity:0.18,flatShading:false}), gold=gameMaterial(0xa67b44,{metalness:0.72,roughness:0.34,flatShading:false});+ const frame=createPivot('Station',[0,10.25,0],root);+ const rotor=createPivot('HabitatRotor',[0,0,0],frame);+ const part=(n,g,m,p,parent=frame,r=[0,0,0])=>createPart(n,g,m,{position:p,parent,rotation:r});+ const beam=(n,a,b,r,m,parent=frame)=>beamBetween(n,a,b,r,m,{segments:6,parent});+ const ringPoint=(x,r,a)=>[x,r*Math.cos(a),r*Math.sin(a)];+ function wedge(r0,r1,x0,x1,a0,a1) {+ const v=[];for(const x of [x0,x1])for(const r of [r0,r1])for(const a of [a0,a1])v.push(...ringPoint(x,r,a));+ const g=new THREE.BufferGeometry();g.setAttribute('position',new THREE.Float32BufferAttribute(v,3));+ g.setIndex([0,1,3,0,3,2,4,6,7,4,7,5,0,4,5,0,5,1,2,3,7,2,7,6,0,2,6,0,6,4,1,5,7,1,7,3]);const solid=g.toNonIndexed();solid.computeVertexNormals();return solid;+ }+ for(let i=0;i<24;i++){+ const a=i*Math.PI/12, b=(i+1)*Math.PI/12, mid=(a+b)/2;+ part('HabitatWedge_'+i,wedge(8.1,9.9,-0.9,0.9,a,b),i%6===0?gold:white,[0,0,0],rotor);+ for(const side of [-1,1]){+ part('WindowBand_'+i+'_'+side,wedge(8.65,9.2,side>0?0.899:-0.93,side>0?0.93:-0.899,a+0.035,b-0.035),glass,[0,0,0],rotor);+ part('WindowMullion_'+i+'_'+side,boxGeo(0.06,0.57,0.055),white,ringPoint(side*0.942,8.925,mid),rotor,[mid*180/Math.PI,0,0]);+ beam('Handrail_'+i+'_'+side,ringPoint(side*1.22,9.65,a),ringPoint(side*1.22,9.65,b),0.045,dark,rotor);+ beam('RailStanchion_'+i+'_'+side,ringPoint(side*0.86,9.65,a),ringPoint(side*1.22,9.65,a),0.045,dark,rotor);+ }+ beam('OuterCoolant_'+i,ringPoint(0,10.15,a),ringPoint(0,10.15,b),0.1,gold,rotor);+ part('CableTray_'+i,boxGeo(0.34,0.12,2.56),dark,ringPoint(-0.5,9.96,mid),rotor,[mid*180/Math.PI,0,0]);+ if(i%2===0){+ part('ServiceJunction_'+i,boxGeo(0.65,0.22,0.5),white,ringPoint(0.25,9.9,mid),rotor,[mid*180/Math.PI,0,0]);+ part('ServiceLatch_'+i,boxGeo(0.18,0.04,0.3),gold,ringPoint(0.25,10.02,mid),rotor,[mid*180/Math.PI,0,0]);+ }+ beam('PipeClamp_'+i,ringPoint(0,9.8,mid),ringPoint(0,10.15,mid),0.12,dark,rotor);+ }+ for(let i=0;i<4;i++){+ const a=i*Math.PI/2, p=createPivot('SpokeFrame'+i,[0,0,0],rotor);p.rotation.x=a;+ part('TaperedSpoke'+i,cylinderGeo(0.65,0.32,6.9,8),white,[0,4.95,0],p);+ beam('SpokeService'+i,[0.4,1.4,0],[0.4,8.2,0],0.08,gold,p);+ for(let j=0;j<3;j++)part('SpokeFlange'+i+'_'+j,boxGeo(1.12,0.15,1.12),dark,[0,3+j*2,0],p);+ }+ const hubShell=lathe([[0,-3.2],[1.2,-3.2],[1.35,-3.04],[1.35,3.04],[1.2,3.2],[0,3.2]],48);hubShell.rotateZ(-Math.PI/2);+ part('FixedHub',hubShell,white,[0,0,0]);+ part('RotorBearing',cylinderXGeo(1.58,1.58,1.2,48),dark,[0,0,0]);+ for(const x of [-2.9,2.9])part('HubEndBand'+x,cylinderXGeo(1.43,1.43,0.22,48),gold,[x,0,0]);+ // A recessed axial service port, surrounded by a structural annulus.+ // The dark backing sits behind the lip, so the end reads as a cavity rather than a blank cap.+ part('AftPressureBulkhead',cylinderXGeo(1.22,1.35,0.48,48),dark,[-3.38,0,0]);+ part('AftPortRecess',cylinderXGeo(0.84,0.84,0.08,48),dark,[-3.66,0,0]);+ const aftRing=(name,radius,tube,x,mat)=>part(name,torusGeo(radius,tube,8,48),mat,[x,0,0],frame,[0,90,0]);+ aftRing('AftStructuralLip',1.16,0.16,-3.68,white);+ aftRing('AftSeal',0.91,0.07,-3.72,gold);+ part('ServiceHatch',cylinderXGeo(0.64,0.64,0.06,32),white,[-3.73,0,0]);+ part('HatchSplit',boxGeo(0.025,1.08,0.035),dark,[-3.77,0,0]);+ for(let i=0;i<8;i++){+ const a=i*Math.PI/4;+ part('AftLatch'+i,boxGeo(0.18,0.2,0.16),gold,ringPoint(-3.83,1.13,a),frame,[a*180/Math.PI,0,0]);+ part('HubServicePanel'+i,boxGeo(1.4,0.12,0.55),white,ringPoint(-1.98,1.34,a),frame,[a*180/Math.PI,0,0]);+ for(let j=0;j<4;j++)part('HubVent'+i+'_'+j,boxGeo(0.065,0.025,0.38),dark,ringPoint(-2.42+j*0.23,1.415,a),frame,[a*180/Math.PI,0,0]);+ }+ const dock=createPivot('DockingNode',[3.7,0,0],frame);+ part('DockingManifold',cylinderXGeo(0.95,1.15,1.4,12),dark,[0,0,0],dock);+ for(let i=0;i<4;i++){+ const a=i*Math.PI/2;+ beam('RadialDockNeck'+i,ringPoint(0,0.7,a),ringPoint(0,1.65,a),0.42,white,dock);+ const p=createPivot('DockCollarFrame'+i,ringPoint(0,1.7,a),dock);p.rotation.x=a-Math.PI/2;+ part('RadialDockCollar'+i,torusGeo(0.48,0.12,6,12),gold,[0,0,0],p);+ }+ part('AxialDockCollar',cylinderXGeo(0.58,0.58,0.55,12),gold,[4.6,0,0]);+ const craft=createPivot('SupplyCraft',[6.3,0,0],frame);+ part('CargoHull',cylinderXGeo(0.86,0.86,2.9,12),white,[0,0,0],craft);+ part('CargoForwardCap',coneXGeo(0.86,0.75,12),white,[1.8,0,0],craft);+ for(const x of [-1,0.8])part('CargoStrap'+x,cylinderXGeo(0.9,0.9,0.18,12),dark,[x,0,0],craft);+ part('Cockpit',boxGeo(0.7,0.14,0.85),glass,[1,0.82,0],craft);+ for(const s of [-1,1]){+ part('ThrusterPod'+s,cylinderXGeo(0.24,0.3,0.9,8),dark,[-0.8,0,s*0.92],craft);+ beam('ArrayBoom'+s,[-2.5,0,0],[-2.5,0,s*11.4],0.18,white);+ part('GimbalBearing'+s,cylinderZGeo(0.5,0.5,0.8,12),gold,[-2.5,0,s*11.2]);+ const wing=createPivot('SolarWing'+s,[-2.5,0,s*15.2],frame);wing.rotation.z=-0.85;+ part('ArrayBacking_'+s,boxGeo(4.6,0.16,8.2),dark,[0,0,0],wing);+ for(let row=0;row<12;row++)for(let col=0;col<4;col++)+ part('SolarCell_'+s+'_'+row+'_'+col,boxGeo(1.06,0.035,0.6),blue,[-1.68+col*1.12,0.097,-3.63+row*0.66],wing);+ for(const x of [-2.27,0,2.27])beam('ArraySpar_'+s+'_'+x,[x,-0.36,-4.1],[x,-0.36,4.1],0.055,white,wing);+ for(const x of [-2.27,0,2.27])for(const z of [-4,4])beam('TrussTie_'+s+'_'+x+'_'+z,[x,-0.36,z],[x,0,z],0.055,white,wing);+ for(let j=0;j<8;j++){+ beam('ArrayCrossbar_'+s+'_'+j,[-2.3,-0.12,-4+j*1.14],[2.3,-0.12,-4+j*1.14],0.045,white,wing);+ beam('ArrayTruss_'+s+'_'+j,[-2.25,-0.36,-4+j],[2.25,-0.12,-3+j],0.045,white,wing);+ }+ // Mirrored, double-sided thermal cassettes, with a visible load path to the hub.+ const rad=createPivot('Radiator'+s,[-1.95,s*2.65,0],frame);+ for(const z of [-0.9,0.9]){+ beam('RadiatorRoot'+s+'_'+z,[-1.2,s*0.92,z*0.65],[-1.2,s*2.65,z],0.11,dark);+ beam('RadiatorBrace'+s+'_'+z,[-2.85,s*0.92,z*0.65],[-1.2,s*2.65,z],0.075,gold);+ }+ part('ThermalCassette_'+s,boxGeo(2.55,0.2,3.5),dark,[0,0,0],rad);+ for(const face of [-1,1]){+ for(let j=0;j<6;j++){+ part('ThermalTile_'+s+'_'+face+'_'+j,boxGeo(0.37,0.045,3.18),white,[-1.025+j*0.41,face*0.12,0],rad);+ part('ThermalTube_'+s+'_'+face+'_'+j,boxGeo(0.025,0.025,3.05),dark,[-1.025+j*0.41,face*0.155,0],rad);+ }+ }+ for(const z of [-1.7,1.7])part('RadiatorHeader'+s+'_'+z,boxGeo(2.62,0.25,0.12),gold,[0,0,z],rad);+ for(const x of [-1.28,1.28])part('RadiatorEdge'+s+'_'+x,boxGeo(0.09,0.24,3.5),white,[x,0,0],rad);+ }+ // Paired communications pods flank the aft port. No isolated top mast or horn:+ // the rear service assembly is mirrored across both its vertical and lateral axes.+ for(const s of [-1,1]){+ beam('CommsOutrigger'+s,[-2.9,0,s*1.2],[-4.15,0,s*2.05],0.12,dark);+ for(const y of [-0.35,0.35])beam('CommsBrace'+s+'_'+y,[-2.5,y,s*1.18],[-4.15,0,s*2.05],0.055,gold);+ const pod=createPivot('CommsPod'+s,[-4.15,0,s*2.05],frame);pod.rotation.x=s*Math.PI/2;+ part('CommunicationsDish'+s,lathe([[0,0],[0.2,0.025],[0.43,0.13],[0.6,0.29],[0.6,0.35],[0.42,0.19],[0.18,0.085],[0,0.06]],32),white,[0,0,0],pod);+ beam('DishFeed'+s,[0,0,0],[0,0.5,0],0.035,gold,pod);+ }+ root.updateMatrixWorld(true);+ const bounds=new THREE.Box3().setFromObject(root);frame.position.y-=bounds.min.y;+ return root;+}+function animate(){ return [createClip('HabitatRotation',60,[rotationTrack('Joint_HabitatRotor',[0,15,30,45,60].map((time,i)=>({time,rotation:[i*90,0,0]})))])]; }diff --git a/site/examples/orbital-station.poster.json b/site/examples/orbital-station.poster.jsonindex b2dc9531..ac226152 100644--- a/site/examples/orbital-station.poster.json+++ b/site/examples/orbital-station.poster.json@@ -1,13 +1,13 @@{"captureIdentity": ["kiln.capture-producer.v1",- "sha256:a2ae15d1dc15399d79a95a005609087493c32c705210378b460bc442966032b1",- "191c6307-0c8e-462f-8a6b-5d87b6fd1b90",+ "sha256:10f346ec6287c8d635dabe4668d72925080e6fe3d059dd7a9252f2694ce595c2",+ "457e4f85-753d-4e1a-ac20-f7d20c989694","dawn-d3d12:nvidia-geforce-rtx-3070:D3D12 driver version 32.0.16.1074"],- "sourceHash": "d2c1693ef6938a14e482a3640c838bbf17c721aa333a7559ad496593ae1f33ea",- "artifactHash": "0270271ecfef25ead0652c480c8959e72fdacddb60aa91a97021679cdfc8d053",- "imageHash": "c1ce487158544797845f9490e8abde0b721dbefe8e6b987dee50a5865d9da52b",+ "sourceHash": "cac72b1669d259d4083d1f094dfd6c49d842f03ef45e509d6b24f70672cd55fd",+ "artifactHash": "699399dc2d43ea206c5265a09f88358608cd1b4f7111a6aaebd57f51080de235",+ "imageHash": "d9969dcab8adbb3d5fca5f657178c1c3f70d372530aac339c45a2128df993a76","cameraRecipeHash": "5af4f0dab20a22de064bc7d5c8198b3d20521555a393f25ac448dcdae9891b86","width": 1024,"height": 768,@@ -15,14 +15,14 @@"version": "kiln.camera.v1","projection": "orthographic","position": [- 69.77844410950888,- 44.189336425386585,- 50.67984019060035+ 69.83758324436859,+ 44.21772321011923,+ 50.72123758500214],"target": [- 0.3301681944798219,- 10.854163986172633,- 2.0660470500800145+ 0.21141063955594783,+ 10.797160359809173,+ 1.9829167616333045],"up": [0,@@ -31,7 +31,7 @@],"aspect": 1.3333333333333333,"near": 0.01,- "far": 227.72787533357985,+ "far": 228.3112164555806,"halfHeight": 14.099998806279167},"rendererId": "dawn-d3d12:nvidia-geforce-rtx-3070:D3D12 driver version 32.0.16.1074",diff --git a/site/examples/orbital-station.poster.png b/site/examples/orbital-station.poster.pngindex ccc9e561..2f7b5720 100644Binary files a/site/examples/orbital-station.poster.png and b/site/examples/orbital-station.poster.png differ