LLM Visual and Code Capabilities in Practice: From Text Prompts to 3D Interactive Scenes
This article evaluates how multimodal LLMs handle visual and code-generation tasks through progressively harder prompts. Each task requires a self-contained, runnable HTML output and is refined through multiple iterations. The evaluation covers visual aesthetics, spatial structure, interactivity, code quality, and stability. Two cases are examined: a natural-language-driven 3D coastal scene and a physics-based volcanic eruption simulation built on a mainstream 3D front-end library. The article also summarizes practical lessons on prompt direction, iterative refinement, and assessing the lower bound of model output, and concludes that LLM code ability is moving from functional correctness toward aesthetic and engineering competence, while human engineers remain essential for architecture and quality control.
Why Code Ability Is Becoming a New Battleground for LLMs
Over the past two years, evaluations of large language models focused mainly on text understanding, knowledge Q&A, and logical reasoning. This year, a clear trend has emerged: code ability is becoming one of the core indicators of a model’s overall capability. The reason is straightforward. Code is a structured, verifiable, executable form of output. It requires rigorous logical thinking, domain knowledge, and the ability to turn abstract requirements into runnable results.
More importantly, the meaning of “code” is expanding. Traditionally, code generation meant writing a function or fixing an error. The industry focus is now shifting to whether a model can use code to turn natural-language descriptions directly into visual, interactive results—web pages, games, data visualizations, 3D scenes, and even simulated environments with physical rules. In other words, code is evolving from a programmer’s output into a general interface between natural language and the digital world. This was the starting point for the tests discussed here.
Test Design and Evaluation Dimensions
To objectively evaluate a multimodal model’s strength in visual and code directions, I designed three progressive task types and followed these principles:
- Keep inputs as short as possible to test the model’s ability to actively fill in details.
- Require the output to be a standalone, runnable HTML file that does not depend on external asset libraries.
- Refine results through multiple interaction rounds to observe the model’s iterative improvement ability.
The evaluation dimensions were:
- Visual aesthetics: whether composition, color, and lighting are coherent and hold up under closer inspection.
- Structural soundness: whether scene elements are organized according to spatial logic.
- Interactivity: whether the viewpoint can be freely dragged and zoomed, and whether animations are smooth.
- Code quality: structural clarity, commenting conventions, and maintainability.
- Stability: consistency and usability across multiple generations.
Case 1: Natural-Language-Driven 3D Scene Generation
The first test is a classic prompt type widely shared in developer communities: give the model a one-sentence description and ask it to use its full design ability to generate a 3D web scene. It looks light, but it is a stress test of the model’s overall capability—it must understand semantics, build a three-dimensional space, design an aesthetic style, handle animation details, and compress all of this into a self-contained piece of front-end code.
After two or three rounds of prompt iteration, the final scene was impressive:
- Scene level: warm dusk light spread across a winding coastal road, with roadside signs, palm trees, and vegetation. The layout was balanced in density and did not feel cluttered.
- Dynamic level: character actions and expressions were natural, birds circled in the sky, and sea creatures occasionally leaped from the water. The overall result was close to the look of a commercial animated short.
- Interaction level: users could rotate the view 360 degrees and zoom in to inspect any detail.
- Technical level: all water shimmer and particle effects were computed in code in real time, with no external textures or model assets.
This point deserves elaboration. Water surface rendering has long been a classic challenge in real-time graphics, involving reflection, refraction, ripple disturbance, and lighting blend. If a model can approximate realistic water solely through code logic, it indicates solid knowledge of graphics principles and shader programming, not just memorized template code.
Case 2: Physics Simulation with a 3D Engine Library
The second test is a recurring exercise in this kind of model evaluation: ask the model to use a mainstream 3D front-end library to implement a physics simulation of a volcanic eruption, again output as a standalone HTML file.
Its value is that it moves the assessment from aesthetics to engineering:
- Particle system: lava eruption, smoke diffusion, and falling volcanic ash require many particles to work together.
- Physical logic: initial ejection velocity, gravity acceleration, and landing distribution need to match physical intuition.
- Performance control: whether the frame rate remains stable when hundreds or thousands of particles are rendered on screen.
- Code organization: whether scene initialization, animation loop, and resource cleanup are clearly layered.
From the results, current top-tier models can achieve a high degree of completion on such tasks: the eruption rhythm has variation, the smoke has volume, and the path of lava flowing down slopes broadly follows gravity constraints. A few years ago, this kind of effect would have required graphics engineers to hand-write code for several days.
Methodology Takeaways
After several rounds of intensive testing, three lessons are worth sharing:
- Prompts should give direction, not details. Overconstraint limits the model’s performance. Let it generate freely first, then target unsatisfactory parts for revision—this is the most efficient approach.
- Multi-round iteration is normal. The probability of a perfect first generation is low, but good models follow modifications well—if you say “make the sea brighter and add a lighthouse in the distance,” they can implement it precisely without breaking the existing structure.
- Evaluate the lower bound, not the upper bound. A single impressive output is not enough evidence. Stable usability across ten consecutive tasks is the key basis for engineering selection.
Final Thoughts
The biggest takeaway from this round of testing is that LLM code ability has crossed the threshold of “making it run” and is moving toward a stage with aesthetics and engineering awareness. For developers, this means prototype validation will become much more efficient. For broader creators, natural language is becoming a low-barrier entry point to 3D and interactive worlds that previously required specialized training. That said, complex engineering projects still need human engineers to control architecture and quality; models are currently better suited as efficient first-draft generators and creativity amplifiers. A pragmatic attitude is to understand capability boundaries rationally while boldly exploring application scenarios.
