3D engine that AI agents drive
JavaScript 3d3d-engineagentic-aiai-agentsblenderclaude-codegame-enginegaussian-splattinggltfjavascriptmcpmcp-servermodel-context-protocolpath-tracerpath-tracingpbrrenderingthreejs-alternativewebgl2webgpu
<!doctype html>
<html lang="en" data-theme="crucible">
<head>
<meta charset="UTF-8" /><script>try{var saved=localStorage.getItem("crucible-color");if(saved==="light"||saved==="dark")document.documentElement.dataset.color=saved}catch(error){}</script>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="The same lamp, the same light, two display curves." />
<link rel="canonical" href="https://crucible.codepawl.com/recipe-view-transform.html" />
<title>View transform: ACES against AgX on a warm lamp · Crucible</title>
<link rel="icon" href="/favicon.svg?v=2" type="image/svg+xml" /><link rel="icon" href="/favicon.ico?v=2" sizes="48x48" /><link rel="apple-touch-icon" href="/apple-touch-icon.png" />
</head>
<body class="site recipes">
<a class="skip-link" href="#content">Skip to content</a>
<header class="navigation">
<a class="brand" href="/" aria-label="Crucible home">Crucible</a>
<nav aria-label="Library"><a href="/docs.html">Docs</a><a href="/recipes.html" aria-current="page">Recipes</a><a href="/marketplace.html">Marketplace</a><a href="/changelog.html">Changelog</a></nav>
<a class="site-nav-cta" href="https://github.com/codepawl/crucible" aria-label="GitHub"><span class="package-logo package-logo-github" aria-hidden="true"></span><span class="site-nav-cta-label">GitHub</span></a>
</header>
<main id="content">
<p class="recipe-back"><a href="/recipes.html"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="m15 6-6 6 6 6"/></svg>Recipes</a></p>
<h1>View transform: ACES against AgX on a warm lamp</h1>
<div class="recipe-pair"><figure><img src="/recipes/view-transform-before.webp" width="960" height="540" alt="View transform: ACES against AgX on a warm lamp: ACES" /><figcaption>ACES</figcaption></figure><figure><img src="/recipes/view-transform-after.webp" width="960" height="540" alt="View transform: ACES against AgX on a warm lamp: AgX" /><figcaption>AgX</figcaption></figure></div>
<div class="recipe-why"><p>The view transform turns scene light into the pixels on screen. ACES pushes the bright orange of the bulb toward yellow and adds contrast. AgX keeps the shade orange and rolls the bulb off to a warm white.</p><p>Pick it on purpose: ACES is the default, AgX suits lit scenes and matches Blender, neutral keeps product colours as authored.</p></div>
<section class="recipe-code" aria-labelledby="scene-code-title">
<div class="recipe-code-heading"><h2 id="scene-code-title">Scene code</h2><button type="button" data-copy-code="scene-code">Copy</button></div>
<pre><code id="scene-code">{
"format": "crucible.scene",
"schemaVersion": 1,
"geometries": [
{ "id": "base", "type": "lathe", "segments": 64, "profile": [[0, 0], [0.36, 0], [0.38, 0.03], [0.3, 0.07], [0.06, 0.1], [0, 0.1]] },
{ "id": "stem", "type": "cylinder", "segments": 32 },
{ "id": "shade", "type": "lathe", "segments": 64, "profile": [[0.12, 0], [0.4, 0], [0.4, 0.02], [0.14, 0.34], [0.1, 0.34]] },
{ "id": "bulb", "type": "sphere", "segments": 48, "rings": 32 },
{ "id": "floor", "type": "box", "bevel": 0 }
],
"materials": [
{ "id": "brass", "color": [0.6, 0.38, 0.12], "metallic": 0.9, "roughness": 0.3 },
{ "id": "shade", "color": [0.9, 0.45, 0.12], "metallic": 0, "roughness": 0.7, "emission": 0.3, "emissiveColor": [1, 0.35, 0.05] },
{ "id": "glow", "color": [1, 0.35, 0.05], "emission": 3, "emissiveColor": [1, 0.35, 0.05] },
{ "id": "table", "color": [0.36, 0.22, 0.14], "metallic": 0, "roughness": 0.5 },
{ "id": "wall", "color": [0.12, 0.1, 0.1], "metallic": 0, "roughness": 0.9 }
],
"nodes": [
{ "id": "table", "geometry": "floor", "material": "table", "translation": [0, -0.05, 0], "scale": [5, 0.1, 3] },
{ "id": "wall", "geometry": "floor", "material": "wall", "translation": [0, 1.5, -1.4], "scale": [8, 3.2, 0.1] },
{ "id": "lamp", "translation": [0, 0, 0] },
{ "id": "base", "parent": "lamp", "geometry": "base", "material": "brass" },
{ "id": "stem", "parent": "lamp", "geometry": "stem", "material": "brass", "translation": [0, 0.5, 0], "scale": [0.04, 0.8, 0.04] },
{ "id": "shade", "parent": "lamp", "geometry": "shade", "material": "shade", "translation": [0, 0.9, 0] },
{ "id": "bulb", "parent": "lamp", "geometry": "bulb", "material": "glow", "translation": [0, 0.98, 0], "scale": [0.2, 0.22, 0.2] }
],
"camera": { "eye": [0.4, 0.95, 2.6], "target": [0, 0.55, 0], "fov": 32 },
"environment": {
"world": false,
"viewTransform": "agx",
"keyIntensity": 0.1,
"ambientIntensity": 0.1,
"pointLights": [{ "position": [0, 0.98, 0.35], "color": [1, 0.5, 0.15], "intensity": 3 }]
},
"effects": { "exposure": 1 }
}</code></pre>
</section>
<section class="recipe-code" aria-labelledby="before-code-title">
<div class="recipe-code-heading"><h2 id="before-code-title">Merge into the environment for “ACES”</h2><button type="button" data-copy-code="before-code">Copy</button></div>
<pre><code id="before-code">{ "viewTransform": "aces" }</code></pre>
</section>
<p class="recipe-file"><a href="/recipes/view-transform.json" download>Download view-transform.json</a><span>Paste it into <code>scene_create</code> as <code>recipe</code>.</span></p>
</main>
<footer class="site-footer" aria-label="Site footer">
<p><a class="brand" href="/" aria-label="Crucible home">Crucible</a> by <a href="https://codepawl.com">CodePawl</a></p>
<nav class="footer-links" aria-label="Project links"><a href="https://github.com/codepawl/crucible"><span class="package-logo package-logo-github" aria-hidden="true"></span>GitHub</a><a href="https://www.npmjs.com/package/@codepawlhq/crucible"><span class="package-logo package-logo-npm" aria-hidden="true"></span>npm</a><a href="/changelog.md">Changelog</a><a href="/license.txt">MIT license</a></nav>
</footer>
<script type="module" src="/src/recipes.js"></script>
</body>
</html>