Spaces:
Running
Running
Rebuild reference Pareto frontier and default all case displays to live 3D
Browse filesFiles changed (7)
- README.md+4
- assets/buildingbench.css+7
- assets/pareto.jsAdded+44
- assets/scene-cards.jsAdded+276
- cases.html+1-1
- data/pareto.jsonAdded+554
- index.html
24 unmodified lines25262724 unmodified linesThe reference toolkit's Inter, IBM Plex Mono and Source Serif 4 font files are bundled with their original SIL Open Font License notices in `assets/fonts/`. Provider marks are from the toolkit's Lobehub icons, used to identify the corresponding model providers.Deployment remains this Hugging Face static Space: `index.html` and `cases.html`, with the existing media/model paths and headers. The pre-restyle version is recoverable at commit `9ff787d0f9d72905d92f780da56bd2229782b981`.24 unmodified lines2526272829303124 unmodified linesThe reference toolkit's Inter, IBM Plex Mono and Source Serif 4 font files are bundled with their original SIL Open Font License notices in `assets/fonts/`. Provider marks are from the toolkit's Lobehub icons, used to identify the corresponding model providers.Deployment remains this Hugging Face static Space: `index.html` and `cases.html`, with the existing media/model paths and headers. The pre-restyle version is recoverable at commit `9ff787d0f9d72905d92f780da56bd2229782b981`.The Pareto renderer (`assets/pareto.js`) ports the reference toolkit's reversed logarithmic cost axis, connected frontier, provider palette and greedy collision-aware label placement. `data/pareto.json` combines unrounded scores from the existing `data/site.js` with exact mean costs from the original published tables; all three task views recompute non-dominance from those values. The table displays three decimals but sorts at source precision.Homepage scenes (`assets/scene-cards.js`) adapt BuildingBench's shared WebGL renderer and per-view canvas engine. Existing public packed models are decoded with the same adapter as `cases.html`; geometry and the full case explorer remain unchanged. Visible scenes load automatically; repeated scenes share decoded assets. Drag or arrow keys orbit, wheel or +/- zoom, and the pause control stops rotation. Both Image-to-Scene cards switch between the saved repair, corrupted input and ground truth using the reference camera.
23 unmodified lines24252623 unmodified lines@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}.section-header.centered .section-desc{margin-left:0;margin-right:0;text-align:left}.bar-mobile-hint{display:none}@media(max-width:650px){.bar-mobile-hint{display:block;font-size:10px;color:var(--muted);padding:10px 8px 0}.kit-bars{min-width:960px}}23 unmodified lines2425262728293031323323 unmodified lines@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}.section-header.centered .section-desc{margin-left:0;margin-right:0;text-align:left}.bar-mobile-hint{display:none}@media(max-width:650px){.bar-mobile-hint{display:block;font-size:10px;color:var(--muted);padding:10px 8px 0}.kit-bars{min-width:960px}}/* Live scenes use BuildingBench's single-renderer / per-view canvas architecture. */.live-scene{position:relative;display:block;overflow:hidden;isolation:isolate;background:#e6edf0;border-radius:14px;height:273px;touch-action:pan-y}.live-scene canvas{display:block;width:100%;height:100%;cursor:grab;touch-action:none;outline-offset:-3px}.live-scene canvas:active{cursor:grabbing}.scene-loading{position:absolute;inset:0;display:grid;place-items:center;color:#53616a;font-size:12px;pointer-events:none}.scene-hint{position:absolute;left:12px;bottom:10px;font-size:10px;letter-spacing:.02em;color:#fff;background:#17201dcc;border-radius:5px;padding:5px 8px;pointer-events:none}.scene-motion{position:absolute;right:10px;bottom:10px;border:1px solid #fff9;border-radius:50%;background:#fffdf8e8;color:#344341;width:28px;height:28px;padding:0;cursor:pointer}.output-panel .live-scene{height:255px;border-radius:12px}.case-card .live-scene{height:250px;border-radius:16px 16px 0 0}.case-card{display:block}.case-card .meta{padding:20px}.case-card .meta .eyebrow{font-size:9px}.case-card .meta h4{margin:8px 0}.case-card .meta .text-button{display:inline-block;margin-top:13px;font-size:12px}.scene-versions{display:flex;gap:4px;padding:9px;background:#f2f2ee;border-top:1px solid #e0e3df}.scene-versions button{flex:1;border:0;border-radius:6px;background:transparent;padding:7px 4px;color:#707b75;font:500 11px Inter,sans-serif;cursor:pointer}.scene-versions button.on{background:white;color:#17201d;box-shadow:0 1px 3px #0001}.pareto-card{background:#fffefb!important;padding:26px 28px 20px!important}.figure-title{font:400 31px/1.2 'Source Serif 4',serif!important;letter-spacing:-.7px!important;margin:0 0 8px!important}.figure-title span{color:#8d8d8d}.figure-subtitle{font:400 15.5px/22px Inter,sans-serif;color:#8d8d8d;margin:0 0 8px}.figure-caption{font:400 12px/1.7 Inter,sans-serif;color:#7d857f;margin:8px 20px 0!important}.pareto-scroll{overflow-x:auto}.pareto-svg{width:100%;min-width:880px;height:auto;display:block;font-family:Inter,sans-serif}.pareto-svg .grid{stroke:#dfdcd2;stroke-width:.8}.pareto-svg .vertical{stroke-dasharray:2 5;opacity:.65}.pareto-svg .axis{stroke:#c8c4b7;stroke-width:1}.pareto-svg .tick{fill:#9aa19b;font-size:11px}.pareto-svg .axis-title{fill:#7d857f;font-size:16px}.pareto-svg .frontier-line{fill:none;stroke:#2b3531;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}.pareto-svg .frontier-halo{fill:none;stroke:#2b3531;stroke-opacity:.13;stroke-width:11.7;stroke-linejoin:round;stroke-linecap:round}.pareto-svg .model-label{paint-order:stroke;stroke:#fffefb;stroke-width:3.6px;stroke-linejoin:round}.pareto-node{cursor:help;transition:opacity .15s}.pareto-node.dim{opacity:.24}.pareto-node:focus{outline:none}.pareto-node:focus .chip{stroke:#17201d;stroke-width:2}.pareto-tooltip{position:fixed;z-index:1000;padding:12px 15px;border:1px solid #dfdcd2;border-radius:10px;background:#fffefb;color:#4a544f;box-shadow:0 5px 25px #17201d20;pointer-events:none;opacity:0;font:12px/1.7 Inter,sans-serif}.pareto-tooltip.on{opacity:1}.pareto-tooltip strong{display:block;color:#17201d;margin-bottom:5px;font-size:13px}@media(max-width:650px){.live-scene{height:260px}.output-panel .live-scene{height:245px}.case-card .live-scene{height:270px}.pareto-card{padding:20px 12px!important}.figure-title{font-size:26px!important}.figure-title span{display:block}.figure-subtitle{font-size:13px}.figure-caption{margin:10px 4px 0!important}.pareto-scroll{margin:0 -12px;padding:0 12px}.scene-hint{font-size:9px}}.featured .featured-scene.live-scene{position:absolute;height:calc(100% - 57px);border-radius:0}.featured-footer,.featured-note{z-index:2}.tk figure>.live-scene{height:340px;border-radius:12px}.scene-loading{background:#e6edf0}@media(max-width:650px){.case-grid{grid-template-columns:1fr}.tk figure>.live-scene{height:260px}}.pareto-card .figure-title{color:#1a1a1a!important}.pareto-card .figure-title span{color:#8d8d8d}.pareto-swipe{display:none}@media(max-width:650px){.pareto-swipe{display:block;font:10px Inter,sans-serif;color:#7d857f;margin:6px 0}}
1234567891011121314151617181920212223242526272829303132333435363738394041424344// Adapted from BuildingBench's figure-kit/pareto-frontier/render.py and live SVG.// Domain, costs and scores are exclusively Code4Scene's historical paper evaluation.const NS='http://www.w3.org/2000/svg';const colors={openai:'#10A37F',claude:'#D97757',gemini:'#7b1fa2',meta:'#42a5f5',deepseek:'#3f51e0',zai:'#96650b',grok:'#111111',qwen:'#fe7016',thinkingmachines:'#686868'};const data=await fetch('data/pareto.json?v=20261001b').then(r=>r.json());await Promise.all([document.fonts.load('400 13px Inter'),document.fonts.load('700 16px Inter')]);const measure=document.createElement('canvas').getContext('2d');function node(tag,attrs,text){const n=document.createElementNS(NS,tag);for(const[k,v]of Object.entries(attrs))n.setAttribute(k,v);if(text!==undefined)n.textContent=text;return n;}const lum=c=>{const a=c.match(/\w\w/g).map(x=>parseInt(x,16)/255).map(x=>x<=.03928?x/12.92:((x+.055)/1.055)**2.4);return .2126*a[0]+.7152*a[1]+.0722*a[2];};function labelColor(hex,front){let a=hex.slice(1).match(/../g).map(x=>parseInt(x,16)/255),max=Math.max(...a),min=Math.min(...a),l=(max+min)/2,h=0,s=0,d=max-min;if(d){s=d/(1-Math.abs(2*l-1));h=max===a[0]?((a[1]-a[2])/d)%6:max===a[1]?(a[2]-a[0])/d+2:(a[0]-a[1])/d+4;h=(h/6+1)%1;}s=Math.min(s,front?.92:.55);const rgb=l=>{const c=(1-Math.abs(2*l-1))*s,x=c*(1-Math.abs(h*6%2-1)),m=l-c/2;const q=h<1/6?[c,x,0]:h<2/6?[x,c,0]:h<3/6?[0,c,x]:h<4/6?[0,x,c]:h<5/6?[x,0,c]:[c,0,x];return '#'+q.map(v=>Math.round((v+m)*255).toString(16).padStart(2,'0')).join('');};const target=front?4.6:2.9;if(front&&(lum('fffefb')+.05)/(lum(hex.slice(1))+.05)>=target)return hex;let lo=0,hi=1;for(let i=0;i<26;i++){let mid=(lo+hi)/2;if((lum('fffefb')+.05)/(lum(rgb(mid).slice(1))+.05)>target)lo=mid;else hi=mid;}return rgb((lo+hi)/2);}for(const svg of document.querySelectorAll('.pareto-svg')){ const rows=data[svg.dataset.mode],front=rows.filter(a=>!rows.some(b=>b.cost<=a.cost&&b.score>=a.score&&(b.cost<a.cost||b.score>a.score))).sort((a,b)=>b.cost-a.cost),on=new Set(front.map(d=>d.key)); const lo=Math.min(...rows.map(d=>-Math.log10(d.cost)))-.30,hi=Math.max(...rows.map(d=>-Math.log10(d.cost)))+.30; const x=c=>96+(-Math.log10(c)-lo)/(hi-lo)*1074,y=s=>473.2-s/.96*448; const add=(tag,attrs,text)=>{const n=node(tag,attrs,text);svg.append(n);return n;}; add('rect',{x:0,y:0,width:1200,height:560,fill:'#fffefb'}); for(const t of [0,.24,.48,.72,.96]){add('line',{x1:96,x2:1170,y1:y(t),y2:y(t),class:'grid'});add('text',{x:84,y:y(t)+4,class:'tick','text-anchor':'end'},t.toFixed(2));} for(const c of [100,50,20,10,5,2,1,.5,.2,.1,.05,.02,.01,.005,.002,.001])if(-Math.log10(c)>lo&&-Math.log10(c)<hi){add('line',{x1:x(c),x2:x(c),y1:25.2,y2:473.2,class:'grid vertical'});add('text',{x:x(c),y:499,class:'tick','text-anchor':'middle'},'$'+c);} add('line',{x1:96,x2:1170,y1:473.2,y2:473.2,class:'axis'}); add('text',{x:633,y:539,class:'axis-title','text-anchor':'middle'},'Mean Cost per Case (USD) · cheaper →'); add('text',{x:27,y:249,transform:'rotate(-90 27 249)',class:'axis-title','text-anchor':'middle'},'Simulation Quality'); const path=front.map((d,i)=>(i?'L':'M')+x(d.cost)+','+y(d.score)).join(' '); add('path',{d:path,class:'frontier-halo'});add('path',{d:path,class:'frontier-line'}); const points=rows.map(d=>({x:x(d.cost),y:y(d.score)}));const boxes=points.map(p=>[p.x-9,p.y-9,p.x+9,p.y+9]); const linePoints=[];for(let i=1;i<front.length;i++){const a=front[i-1],b=front[i],n=Math.max(2,Math.ceil(Math.hypot(x(b.cost)-x(a.cost),y(b.score)-y(a.score))/5));for(let j=0;j<=n;j++)linePoints.push([x(a.cost)+(x(b.cost)-x(a.cost))*j/n,y(a.score)+(y(b.score)-y(a.score))*j/n]);} for(const d of [...rows].sort((a,b)=>(on.has(b.key)-on.has(a.key))||b.score-a.score)){ const isFront=on.has(d.key),cx=x(d.cost),cy=y(d.score),font=isFront?16:12.5,name=d.name.replace(/^Claude /,'').replace(/\((.*?)\)/,(_,s)=>'('+s[0].toUpperCase()+s.slice(1)+')'),size=font; measure.font=`${isFront?700:400} ${size}px Inter`;const tw=measure.measureText(name).width,th=size*.78,r=9,gap=5,pad=2.5,up=r+gap,dn=r+gap+th; const candidates=[];for(let k=0;k<5;k++){const lift=k*th*1.55;candidates.push([0,-up-lift,'middle'],[0,dn+lift,'middle'],[r+gap,th*.4-lift,'start'],[-r-gap,th*.4-lift,'end'],[r+gap,th*.4+lift,'start'],[-r-gap,th*.4+lift,'end'],[r*.6,-up*.82-lift,'start'],[-r*.6,-up*.82-lift,'end'],[r*.6,dn*.9+lift,'start'],[-r*.6,dn*.9+lift,'end']);} const hard=[...boxes,...linePoints.filter(p=>Math.hypot(p[0]-cx,p[1]-cy)>r*2.4).map(p=>[p[0]-4,p[1]-4,p[0]+4,p[1]+4])];let best,bestCost=Infinity; for(let i=0;i<candidates.length;i++){const[dx,dy,anchor]=candidates[i],tx=cx+dx,ty=cy+dy,x0=anchor==='middle'?tx-tw/2:anchor==='end'?tx-tw:tx,b=[x0-pad,ty-th-pad,x0+tw+pad,ty+pad];let cost=i*.6;if(b[0]<58)cost+=400+58-b[0];if(b[2]>1180)cost+=400+b[2]-1180;if(b[1]<9)cost+=400+9-b[1];if(b[3]>475)cost+=400+b[3]-475;let overlap=0;for(const q of hard){const w=Math.min(b[2],q[2])-Math.max(b[0],q[0]),h=Math.min(b[3],q[3])-Math.max(b[1],q[1]);if(w>0&&h>0)overlap+=w*h;}cost+=overlap*4;if(cost<bestCost){bestCost=cost;best={dx,dy,anchor,b};}if(!overlap&&cost<400)break;} boxes.push(best.b);const color=colors[d.logo]||'#686868',label=labelColor(color,isFront); const g=add('g',{class:'pareto-node'+(isFront?' is-frontier':''),tabindex:0,role:'img','aria-label':`${d.name}, score ${d.score.toFixed(6)}, mean cost $${d.cost.toFixed(6)}${isFront?', Pareto frontier':''}`,'data-name':d.name,'data-score':d.score,'data-cost':d.cost,'data-frontier':isFront}); if(isFront)g.append(node('circle',{cx,cy,r:9,fill:'none',stroke:color,'stroke-width':1.3})); g.append(node('rect',{x:cx-5,y:cy-5,width:10,height:10,rx:1,fill:color,stroke:'#fffefb','stroke-width':1.7,class:'chip'})); g.append(node('text',{x:cx+best.dx,y:cy+best.dy,'text-anchor':best.anchor,fill:label,'font-size':font,'font-weight':isFront?700:400,class:'model-label'},name)); g.append(node('circle',{cx,cy,r:14,fill:'transparent'})); const tip=document.querySelector('#pareto-tooltip')||Object.assign(document.body.appendChild(document.createElement('div')),{id:'pareto-tooltip',className:'pareto-tooltip'}); const show=()=>{tip.replaceChildren();const title=document.createElement('strong');title.textContent=d.name;tip.append(title);for(const text of [`Score: ${d.score.toFixed(6)}`,`Mean cost / case: $${d.cost.toFixed(6)}`,isFront?'Pareto frontier':'Dominated configuration']){const p=document.createElement('div');p.textContent=text;tip.append(p);}const rect=g.querySelector('.chip').getBoundingClientRect();tip.classList.add('on');tip.style.left=Math.max(8,Math.min(innerWidth-tip.offsetWidth-8,rect.x+rect.width/2-tip.offsetWidth/2))+'px';tip.style.top=(rect.y<tip.offsetHeight+16?rect.bottom+12:rect.y-tip.offsetHeight-12)+'px';svg.querySelectorAll('.pareto-node').forEach(n=>n.classList.toggle('dim',n!==g));}; const hide=()=>{tip.classList.remove('on');svg.querySelectorAll('.pareto-node').forEach(n=>n.classList.remove('dim'));}; g.addEventListener('mouseenter',show);g.addEventListener('focus',show);g.addEventListener('click',show);g.addEventListener('mouseleave',hide);g.addEventListener('blur',hide);window.addEventListener('scroll',hide,{passive:true}); } svg.dataset.ready='true';}123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276import * as THREE from "three";import {GLTFLoader} from "three/addons/loaders/GLTFLoader.js";import {MeshoptDecoder} from "three/addons/libs/meshopt_decoder.module.js";import {Sky} from "three/addons/objects/Sky.js";
"use strict";// The 3D engine: one shared WebGL renderer, one scene per loaded submission,// and a Viewer per canvas that keeps the same interface the prototype's// procedural viewer had (rotationX / rotationY / zoom / paused / group /// draw(dt) / destroy()), so the page code above it did not have to change.//// Every mesh drawn here is the building.glb an agent handed in to the// benchmark, re-encoded for the page (textures at most 512 px, JPEG for// opaque maps) and gzipped. Geometry is untouched.(function () { const ADD = {GLTFLoader}; const activeViewers = new Set(); window.activeViewers = activeViewers; let lastFrame = performance.now();
/* ------------------------------------------------------------ renderer */ let gl = null, ENV = null; function renderer() { if (gl) return gl; gl = new THREE.WebGLRenderer({ antialias: true, alpha: true, premultipliedAlpha: true, powerPreference: "high-performance" }); gl.setPixelRatio(1); gl.outputColorSpace = THREE.SRGBColorSpace; gl.toneMapping = THREE.ACESFilmicToneMapping; gl.toneMappingExposure = 1.0; gl.shadowMap.enabled = true; gl.shadowMap.type = THREE.PCFSoftShadowMap; gl.setClearColor(0x000000, 0); const sky=new Sky();sky.scale.setScalar(1000);const u=sky.material.uniforms;u.turbidity.value=4;u.rayleigh.value=1.4;u.mieCoefficient.value=.004;u.mieDirectionalG.value=.8;u.sunPosition.value.setFromSphericalCoords(1,THREE.MathUtils.degToRad(52),THREE.MathUtils.degToRad(215));const skyScene=new THREE.Scene();skyScene.add(sky);ENV=new THREE.PMREMGenerator(gl).fromScene(skyScene,0,.1,2000).texture; return gl; }
// The benchmark's own light rig (city_bench.building_light/1), the numbers // the board's renders use: sun in the south-east at 50 degrees, a pale sky, // and a muted environment. One rig for the page, moved into whichever scene // is being drawn. const RIG = (window.BB_DATA && window.BB_DATA.rig) || {}; const RIG_GROUP = new THREE.Group(); const SUN = new THREE.DirectionalLight(0xffffff, RIG.sun_intensity ?? 3.2); SUN.color.setRGB(...(RIG.sun_colour || [1, 0.97, 0.92])); SUN.castShadow = true; SUN.shadow.mapSize.set(1024, 1024); SUN.shadow.bias = -0.0006; SUN.shadow.normalBias = 0.02; const SKY = new THREE.HemisphereLight(0xbcd4f0, 0x6b6157, RIG.sky_intensity ?? 0.45); SKY.color.setRGB(...(RIG.sky_colour || [0.7, 0.8, 0.94])); SKY.groundColor.setRGB(...(RIG.ground_colour || [0.36, 0.34, 0.31])); // A ground that shows only the shadow that lands on it, so the page's own // background reads through everywhere else. const GROUND = new THREE.Mesh(new THREE.PlaneGeometry(1, 1), new THREE.ShadowMaterial({ opacity: 0.22, transparent: true })); GROUND.rotation.x = -Math.PI / 2; GROUND.receiveShadow = true; RIG_GROUP.add(SUN, SUN.target, SKY);
function rigFor(asset) { const reach = Math.max(RIG.reach_m || 400, asset.radius * 1.6); const az = THREE.MathUtils.degToRad(RIG.sun_azimuth_deg ?? 135), el = THREE.MathUtils.degToRad(RIG.sun_elevation_deg ?? 50); SUN.position.set(Math.cos(el) * Math.sin(az), Math.sin(el), -Math.cos(el) * Math.cos(az)).multiplyScalar(reach).add(asset.centre); SUN.target.position.copy(asset.centre); const s = SUN.shadow.camera, r = asset.radius * 1.15; s.left = -r; s.right = r; s.top = r; s.bottom = -r; s.near = 1; s.far = reach * 3; s.updateProjectionMatrix(); GROUND.position.set(asset.centre.x, asset.floor, asset.centre.z); GROUND.scale.set(asset.radius * 8, asset.radius * 8, 1); asset.scene.add(RIG_GROUP); }
/* -------------------------------------------------------------- assets */ // BB_ASSETS maps a key to either a gzipped-base64 glb (the self-contained // page) or an assets/… path (the split copy for hosting). Same bytes, one // fetch earlier. const ASSETS = window.BB_ASSETS || {}; const cache = new Map(); // key -> {promise, asset, refs, last} const loader = new ADD.GLTFLoader().setMeshoptDecoder(MeshoptDecoder); const gunzip = buf => new Response(new Blob([buf]).stream().pipeThrough(new DecompressionStream("gzip"))).arrayBuffer(); const PACK_KEY = Uint8Array.from("5c2f9e71d3a84b06e1f7c29a38d05b64a7193ce8f2046db95e81c73a2df6904b".match(/../g), h => parseInt(h,16)); async function bytesFor(key) { const r = await fetch(key); if (!r.ok) throw new Error("HTTP " + r.status); const a = new Uint8Array(await r.arrayBuffer()); for (let i=0;i<a.length;i++) a[i] ^= PACK_KEY[i&31] ^ (((i>>>5)*131)&255); return a.buffer; } function parse(buf) { return new Promise((resolve, reject) => loader.parse(buf, "", resolve, reject)); } function acquire(key) { let entry = cache.get(key); if (!entry) { entry = { refs: 0, last: performance.now(), asset: null }; // A dropped connection is not a bad file: one retry, and a failure leaves // the cache so the next mount can try again. const attempt = () => bytesFor(key).then(parse); entry.promise = attempt().catch(() => new Promise(r => setTimeout(r, 1500)).then(attempt)).then(gltf => { const root = gltf.scene; root.traverse(node => { if (node.isMesh) { node.castShadow = true; node.receiveShadow = true; } }); const box = new THREE.Box3(), pts=[]; root.traverse(o=>{if(o.isMesh){const b=new THREE.Box3().setFromObject(o);if(!b.isEmpty())pts.push(b);for(const m of [].concat(o.material||[]))if(m.specularIntensity!==undefined)m.specularIntensity=Math.min(m.specularIntensity,.5);}}); const q=(arr,t)=>arr.slice().sort((a,b)=>a-b)[Math.floor(t*(arr.length-1))]; if(pts.length>8){const cx=pts.map(b=>(b.min.x+b.max.x)/2),cy=pts.map(b=>(b.min.y+b.max.y)/2),cz=pts.map(b=>(b.min.z+b.max.z)/2);box.set(new THREE.Vector3(q(cx,.03),q(cy,.03),q(cz,.03)),new THREE.Vector3(q(cx,.97),q(cy,.97),q(cz,.97)));}else box.setFromObject(root); const centre = box.getCenter(new THREE.Vector3()); const size = box.getSize(new THREE.Vector3()); const corners = []; for (const x of [box.min.x, box.max.x]) for (const y of [box.min.y, box.max.y]) for (const z of [box.min.z, box.max.z]) corners.push(new THREE.Vector3(x, y, z)); const scene = new THREE.Scene(); scene.environment = ENV || (renderer(), ENV); scene.environmentIntensity = RIG.environment_intensity ?? 0.8; scene.background = new THREE.Color(0xe6edf0); scene.add(root); const task=window.SITE.cases.find(c=>c.track==='i2s'&&(c.input_glb===key||c.gt_glb===key||c.agents.some(a=>a.glb===key))); if(task){root.updateMatrixWorld(true);root.traverse(o=>{const duplicate=(task.duplicates||[]).includes(o.name);if(!duplicate&&!(task.targets||[]).includes(o.name))return;const b=new THREE.Box3().setFromObject(o);if(b.isEmpty())return;const h=new THREE.Box3Helper(b.expandByScalar(.08),duplicate?0xff6b5e:0x5ee08a);h.material.depthTest=false;h.material.transparent=true;h.renderOrder=999;scene.add(h);});} entry.asset = { key, root, scene, box, centre, corners, radius: Math.max(size.length() / 2, 1), floor: box.min.y }; return entry.asset; }); entry.promise.catch(() => { if (cache.get(key) === entry) cache.delete(key); }); cache.set(key, entry); } entry.refs++; entry.last = performance.now(); return entry; } function release(entry) { if (!entry) return; entry.refs = Math.max(0, entry.refs - 1); entry.last = performance.now(); evict(); } const KEEP = 40; function evict() { const idle = [...cache.values()].filter(e => e.refs === 0 && e.asset); if (cache.size <= KEEP) return; idle.sort((a, b) => a.last - b.last); for (const e of idle) { if (cache.size <= KEEP) break; e.asset.root.traverse(n => { if (!n.isMesh) return; n.geometry?.dispose(); for (const m of [].concat(n.material || [])) { for (const s of ["map", "normalMap", "roughnessMap", "metalnessMap", "emissiveMap", "aoMap", "alphaMap"]) m[s]?.dispose(); m.dispose(); } }); cache.delete(e.asset.key); } }
/* -------------------------------------------------------------- viewer */ const clamp = (v, a, b) => Math.min(b, Math.max(a, v)); const reduced = () => window.matchMedia("(prefers-reduced-motion: reduce)").matches; class Viewer { constructor(canvas, options = {}) { this.canvas = canvas; this.ctx = canvas.getContext("2d", { alpha: true }); this.rotationY = options.rotationY ?? -0.65; this.rotationX = options.rotationX ?? 0.35; this.zoom = options.zoom ?? 1; this.centerX = options.centerX ?? 0.5; this.speed = options.speed ?? 0.22; this.group = options.group || null; this.refCam = options.refCam; this.paused = !!options.refCam; this.dragging = false; this.lastPointer = null; this.destroyed = false; this.hasDrawn = false; this.failed = null; this.initialRotation = [this.rotationX,this.rotationY]; this.camera = new THREE.PerspectiveCamera(36, 1, 0.1, 5000); this.entry = null; this.asset = null; this.bind(); activeViewers.add(this); if (options.assetKey) this.load(options.assetKey); } load(key) { release(this.entry); this.entry = acquire(key); this.asset = null; this.failed = null; const entry = this.entry; entry.promise.then(asset => { if (this.entry === entry && !this.destroyed) { this.asset = asset; this.hasDrawn = false; } }, err => { if (this.entry === entry) { this.failed = err; console.error("Code4Scene: submission failed to load", key, err); } }); return entry.promise; } bind() { this.onDown = e => { this.paused = true; this.dragging = true; this.lastPointer = [e.clientX, e.clientY]; this.canvas.setPointerCapture?.(e.pointerId); }; this.onMove = e => { if (!this.dragging) return; const dx = e.clientX - this.lastPointer[0], dy = e.clientY - this.lastPointer[1]; this.rotationY += dx * .012; this.rotationX = clamp(this.rotationX + dy * .008, -.05, 1.3); this.lastPointer = [e.clientX, e.clientY]; if (this.group) { this.group.rotationX = this.rotationX; this.group.rotationY = this.rotationY; } }; this.onUp = () => { this.dragging = false; this.lastPointer = null; }; this.onWheel = e => { e.preventDefault(); this.zoom = clamp(this.zoom - e.deltaY * .0007, .6, 2.2); if (this.group) this.group.zoom = this.zoom; }; this.onKey = e => { const keys = ["ArrowLeft", "ArrowRight", "ArrowUp", "ArrowDown", "+", "=", "-"]; if (!keys.includes(e.key)) return; e.preventDefault(); this.paused = true; if (e.key === "ArrowLeft") this.rotationY -= .12; if (e.key === "ArrowRight") this.rotationY += .12; if (e.key === "ArrowUp") this.rotationX = clamp(this.rotationX + .1, -.05, 1.3); if (e.key === "ArrowDown") this.rotationX = clamp(this.rotationX - .1, -.05, 1.3); if (e.key === "+" || e.key === "=") this.zoom = clamp(this.zoom + .08, .6, 2.2); if (e.key === "-") this.zoom = clamp(this.zoom - .08, .6, 2.2); if (this.group) Object.assign(this.group, { rotationX: this.rotationX, rotationY: this.rotationY, zoom: this.zoom, paused: true }); }; this.canvas.addEventListener("wheel", this.onWheel, { passive: false }); this.canvas.addEventListener("keydown", this.onKey); this.canvas.addEventListener("pointerdown", this.onDown); this.canvas.addEventListener("pointermove", this.onMove); this.canvas.addEventListener("pointerup", this.onUp); this.canvas.addEventListener("pointercancel", this.onUp); } resize() { const rect = this.canvas.getBoundingClientRect(); const dpr = Math.min(window.devicePixelRatio || 1, 2); const w = Math.max(1, Math.round(rect.width * dpr)), h = Math.max(1, Math.round(rect.height * dpr)); if (this.canvas.width !== w || this.canvas.height !== h) { this.canvas.width = w; this.canvas.height = h; } this.w = rect.width; this.h = rect.height; this.dpr = dpr; } // Orbit the model's centre. The distance is fitted to the bounding box // seen from this direction, not to the sphere, so a wide flat building // fills its card the way a tower does. aim() { const a = this.asset, cam = this.camera; if(this.refCam){ const rc=this.refCam,target=new THREE.Vector3(...rc.target),offset=new THREE.Vector3(...rc.pos).sub(target); const spherical=new THREE.Spherical().setFromVector3(offset); spherical.theta += this.rotationY-this.initialRotation[1]; spherical.phi -= this.rotationX-this.initialRotation[0]; spherical.makeSafe(); spherical.radius /= this.zoom; cam.aspect=this.w/this.h;cam.fov=2*Math.atan(Math.tan(rc.hfov*Math.PI/360)/cam.aspect)*180/Math.PI; cam.near=.05;cam.far=Math.max(2000,a.radius*24);cam.position.copy(target).add(new THREE.Vector3().setFromSpherical(spherical));cam.lookAt(target);cam.updateProjectionMatrix();return; } const az = this.rotationY, el = this.rotationX; const dir = new THREE.Vector3(Math.cos(el) * Math.sin(az), Math.sin(el), Math.cos(el) * Math.cos(az)).normalize(); const aspect = this.w / this.h; cam.aspect = aspect; cam.fov = 34; const vfov = THREE.MathUtils.degToRad(cam.fov), tanV = Math.tan(vfov / 2), tanH = tanV * aspect; const probe = new THREE.Object3D(); probe.position.copy(a.centre).add(dir); probe.up.set(0, 1, 0); probe.lookAt(a.centre); probe.updateMatrixWorld(); const right = new THREE.Vector3().setFromMatrixColumn(probe.matrixWorld, 0); const up = new THREE.Vector3().setFromMatrixColumn(probe.matrixWorld, 1); let dist = 0; for (const c of a.corners) { const q = c.clone().sub(a.centre); const z = q.dot(dir); dist = Math.max(dist, z + Math.abs(q.dot(right)) / tanH, z + Math.abs(q.dot(up)) / tanV); } dist = Math.max(dist * 1.08, a.radius * 0.2) / this.zoom; const target = a.centre.clone().addScaledVector(right, -(this.centerX - 0.5) * 2 * dist * tanH); cam.near = Math.max(0.1, dist / 200); cam.far = Math.max(2000, dist * 20 + a.radius * 4); cam.position.copy(target).addScaledVector(dir, dist); cam.up.set(0, 1, 0); cam.lookAt(target); cam.updateProjectionMatrix(); } draw(dt) { if (this.destroyed || !this.canvas.isConnected) return; const rect = this.canvas.getBoundingClientRect(); if (rect.width < 2 || rect.height < 2 || document.hidden) return; if (rect.bottom < 0 || rect.top > window.innerHeight) return; this.resize(); if (this.group) { this.rotationX = this.group.rotationX; this.rotationY = this.group.rotationY; this.zoom = this.group.zoom; } if (!this.group && !this.paused && !this.dragging && !reduced()) this.rotationY += this.speed * dt; const ctx = this.ctx, W = this.canvas.width, H = this.canvas.height; if (!this.asset) { if (this.hasDrawn) return; ctx.clearRect(0, 0, W, H); if (this.failed) { ctx.fillStyle = "#93673f"; ctx.font = `${Math.max(9, Math.round(10 * this.dpr))}px Arial`; ctx.textAlign = "center"; ctx.fillText("mesh unavailable", W / 2, H / 2); this.hasDrawn = true; } return; } const g = renderer(); g.setSize(W, H, false); this.aim(); rigFor(this.asset); g.render(this.asset.scene, this.camera); ctx.clearRect(0, 0, W, H); ctx.drawImage(g.domElement, 0, 0, W, H, 0, 0, W, H); this.hasDrawn = true; this.canvas.dataset.rendered="true"; this.canvas.parentElement.querySelector(".scene-loading")?.remove(); } destroy() { this.destroyed = true; activeViewers.delete(this); release(this.entry); this.entry = null; this.asset = null; this.canvas.removeEventListener("pointerdown", this.onDown); this.canvas.removeEventListener("pointermove", this.onMove); this.canvas.removeEventListener("pointerup", this.onUp); this.canvas.removeEventListener("pointercancel", this.onUp); this.canvas.removeEventListener("wheel", this.onWheel); this.canvas.removeEventListener("keydown", this.onKey); } } window.GLBViewer = Viewer; window.destroyViewersWithin = root => { activeViewers.forEach(v => { if (root.contains(v.canvas)) v.destroy(); }); }; window.BB_ENGINE = { cache, renderer, preload: key => acquire(key).promise.then(a => (release(cache.get(key)), a)) };
/* ------------------------------------------------------------- the clock */ function loop(now) { requestAnimationFrame(loop); if (now - lastFrame < 32) return; const dt = Math.min(.05, (now - lastFrame) / 1000); lastFrame = now; const groups = new Set([...activeViewers].filter(v => v.group && !v.destroyed).map(v => v.group)); if (!document.hidden && !reduced()) groups.forEach(g => { if (!g.paused && ![...activeViewers].some(v => v.group === g && v.dragging)) g.rotationY += dt * .14; }); activeViewers.forEach(v => { try { v.draw(dt); } catch (err) { v.failed = err; v.asset = null; console.error('Code4Scene: viewer draw failed', err); } }); } requestAnimationFrame(loop);})();
// Mount only near the viewport; repeated appearances share one decoded asset and WebGL renderer.const observer=new IntersectionObserver(entries=>entries.forEach(entry=>{ if(!entry.isIntersecting)return;observer.unobserve(entry.target); const el=entry.target,c=window.SITE.cases.find(c=>c.id===el.dataset.case),a=c.agents.find(a=>a.key===el.dataset.agent); const viewer=new window.GLBViewer(el.querySelector('canvas'),{assetKey:a.glb,refCam:c.ref_cam,rotationX:.55,rotationY:-.62,speed:.1}); const loading=el.querySelector('.scene-loading');viewer.entry.promise.catch(()=>{if(loading)loading.textContent='Scene unavailable — open the case to retry.';}); const pause=el.querySelector('.scene-motion');if(c.ref_cam){pause.textContent='▶';pause.setAttribute('aria-label','Resume scene rotation');} pause.addEventListener('click',()=>{viewer.paused=!viewer.paused;pause.textContent=viewer.paused?'▶':'Ⅱ';pause.setAttribute('aria-label',viewer.paused?'Resume scene rotation':'Pause scene rotation');}); el.querySelector('canvas').addEventListener('pointerdown',()=>{pause.textContent='▶';pause.setAttribute('aria-label','Resume scene rotation');}); el.parentElement.querySelectorAll('.scene-versions button').forEach(b=>b.addEventListener('click',()=>{ const url=b.dataset.state==='input'?c.input_glb:b.dataset.state==='gt'?c.gt_glb:a.glb; el.parentElement.querySelectorAll('.scene-versions button').forEach(x=>x.classList.toggle('on',x===b)); const status=document.createElement('span');status.className='scene-loading';status.setAttribute('role','status');status.textContent='Loading '+b.textContent.toLowerCase()+'…';el.querySelector('.scene-loading')?.remove();el.append(status); el.querySelector('canvas').dataset.rendered='false';el.querySelector('.scene-hint').textContent=b.textContent+' · Drag to orbit'; viewer.load(url).catch(()=>status.textContent='Scene unavailable — open the case to retry.');el.dataset.state=b.dataset.state; }));}),{rootMargin:'180px'});document.querySelectorAll('.live-scene').forEach(el=>observer.observe(el));82 unmodified lines8384858687888982 unmodified lines.in-open:hover{background:var(--primary);color:#fff}@media(max-width:900px){.in-i2s{grid-template-columns:1fr}}</style><script type="importmap">{"imports":{"three":"https://cdn.jsdelivr.net/npm/three@0.160.0/build/three.module.js","three/addons/":"https://cdn.jsdelivr.net/npm/three@0.160.0/examples/jsm/"}}</script><link href="assets/buildingbench.css?v=20261001" rel="stylesheet"/></head><body class="case-page"><a class="skip-link" href="#casebar">Skip to benchmark explorer</a><header class="site-header"><div class="brand"><a aria-label="Code4Scene home" class="brand-home" href="index.html#top"><svg aria-hidden="true" fill="none" viewbox="0 0 30 32"><path d="M15 2 27 9v14l-12 7L3 23V9L15 2Z M3 9l12 7 12-7 M15 16v14 M9 5.5l12 7v14 M21 5.5l-12 7v14" stroke="currentColor" stroke-linejoin="round" stroke-width="1.6"></path></svg><span>Code4Scene</span></a><a class="brand-by" href="https://simworld.org/">by SimWorld</a></div><nav aria-label="Main navigation"><a href="index.html#top">Benchmark</a><a href="index.html#leaderboard">Leaderboard</a><a class="nav-active" href="cases.html">Visualization</a><a href="https://arxiv.org/abs/2609.36777" rel="noopener" target="_blank">Paper ↗</a><a href="https://github.com/SimWorld-AI/Code4Scene" rel="noopener" target="_blank">Github ↗</a></nav></header><section class="alt" style="padding-top:34px;padding-bottom:40px"><div class="container"><div class="section-header" style="margin-bottom:1.6rem"><span class="section-label">Cases</span><h2 class="section-title">Every scene in 3D, with its scores</h2><p class="section-desc">Each agent's result is the engine-native scene it saved, exported from Unreal Engine so you can turn it in the browser. Beside it, how the82 unmodified lines8384858687888982 unmodified lines.in-open:hover{background:var(--primary);color:#fff}@media(max-width:900px){.in-i2s{grid-template-columns:1fr}}</style><script type="importmap">{"imports":{"three":"https://cdn.jsdelivr.net/npm/three@0.160.0/build/three.module.js","three/addons/":"https://cdn.jsdelivr.net/npm/three@0.160.0/examples/jsm/"}}</script><link href="assets/buildingbench.css?v=20261001" rel="stylesheet"/></head><body class="case-page"><a class="skip-link" href="#casebar">Skip to benchmark explorer</a><header class="site-header"><div class="brand"><a aria-label="Code4Scene home" class="brand-home" href="index.html#top"><svg aria-hidden="true" fill="none" viewbox="0 0 30 32"><path d="M15 2 27 9v14l-12 7L3 23V9L15 2Z M3 9l12 7 12-7 M15 16v14 M9 5.5l12 7v14 M21 5.5l-12 7v14" stroke="currentColor" stroke-linejoin="round" stroke-width="1.6"></path></svg><span>Code4Scene</span></a><a class="brand-by" href="https://simworld.org/">by SimWorld</a></div><nav aria-label="Main navigation"><a href="index.html#top">Benchmark</a><a href="index.html#leaderboard">Leaderboard</a><a class="nav-active" href="index.html#cases">Visualization</a><a href="https://arxiv.org/abs/2609.36777" rel="noopener" target="_blank">Paper ↗</a><a href="https://github.com/SimWorld-AI/Code4Scene" rel="noopener" target="_blank">Github ↗</a></nav></header><section class="alt" style="padding-top:34px;padding-bottom:40px"><div class="container"><div class="section-header" style="margin-bottom:1.6rem"><span class="section-label">Cases</span><h2 class="section-title">Every scene in 3D, with its scores</h2><p class="section-desc">Each agent's result is the engine-native scene it saved, exported from Unreal Engine so you can turn it in the browser. Beside it, how the
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554{ "overall": [ { "key": "astra", "name": "GPT-6 Astra (max)", "logo": "openai", "open": false, "overall": 0.6193352866666667, "t2s": 0.72382, "i2s": 0.5148505733333334, "indoor": 0.78546656, "outdoor": 0.37954258, "score": 0.6193352866666667, "cost": 12.896991822966507 }, { "key": "gemini", "name": "Gemini 3.8 Flash (high)", "logo": "gemini", "open": false, "overall": 0.6189750266666667, "t2s": 0.65689, "i2s": 0.5810600533333334, "indoor": 0.71653332, "outdoor": 0.5133234200000001, "score": 0.6189750266666667, "cost": 1.9235185771258503 }, { "key": "fable", "name": "Claude Fable 5.1 (max)", "logo": "claude", "open": false, "overall": 0.60604898, "t2s": 0.78775, "i2s": 0.4243479600000001, "indoor": 0.53523332, "outdoor": 0.36890528000000006, "score": 0.60604898, "cost": 10.623258766403161 }, { "key": "opus", "name": "Claude Opus 5 (max)", "logo": "claude", "open": false, "overall": 0.5931299933333334, "t2s": 0.7181599999999999, "i2s": 0.46809998666666675, "indoor": 0.61843384, "outdoor": 0.39293306, "score": 0.5931299933333334, "cost": 19.47789116793412 }, { "key": "sol", "name": "GPT-5.6 Sol (high)", "logo": "openai", "open": false, "overall": 0.5499994666666667, "t2s": 0.70704, "i2s": 0.3929589333333333, "indoor": 0.49742972, "outdoor": 0.34072354, "score": 0.5499994666666667, "cost": 2.9749956842592593 }, { "key": "muse", "name": "Muse Spark 1.3 (medium)", "logo": "meta", "open": false, "overall": 0.5022053666666666, "t2s": 0.646195, "i2s": 0.35821573333333334, "indoor": 0.63253332, "outdoor": 0.22105694, "score": 0.5022053666666666, "cost": 0.0861066423076923 }, { "key": "glm", "name": "GLM-5.3 Flash (max)", "logo": "zai", "open": true, "overall": 0.4147088666666666, "t2s": 0.5094299999999999, "i2s": 0.3199877333333333, "indoor": 0.46533411999999996, "outdoor": 0.24731454, "score": 0.4147088666666666, "cost": 0.40130584861111107 }, { "key": "qwen-off", "name": "Qwen 3.8 27B (thinking off)", "logo": "qwen", "open": true, "overall": 0.37818169333333335, "t2s": 0.55666, "i2s": 0.19970338666666668, "indoor": 0.26629816, "outdoor": 0.166406, "score": 0.37818169333333335, "cost": 0.38413493183103564 }, { "key": "grok", "name": "Grok 4.6 (high)", "logo": "grok", "open": false, "overall": 0.37567506, "t2s": 0.56721, "i2s": 0.18414012, "indoor": 0.1968008, "outdoor": 0.17780978, "score": 0.37567506, "cost": 2.2948689296296294 }, { "key": "qwen-on", "name": "Qwen 3.8 27B (thinking on)", "logo": "qwen", "open": true, "overall": 0.37094399333333333, "t2s": 0.51571, "i2s": 0.2261779866666667, "indoor": 0.29651112, "outdoor": 0.19101142, "score": 0.37094399333333333, "cost": 0.29748765575757574 }, { "key": "inkling", "name": "Inkling (high)", "logo": "thinkingmachines", "open": false, "overall": 0.31150237333333336, "t2s": 0.42498500000000006, "i2s": 0.19801974666666666, "indoor": 0.1690288, "outdoor": 0.21251522, "score": 0.31150237333333336, "cost": 0.4783280191269841 }, { "key": "gemma-on", "name": "Gemma 4 31B (thinking on)", "logo": "gemini", "open": true, "overall": 0.29812257999999997, "t2s": 0.470705, "i2s": 0.12554015999999998, "indoor": 0.12704028, "outdoor": 0.1247901, "score": 0.29812257999999997, "cost": 0.026867125396825398 }, { "key": "gemma-off", "name": "Gemma 4 31B (thinking off)", "logo": "gemini", "open": true, "overall": 0.28498897333333334, "t2s": 0.45494, "i2s": 0.11503794666666667, "indoor": 0.11239600000000001, "outdoor": 0.11635892, "score": 0.28498897333333334, "cost": 0.017148714965986397 }, { "key": "deepseek", "name": "DeepSeek V4.1 Flash (high)", "logo": "deepseek", "open": true, "overall": 0.22658958, "t2s": 0.24269, "i2s": 0.21048916, "indoor": 0.18933412, "outdoor": 0.22106668, "score": 0.22658958, "cost": 0.1240297601010101 } ], "t2s": [ { "key": "fable", "name": "Claude Fable 5.1 (max)", "logo": "claude", "open": false, "overall": 0.60604898, "t2s": 0.78775, "i2s": 0.4243479600000001, "indoor": 0.53523332, "outdoor": 0.36890528000000006, "score": 0.78775, "cost": 18.1576316 }, { "key": "astra", "name": "GPT-6 Astra (max)", "logo": "openai", "open": false, "overall": 0.6193352866666667, "t2s": 0.72382, "i2s": 0.5148505733333334, "indoor": 0.78546656, "outdoor": 0.37954258, "score": 0.72382, "cost": 22.472260736842106 }, { "key": "opus", "name": "Claude Opus 5 (max)", "logo": "claude", "open": false, "overall": 0.5931299933333334, "t2s": 0.7181599999999999, "i2s": 0.46809998666666675, "indoor": 0.61843384, "outdoor": 0.39293306, "score": 0.7181599999999999, "cost": 34.49611078947368 }, { "key": "sol", "name": "GPT-5.6 Sol (high)", "logo": "openai", "open": false, "overall": 0.5499994666666667, "t2s": 0.70704, "i2s": 0.3929589333333333, "indoor": 0.49742972, "outdoor": 0.34072354, "score": 0.70704, "cost": 4.07260365 }, { "key": "gemini", "name": "Gemini 3.8 Flash (high)", "logo": "gemini", "open": false, "overall": 0.6189750266666667, "t2s": 0.65689, "i2s": 0.5810600533333334, "indoor": 0.71653332, "outdoor": 0.5133234200000001, "score": 0.65689, "cost": 2.49471265 }, { "key": "muse", "name": "Muse Spark 1.3 (medium)", "logo": "meta", "open": false, "overall": 0.5022053666666666, "t2s": 0.646195, "i2s": 0.35821573333333334, "indoor": 0.63253332, "outdoor": 0.22105694, "score": 0.646195, "cost": 0.10048539999999999 }, { "key": "grok", "name": "Grok 4.6 (high)", "logo": "grok", "open": false, "overall": 0.37567506, "t2s": 0.56721, "i2s": 0.18414012, "indoor": 0.1968008, "outdoor": 0.17780978, "score": 0.56721, "cost": 4.326270533333333 }, { "key": "qwen-off", "name": "Qwen 3.8 27B (thinking off)", "logo": "qwen", "open": true, "overall": 0.37818169333333335, "t2s": 0.55666, "i2s": 0.19970338666666668, "indoor": 0.26629816, "outdoor": 0.166406, "score": 0.55666, "cost": 0.49154169999999997 }, { "key": "qwen-on", "name": "Qwen 3.8 27B (thinking on)", "logo": "qwen", "open": true, "overall": 0.37094399333333333, "t2s": 0.51571, "i2s": 0.2261779866666667, "indoor": 0.29651112, "outdoor": 0.19101142, "score": 0.51571, "cost": 0.3344125 }, { "key": "glm", "name": "GLM-5.3 Flash (max)", "logo": "zai", "open": true, "overall": 0.4147088666666666, "t2s": 0.5094299999999999, "i2s": 0.3199877333333333, "indoor": 0.46533411999999996, "outdoor": 0.24731454, "score": 0.5094299999999999, "cost": 0.710521125 }, { "key": "gemma-on", "name": "Gemma 4 31B (thinking on)", "logo": "gemini", "open": true, "overall": 0.29812257999999997, "t2s": 0.470705, "i2s": 0.12554015999999998, "indoor": 0.12704028, "outdoor": 0.1247901, "score": 0.470705, "cost": 0.0253001 }, { "key": "gemma-off", "name": "Gemma 4 31B (thinking off)", "logo": "gemini", "open": true, "overall": 0.28498897333333334, "t2s": 0.45494, "i2s": 0.11503794666666667, "indoor": 0.11239600000000001, "outdoor": 0.11635892, "score": 0.45494, "cost": 0.0151612 }, { "key": "inkling", "name": "Inkling (high)", "logo": "thinkingmachines", "open": false, "overall": 0.31150237333333336, "t2s": 0.42498500000000006, "i2s": 0.19801974666666666, "indoor": 0.1690288, "outdoor": 0.21251522, "score": 0.42498500000000006, "cost": 0.20252835 }, { "key": "deepseek", "name": "DeepSeek V4.1 Flash (high)", "logo": "deepseek", "open": true, "overall": 0.22658958, "t2s": 0.24269, "i2s": 0.21048916, "indoor": 0.18933412, "outdoor": 0.22106668, "score": 0.24269, "cost": 0.193865 } ], "i2s": [ { "key": "gemini", "name": "Gemini 3.8 Flash (high)", "logo": "gemini", "open": false, "overall": 0.6189750266666667, "t2s": 0.65689, "i2s": 0.5810600533333334, "indoor": 0.71653332, "outdoor": 0.5133234200000001, "score": 0.5810600533333334, "cost": 1.3523245042517007 }, { "key": "astra", "name": "GPT-6 Astra (max)", "logo": "openai", "open": false, "overall": 0.6193352866666667, "t2s": 0.72382, "i2s": 0.5148505733333334, "indoor": 0.78546656, "outdoor": 0.37954258, "score": 0.5148505733333334, "cost": 3.3217229090909095 }, { "key": "opus", "name": "Claude Opus 5 (max)", "logo": "claude", "open": false, "overall": 0.5931299933333334, "t2s": 0.7181599999999999, "i2s": 0.46809998666666675, "indoor": 0.61843384, "outdoor": 0.39293306, "score": 0.46809998666666675, "cost": 4.459671546394558 }, { "key": "fable", "name": "Claude Fable 5.1 (max)", "logo": "claude", "open": false, "overall": 0.60604898, "t2s": 0.78775, "i2s": 0.4243479600000001, "indoor": 0.53523332, "outdoor": 0.36890528000000006, "score": 0.4243479600000001, "cost": 3.0888859328063245 }, { "key": "sol", "name": "GPT-5.6 Sol (high)", "logo": "openai", "open": false, "overall": 0.5499994666666667, "t2s": 0.70704, "i2s": 0.3929589333333333, "indoor": 0.49742972, "outdoor": 0.34072354, "score": 0.3929589333333333, "cost": 1.8773877185185188 }, { "key": "muse", "name": "Muse Spark 1.3 (medium)", "logo": "meta", "open": false, "overall": 0.5022053666666666, "t2s": 0.646195, "i2s": 0.35821573333333334, "indoor": 0.63253332, "outdoor": 0.22105694, "score": 0.35821573333333334, "cost": 0.07172788461538461 }, { "key": "glm", "name": "GLM-5.3 Flash (max)", "logo": "zai", "open": true, "overall": 0.4147088666666666, "t2s": 0.5094299999999999, "i2s": 0.3199877333333333, "indoor": 0.46533411999999996, "outdoor": 0.24731454, "score": 0.3199877333333333, "cost": 0.09209057222222222 }, { "key": "qwen-on", "name": "Qwen 3.8 27B (thinking on)", "logo": "qwen", "open": true, "overall": 0.37094399333333333, "t2s": 0.51571, "i2s": 0.2261779866666667, "indoor": 0.29651112, "outdoor": 0.19101142, "score": 0.2261779866666667, "cost": 0.2605628115151515 }, { "key": "deepseek", "name": "DeepSeek V4.1 Flash (high)", "logo": "deepseek", "open": true, "overall": 0.22658958, "t2s": 0.24269, "i2s": 0.21048916, "indoor": 0.18933412, "outdoor": 0.22106668, "score": 0.21048916, "cost": 0.054194520202020195 }, { "key": "qwen-off", "name": "Qwen 3.8 27B (thinking off)", "logo": "qwen", "open": true, "overall": 0.37818169333333335, "t2s": 0.55666, "i2s": 0.19970338666666668, "indoor": 0.26629816, "outdoor": 0.166406, "score": 0.19970338666666668, "cost": 0.27672816366207137 }, { "key": "inkling", "name": "Inkling (high)", "logo": "thinkingmachines", "open": false, "overall": 0.31150237333333336, "t2s": 0.42498500000000006, "i2s": 0.19801974666666666, "indoor": 0.1690288, "outdoor": 0.21251522, "score": 0.19801974666666666, "cost": 0.7541276882539681 }, { "key": "grok", "name": "Grok 4.6 (high)", "logo": "grok", "open": false, "overall": 0.37567506, "t2s": 0.56721, "i2s": 0.18414012, "indoor": 0.1968008, "outdoor": 0.17780978, "score": 0.18414012, "cost": 0.2634673259259259 }, { "key": "gemma-on", "name": "Gemma 4 31B (thinking on)", "logo": "gemini", "open": true, "overall": 0.29812257999999997, "t2s": 0.470705, "i2s": 0.12554015999999998, "indoor": 0.12704028, "outdoor": 0.1247901, "score": 0.12554015999999998, "cost": 0.028434150793650796 }, { "key": "gemma-off", "name": "Gemma 4 31B (thinking off)", "logo": "gemini", "open": true, "overall": 0.28498897333333334, "t2s": 0.45494, "i2s": 0.11503794666666667, "indoor": 0.11239600000000001, "outdoor": 0.11635892, "score": 0.11503794666666667, "cost": 0.01913622993197279 } ]}README.md+4
assets/buildingbench.css+7
assets/pareto.jsAdded+44
assets/scene-cards.jsAdded+276
cases.html+1-1
data/pareto.jsonAdded+554
index.html