3D engine that AI agents drive
List floorSkyTrace in the MCP environment schema and update the size numbers (part of #197)
Nguyen Xuan An2ada593265da
diff --git a/bench/reference/README.md b/bench/reference/README.mdindex 4753a99b..ff3cbbc4 100644--- a/bench/reference/README.md+++ b/bench/reference/README.md@@ -1809,7 +1809,7 @@ Box 2, dark end (`shadow-depth.py`, display luminance, 67js before > after / CycThe dark percentiles move toward Cycles in every row but by small steps (p1 by 0.000 to 0.005, p25 by 0.003 to 0.004; `temple-hall` p1 is now within 0.0007 of Cycles). The lit to shadow contrast does not move (at most 0.02 log2 step), as the opt-in section said: a sky term lowers lit and shadowed tiles together. `temple-hall-b` p1 and p5 do not move because its darkest pixels are lit by its lamps, not by the sky. The contrast gap needs a deeper sun shadow, not sky light, and is still open.-Cost, measured on a loaded machine (another heavy job ran beside, so read these as ranges; `frame-time.mjs --plain`, one run each): `temple-hall` 1.83 ms without and 2.23 ms with, `dark-shaft` 2.38 ms without and 2.11 ms with. The trace takes 1.2 s and 0.6 s when the scene is prepared. Size: `entry:floor-sky-visibility` +285 bytes gzip, `scene:agent-scene` +286 (103055 to 103341, a goal scene, over its goal of 100000), `scene:agent-scene+lazy` +3739, `scene:lit-box` 0.+Cost, measured on a loaded machine (another heavy job ran beside, so read these as ranges; `frame-time.mjs --plain`, one run each): `temple-hall` 1.83 ms without and 2.23 ms with, `dark-shaft` 2.38 ms without and 2.11 ms with. The trace takes 1.2 s and 0.6 s when the scene is prepared. Size: `entry:floor-sky-visibility` +285 bytes gzip, `scene:agent-scene` +287 (103229 to 103516, a goal scene, over its goal of 100000), `scene:agent-scene+lazy` +3741, `scene:lit-box` 0.Rows refreshed: `temple-hall` and `dark-shaft` in `baseline.json` (with their sheet images) and the three temple options in `grand.json`, from a Blender 5.2.2 rerun of just those scenes with the final code. The other rows, and `long-street` and `megacity-dusk-a`, which render identically, are left as they were.diff --git a/changes/197-sun-rooms.size.md b/changes/197-sun-rooms.size.mdindex 3b97d97a..275553be 100644--- a/changes/197-sun-rooms.size.md+++ b/changes/197-sun-rooms.size.md@@ -1,3 +1,3 @@- entry:floor-sky-visibility: +285 bytes gzip (15101 to 15386) for the onlyClosedRooms option, the room strength, the mean visibility in the report, applyDefaultFloorSky and the recipe stage with its cache-- scene:agent-scene: +286 bytes gzip (103055 to 103341) for the floorSkyTrace field, one conditional call into the lazy module and the module entry with its markers; the sun and closed-room tests live in the lazy chunk-- scene:agent-scene+lazy: +3739 bytes gzip (359885 to 363624), the same code plus the floor sky module loaded+- scene:agent-scene: +287 bytes gzip (103229 to 103516) for the floorSkyTrace field, one conditional call into the lazy module and the module entry with its markers; the sun and closed-room tests live in the lazy chunk+- scene:agent-scene+lazy: +3741 bytes gzip (363571 to 367312), the same code plus the floor sky module loadeddiff --git a/scripts/mcp-server.mjs b/scripts/mcp-server.mjsindex b2419f10..83c9f7ba 100644--- a/scripts/mcp-server.mjs+++ b/scripts/mcp-server.mjs@@ -226,6 +226,7 @@ const environment = z.strictObject({liquid: liquidOptics.optional().describe('Optics for materials tagged liquid or foam.'),lines: lines.nullable().optional(),objectReflections: z.boolean().optional().describe("false turns off reflection probes on smooth metal parts."),+ floorSkyTrace: z.boolean().optional().describe("false turns off the sky trace on the floor of a closed room lit by a sun."),resolveCoplanar: z.union([z.literal('offset'), z.literal(false)]).optional().describe("'offset' biases the smaller part of each coplanar pair at draw time; false clears."),viewTransform: z.enum(VIEW_TRANSFORM_NAMES).optional().describe('Display transform, for example agx to compare with Blender.'),look: z.enum(LOOK_NAMES).nullable().optional().describe('Named look preset; null clears.'),