Evaluating How Well Large Language Models Generate 3D Interactive Web Pages

    Conventional benchmarks such as poetry writing or a handful of logic puzzles have lost most of their power to separate strong models. This article argues for a more discriminating test: having a large language model generate a complete, interactive 3D web page in a single pass. It explains how to design three isomorphic task sets anchored by a revealing second-round follow-up, catalogs the common failure modes, clarifies why reasoning tokens eat into the output budget, and walks through four typical result profiles. It then shows how to automate acceptance testing with a headless browser and a weighted scorecard, and closes with a two-stage generation pipeline that turns "which model should I use" from a subjective judgment into a repeatable engineering decision.

    1. Why “Chatting Well” No Longer Measures Capability

    When judging whether a model is strong, people traditionally looked at whether it could write poetry or answer a few logic puzzles. The problem with those tasks today is that their discriminative power has dropped to near zero: mainstream models have become highly convergent on general-purpose corpora, so given the same question to ten models, human reviewers can barely rank the answers. Worse, such tasks lack an objective acceptance standard, so scoring leans heavily on each reviewer’s subjective preferences.

    Tasks that still discriminate need to satisfy three conditions at once:

    • Long chains: moving from requirements to a runnable artifact takes many steps of reasoning and repeated self-correction, where a single-point mistake gets amplified by later steps;
    • Strong constraints: correctness can be judged by a machine, not by whether something “reads smoothly”;
    • Executable verification: the artifact can actually run, and errors, blank screens, or broken controls are hard facts.

    Combine all three and the most economical choice is to have the model generate a complete, interactive 3D web page in one shot. It compresses code generation, domain modeling, the rendering pipeline, interaction state management, and cross-turn requirement inheritance into a single task—and it is one of the few task types that can still visibly widen the gap between models.

    2. Task Design: Tasks Must Be “Heavy” and Need a Second Round

    My preferred approach is to fix three isomorphic task sets, run every model through the same prompts and the same follow-up turn, and look only at the objective results.

    Set 1: 3D visualization of a complex mechanical assembly. The first turn asks for a “detail-rich, interactive multi-cylinder internal combustion engine visualization page”; after the image is produced, add one follow-up: “change it to 3D.” The value of this task lies in the bite of the second round: the model must both inherit the mechanical semantics established in the previous turn (the subordinate relationships among cylinders, crankshaft, connecting rods, and the valve train) and build the entire 3D scene on its own—camera, lighting, materials, coordinate transforms, hierarchical assembly relationships, and spatial animations like exploded views.

    Set 2: 3D scene representation of large-scale data. For example, given a set of structured data, ask for a 3D chart page that can be rotated, filtered, and equipped with a legend and hover tooltips. The evaluation focus shifts from “modeling ability” to “whether the mapping from data to visual encoding is self-consistent.”

    Set 3: Dynamic simulation with physics constraints. For example, pendulum collisions, fluid particles, or cloth draping. This probes the stability of numerical integration, handling of time steps, and whether the simulation diverges over long runs.

    The three sets share a common trait: faking it is easy; getting it right is hard. A page with nothing but a self-rotating cube may look similar to one with a genuine crank-connecting-rod kinematic mechanism in a screenshot, but under interaction and long-running conditions they part ways immediately.

    3. The Second-Round Follow-Up: The Cheapest Capability X-Ray

    The single line “change it to 3D” is effective because it activates four capabilities at once:

    1. Context inheritance: are the part list, parameters, and comment language defined in the previous turn carried over intact, or is everything rebuilt from scratch;
    2. Technical selection judgment: does it know to switch from a 2D canvas to a WebGL-based 3D rendering path, rather than pasting a 2D shape into the scene as a texture;
    3. Spatial modeling ability: 3D is not “a collage of multiple 2D surfaces”—it requires correctly handling hierarchical transforms, normals, depth ordering, and camera projection;
    4. Interaction system rebuild: orbit controls, cross-sectioning, semi-transparent shells, step-by-step playback, and part toggling all need corresponding state management.

    Four common failure modes are worth calling out:

    • Degraded 3D: wrapping the original 2D result in a rotation, with no real geometry behind it;
    • Broken inheritance: inventing a brand-new set of part names in the second round, completely disconnected from the first turn’s labels and interaction logic;
    • Code bloat truncation: the single-turn output runs too long, hits the maximum output length, and the code cuts off at a critical point, leaving a blank page;
    • Fallback-prompt occlusion: the error-handling logic kicks in, but the prompt layer sits on top and cannot be closed, ending up covering the main content that actually rendered successfully.

    4. An Easily Overlooked Pitfall: Reasoning Tokens Also Eat the Output Budget

    One class of failure deserves separate mention: a model spends nearly its entire output quota on “thinking” in a given turn, leaving only a tiny remnant of actual code, so the page opens completely blank. Backend records often show the output token count pressing right up against the limit, with the vast majority being reasoning content.

    The root cause is that two limits are frequently conflated:

    • The context window determines how much input plus output can be held in total;
    • The maximum output length separately caps the output of a single generation—and most reasoning-oriented models count the thinking process against this same quota.

    This means “the model is smart” and “the model can deliver” are not the same thing. The engineering responses are clear:

    • Explicitly specify the output budget and structural order in the prompt, for example “first output a complete, runnable skeleton, then output optional enhancements”;
    • Use segmented generation: skeleton → assembly → interaction controls → annotations and animations, with each segment written to a separate file or a separate turn;
    • Set output caps and timeout interrupts; on failure, retry or fall back to a smaller generation unit;
    • Lock stable parts (canvas initialization, control-panel styling, error-prompt styling) into templates, and let the model generate only the parts that differ.

    5. How to Read the Results: Four Typical Profiles

    Abstract away the specific products from one small-scale evaluation and you see four fairly stable profiles. Note: the times and token counts below are only order-of-magnitude references from a single manual evaluation; they do not constitute any statistical conclusion. The sample size is small and the variance is large, so you must run your own eval set as a regression.

    A. High completion, heavy investment. The most complete assembly relationships: valve train, intake and exhaust manifolds, crankshaft, and flywheel all present, with Chinese annotations and an exploded view, running through on the first try with no errors. The cost is that the time reaches the “tens of minutes” range and the output tokens hit six figures. Suited to scenarios sensitive to delivery quality that can tolerate offline waiting.

    B. Detail- and interaction-oriented. Rather than chasing the volume of the outer shell assembly, it polishes the mechanical kinematics in fine detail: a standard crankshaft structure, the four strokes distinguished by different colors, support for stepping through observation at fixed angles, a switchable semi-transparent cylinder block, and even synthesized engine sound that changes with RPM via the Web Audio API. The time is likewise in the tens-of-minutes range, but it proves that the model can autonomously invoke native browser capabilities (audio, timers, state machines) rather than just drawing.

    C. Quick-draft. Submits in minutes with tens of thousands of tokens. The visual style leans toward the faceted look of industrial modeling—less refined than A—but the key proportions are correct, and the part toggles on the right and the explode / x-ray / reset controls at the bottom are all clickable. This is the best value-for-effort choice when racing a deadline day to day.

    D. Crash type. Either it hits the output limit and produces a blank screen, or it smears the error prompt across the center of the rendered result. Their value is that they expose exactly why evaluation must be automated—reviewing screenshots by eye easily misses console errors and broken controls.

    From A and B down to C, the time and token consumption differ by more than an order of magnitude, but “can you open it and interact” matters far more than style differences in pass rate. The first principle of model selection should be pass rate, not how good the screenshot looks.

    6. Automating the Evaluation: Let the Machine Do the Acceptance Testing

    Human review does not scale and must be handed to headless-browser automation. The core is three things: collect runtime errors, execute interaction scripts, and compare the final image.

    1. // Skeleton for an evaluation acceptance script (pseudo-code, based on a generic browser automation API)
    2. async function evaluate(caseDef) {
    3. const result = { consoleErrors: [], interactions: [], webglOK: false };
    4. const page = await browser.newPage();
    5. page.on('console', msg => {
    6. if (msg.type() === 'error') result.consoleErrors.push(msg.text());
    7. });
    8. page.on('pageerror', err => result.consoleErrors.push(String(err)));
    9. await page.goto(caseDef.url, { waitUntil: 'networkidle' });
    10. // 1. Did the rendering pipeline actually come up?
    11. result.webglOK = await page.evaluate(() => {
    12. const c = document.createElement('canvas');
    13. const gl = c.getContext('webgl2') || c.getContext('webgl');
    14. return !!gl && gl.drawingBufferWidth > 0;
    15. });
    16. // 2. Are the key controls clickable and do they produce a state change?
    17. for (const step of caseDef.steps) {
    18. await page.click(step.selector);
    19. await page.waitForTimeout(step.wait || 300);
    20. result.interactions.push({ step: step.name, shot: await shot(page, step.name) });
    21. }
    22. // 3. Does long-running cause divergence / crash?
    23. await page.waitForTimeout(caseDef.soakMs || 15000);
    24. result.consoleErrors.push(...await collectFps(page));
    25. await browser.close();
    26. return result;
    27. }

    On top of this, use a weighted scorecard to converge the subjective items into comparable numbers:

    Dimension Weight Judgment Method
    First-pass rate 30% No fatal errors and the first screen is visible
    Interaction completeness 25% Success rate of clicks executed by the automated script
    Requirement inheritance 20% Share of first-round elements retained in the second round
    Stability 15% Whether frame rate and memory degrade after long runs
    Cost 10% Total time + input/output tokens

    The accompanying sampling discipline is just as important: run each task on each model at least three times, and report the success rate and variance rather than a single best result; fix the same browser version and the same hardware, and disable caching; version the prompt templates, and treat any change as a new evaluation round. The evaluation pipeline itself can run on a container platform, with logs and metrics fed into logging and monitoring/alerting services—general-purpose infrastructure of this kind (for example, the container platform, logging service, and monitoring/alerting capabilities offered by Baidu AI Cloud) is enough to support a repeatable, regression-capable evaluation system.

    7. From Evaluation to Production: A Two-Stage Generation Pipeline

    Evaluation conclusions ultimately have to land in engineering practice. My recommendation is to abandon “one model all the way through”:

    1. Use a fast model to lay the draft. Get a runnable skeleton in minutes, and confirm whether the scene structure, data mapping, and interaction list match expectations. The cost of a mistake here is lowest.
    2. Switch to a high-completion model to finalize. Use the already-passing skeleton as context and let it only fill in assembly details, annotations, animations, and performance optimization. The input is a converged, settled structure, and the output scope is much smaller, so it is actually less likely to hit the output limit.
    3. Solidify and reuse. Distill the common logic for canvas initialization, the control panel, and cross-sectioning and exploded views into internal components, and let the model generate only the domain-specific parts. This is the most effective way to reduce token cost.
    4. Set budget guardrails. Enforce a maximum output length, a reasoning budget, and a per-turn timeout; on failure, automatically retry with a smaller granularity; and the error-prompt layer must be dismissible and default to not covering the main view—this one rule alone eliminates the ugliest subtype of “crash type” outcomes.

    8. Conclusion: There Is No “Strongest,” Only “Most Suitable”

    “Which model is the strongest” is itself an inefficient way to frame the question. The four profiles above show that capability differences are not a single-dimension ranking but a trade-off among completion, speed, cost, and stability: the high-completion type suits delivery-grade artifacts, the fast type suits exploration and drafts, and the crash type reminds you that any selection must be premised on automated acceptance testing.

    What is truly worth investing in is building your own evaluation set: three isomorphic tasks, fixed two-round prompts, an automated acceptance script, and a weighted scorecard. Models iterate far faster than any single review stays fresh; only a repeatable evaluation pipeline can turn “which model should I use” from a one-off subjective judgment into an engineering decision you can rerun at any time.