Hands-On Evaluation of LLM Code Generation and 3D Rendering Capabilities

    This article presents a reproducible framework for evaluating how well flagship general-purpose LLMs handle real engineering tasks, based on hands-on tests of three deliverables: animated SVG generation, pure-code lighting and shadow rendering, and interactive 3D scenes. It covers how to unify the test environment, define three layers of acceptance metrics, and write constraint-driven prompts, then reports where current models succeed and where they fall short—runnable interaction versus offline high-sample rendering, geometry, materials, and aesthetic judgment. It closes with engineering adoption advice and a practical acceptance checklist.

    1. The Problem: “It Runs” Is Not the Same as “It’s Good”

    Flagship general-purpose LLMs are entering a period of rapid iteration, with code and agentic capabilities becoming the main competitive dimensions. Vendor announcements usually highlight improvements in world knowledge, multimodal perception, and tool calling, but rarely disclose parameter counts, evaluation methodology, or training data composition. Official descriptions alone therefore cannot tell you whether a model is usable in real engineering work; you have to go back to reproducible tasks.

    This article does not recommend any specific product. Instead, it abstracts an evaluation framework: break “model capability” into verifiable deliverables, and compare models horizontally using unified prompts, a unified environment, and unified acceptance criteria. The three task types in the original hands-on test—animated SVG generation, pure-code lighting and shadow rendering, and interactive 3D scenes—happen to cover three layers: front-end delivery, graphics, and aesthetic judgment, which makes them well representative.

    One caveat: the conclusions are time-sensitive. Models iterate quickly, and the same prompt can behave noticeably differently across reasoning tiers (for example, an “extremely high” reasoning setting) and host environments. Treat the findings as a capability snapshot at a given point in time, not a permanent verdict.

    2. Methodology: Turning Subjective Impressions into Verifiable Metrics

    2.1 Unified Environment

    Fix the following variables, otherwise the comparison is invalid:

    • Same reasoning tier (different reasoning budgets for the same model can significantly change results);
    • Same host runtime environment (browser engine, Node runtime, available dependencies);
    • Controlled network conditions (including one offline re-check to detect external resource dependencies);
    • Same export artifact format (single-file SVG, single-page HTML, runnable project directory).

    2.2 Three Layers of Metrics

    1. Runnability: can the artifact be opened directly, run offline, and produce no console errors;
    2. Functional completeness: is each interaction item in the requirements implemented one by one (pause, speed adjustment, day/night toggle, etc.);
    3. Aesthetics and physical plausibility: light and shadow transitions, material rendering, geometric soundness, compositional completeness.

    The first two layers can be automated. The third still requires human review, and at least two independent raters should score it to reduce subjective bias.

    2.3 Prompt Design Principles

    Vague prompts only measure the lower bound. To measure the upper bound, you must state the constraints clearly. Example:

    1. Generate a single-file SVG animation that runs offline. The subject is a pelican riding a bicycle.
    2. Requirements:
    3. 1) Wheels and pedals stay kinematically consistent, with a fixed speed ratio;
    4. 2) Provide three controls: pause/resume, speed adjustment from 0.5x to 2.0x, and day/night toggle;
    5. 3) Do not reference any external fonts, images, or scripts;
    6. 4) Include comments on key parameters so the code is easy to modify later.

    The value of this kind of prompt is that it converts “looks good” into “acceptable clauses,” making results from different models comparable.

    3. Hands-On Observation 1: Maturity of Animation and Interaction Delivery

    On the animated SVG task, mainstream flagship models have basically moved past the “cannot produce it” stage and generally deliver structurally complete, runnable results. The differences show up in details: whether the kinematics are self-consistent (the ratio between wheel speed and pedal cadence), secondary animation of clothing and background elements (a fluttering scarf, waves on the sea surface), and whether the controls are genuinely bound to state rather than decorative props.

    An often-overlooked acceptance point is independence after export. Set the speed to a non-default value, export, then open the file offline. If the animation still runs normally, the state was correctly baked into the artifact rather than depending on the runtime environment. This matters especially for delivery to static hosting scenarios (such as object storage plus a CDN).

    Conclusion: at the interaction and animation level, models can already be used as a “junior front-end implementer,” but humans still need to handle parameter calibration and visual fine-tuning.

    4. Hands-On Observation 2: Pure-Code Rendering Exposes Graphics Weaknesses

    The second task asked for “an afternoon scene with interwoven light and shadow, drawn with any code technique, pursuing the extreme.” This type of task essentially tests how deeply the model understands the rendering pipeline: whether it chooses real-time rasterization or path tracing, and whether it understands the relationship between global illumination, soft shadows, color temperature, and exposure.

    Typical problems observed in the test included: hard black lines in wall-corner shadows (insufficient soft-shadow sampling or insufficient shadow map resolution), no contact shadows between potted plants and the floor (missing ambient occlusion), and uniform material reflection and roughness (the image looks like “a set that was just built”). Better-performing solutions usually had more natural light-dark transitions, showing a continuous brightness gradient from the bright area by the window to the dark interior.

    The engineering takeaway: generating high-quality offline rendering with pure code requires the model to simultaneously master scene description, light sampling strategy, and performance budget. Most current models are better at “runnable real-time solutions” and still show a clear gap in offline high-sample rendering. If you really need this, the pragmatic approach is to have the model produce a runnable version first, then have the developer replace key modules (for example, swapping rasterized shadows for a ray-traced sampling loop).

    Illustrative code (soft-shadow sampling approach):

    1. # Pseudocode: multi-point sampling of an area light to soften shadow edges
    2. samples = 16
    3. for i in range(samples):
    4. p = light.sample_area(random_offset=i)
    5. visibility = scene.ray_occluded(surface_point, p)
    6. radiance += p.intensity * (1.0 if not visibility else 0.0)
    7. radiance /= samples

    Sample count, light source area, and denoising strategy together determine noise and runtime, which also explains why high-quality offline rendering is often a matter of “trading time for quality.”

    5. Hands-On Observation 3: 3D and Aesthetics Are a Longer Gap

    For 3D scenes and overall visual quality, the problems concentrate in three areas: geometry proportions and perspective are not rigorous enough, materials lack micro-detail, and composition lacks a visual focal point. Aesthetic judgment involves a great deal of tacit experience that is hard to fill in with a single prompt; it usually requires explicitly specifying reference style, lens focal length, main light direction, and color range in the prompt, plus multiple iterations.

    A reusable prompt skeleton:

    1. Scene: a corner of an interior in the afternoon, main light slanting in from a window at the back left.
    2. Camera: equivalent 35mm, eye height 1.5m, slight downward angle.
    3. Lighting: single main light plus sky ambient light, color temperature 5200K, with contact shadows and soft shadows.
    4. Materials: wood floor roughness 0.6, walls nearly diffuse, glass with slight smudges.
    5. Output: a single-page runnable project with a parameter panel to adjust exposure and sun elevation angle.

    Breaking aesthetics into four adjustable parameter categories—camera, lighting, materials, and color—can significantly improve the first-pass success rate.

    6. Engineering Adoption Advice and Acceptance Checklist

    • Layered acceptance: first get it running, then verify the interaction clauses, and only then do the aesthetic review; avoid discussing visual quality on an artifact that does not run;
    • Offline first: artifacts should not depend on external resources by default, reducing deployment and compliance costs;
    • Externalized parameters: consolidate adjustable items into a unified configuration panel so non-developers can participate in tuning;
    • Observability: on the generation-service side, connect logging, monitoring alerts, and metrics dashboards to track success rate, average iteration rounds, and manual rework rate;
    • Elastic capacity: batch rendering and inference tasks can use container platforms and message queues to smooth peaks and fill troughs, with artifacts stored in object storage and distributed via a CDN;
    • Cost model: measure economics as “average iteration rounds per task × cost per round,” not just the price of a single call.

    Reference acceptance checklist:

    1. Runs offline with zero console errors;
    2. Requirement clauses checked off one by one, with no “decorative controls”;
    3. Shadows, contact shadows, and material roughness pass human review;
    4. Key parameters are centrally configurable and commented;
    5. Artifact size and first-screen time are within budget.

    7. Conclusion

    From the hands-on test, the new generation of models is close to usable in code runnability and interaction completeness, but still lags behind the frontier in pure-code offline rendering and aesthetics, and catching up will take time. For developers, the more rational strategy is not to wait for an “all-capable model” but to build a layered evaluation and acceptance system that places the model where it fits: let it handle scaffolding and runnable prototypes, and leave graphics details and aesthetic decisions to engineering experience and human review.