Enhancing Code and 3D Generation in Multimodal Models: Aesthetic Shortcomings and Optimization Paths

    As next-generation general-purpose multimodal models enter preview stages, developer focus has shifted from basic code generation to execution stability, visual naturalness, and complex task iteration. While these models demonstrate significant progress in code organization, interaction logic, and 3D scene construction, they still face substantial room for improvement in aesthetic judgment, realistic lighting, material details, and overall composition. This article explores the current capabilities of multimodal models in programmatic creation tasks from a general technical perspective, and provides a reliable testing and optimization methodology for developers to bridge the gap between functional code and aesthetic visual output.

    As next-generation general-purpose multimodal models enter preview stages, developer focus has shifted from “whether they can generate code” to “whether the code can run stably, whether visual results are natural, and whether complex tasks can be continuously iterated.” Based on recent practical tests, these models show significant progress in code organization, interaction logic, and 3D scene construction, but there is still considerable room for improvement in aesthetic judgment, realistic lighting, material details, and overall composition.

    This article does not discuss a specific product. Instead, it analyzes the current performance of these models in programmatic creation tasks from a general technical capability perspective and provides a testing and optimization methodology better suited for developers.

    1. Evaluating Models Beyond “Can It Generate?”

    In early code generation tests, judging a model’s capability was relatively simple: could it output a runnable piece of code, pass compilation, or complete a basic web page.

    However, for today’s multimodal models, simply using “the code runs” as a standard is no longer sufficient. A complete programmatic creation task encompasses at least the following dimensions:

    1. Requirement Understanding
      Can the model accurately understand the main subject, motion relationships, spatial structure, and interaction requirements?

    2. Code Implementation
      Is the generated code clearly structured, are variable names reasonable, are modules easy to modify, and is excessive repetition avoided?

    3. Running Stability
      Can the page open directly, does it rely on additional services, can it run normally in an offline environment, and are there obvious animation lags?

    4. Interaction Design
      Can it provide functions like pause, speed adjustment, theme switching, and perspective control, and ensure these functions do not conflict with each other?

    5. Visual Completion
      This includes composition, color, materials, shadows, lighting, spatial proportions, and detail hierarchy.

    6. Iteration Capability
      When a user points out an issue, can the model locate the corresponding code instead of simply rewriting the entire project and losing existing functionality?

    Therefore, a model’s code capability and visual aesthetic are not the same skill. A model might be excellent at building interaction frameworks but poor at handling natural lighting; or it might generate complex 3D structures but fail to establish harmonious color relationships.

    2. Typical Task 1: Generating Interactive Vector Animations

    To test a model’s comprehensive capabilities, tasks like “an animal riding a bicycle” can be chosen, as they have clear structures, explicit actions, and contain certain interaction requirements.

    The task goal can be broken down into four layers:

    • Drawing the animal, vehicle, road, and background;
    • Expressing wheel rotation, body movement, and environmental scrolling;
    • Adding controls like pause and speed adjustment;
    • Ensuring the exported file can run independently outside the development environment.

    In such tasks, models usually opt for vector graphics and browser animation mechanisms. The core structure can be abstracted as follows:

    1. <svg viewBox="0 0 1000 600">
    2. <g id="background"></g>
    3. <g id="vehicle"></g>
    4. <g id="character"></g>
    5. <g id="controls"></g>
    6. </svg>
    7. <script>
    8. let speed = 1;
    9. let paused = false;
    10. function update(deltaTime) {
    11. if (paused) return;
    12. // Update wheel rotation angle
    13. // Update character body position
    14. // Update background movement offset
    15. }
    16. function render() {
    17. // Synchronize animation state to SVG elements
    18. }
    19. function loop(time) {
    20. update(time);
    21. render();
    22. requestAnimationFrame(loop);
    23. }
    24. requestAnimationFrame(loop);
    25. </script>

    The advantage of this implementation is a small file size, relatively transparent structure, and no reliance on remote resources. As long as the model correctly handles animation state, time steps, and event binding, the generated result usually has good usability.

    In practical tests, models can often generate a complete seaside cycling scene: the main character has distinct decorations, the wheels rotate continuously, the background moves horizontally, and some elements adjust their movement rhythm with speed changes. This indicates that the model is no longer just outputting static code but can simultaneously handle the relationship between graphics, animation, and interaction.

    However, this type of task also exposes several issues.

    1. Animation Logic May “Look Correct but Run Unstably Long-Term”

    If the model directly uses fixed increments to update rotation angles, speed differences may occur on devices with different refresh rates. A more robust approach is to calculate using time differences:

    1. angle += angularVelocity * deltaTime;

    This decouples the animation speed from the device refresh rate.

    2. Interactive Controls May Desync from Animation State

    For example, a speed slider changes the value, but the background movement speed does not sync; a pause button stops the wheels but not the character’s scarf or clouds. Solving such issues requires centralized management of the animation state rather than letting each element maintain its own timer.

    3. Visual Completion Depends on the Model’s Visual Planning

    A model can generate numerous graphic elements, but more elements do not mean a better-looking picture. If subject proportions, foreground/background layers, and color contrast are not planned, the final result may still look like a “scene patched together by code” rather than a work with a complete visual narrative.

    3. Typical Task 2: Drawing Indoor Light and Shadow with Code

    Compared to vector animations, programmatic drawing is a better test of a model’s comprehensive capabilities. It requires not only correct code but also the model’s understanding of light propagation, material reflection, spatial perspective, and artistic composition.

    A typical task is: using code to represent a scene where afternoon sunlight shines into a room. The picture usually includes a window, walls, floor, furniture, plants, and shadows. The truly difficult part is not drawing these objects, but placing them in a believable lighting environment.

    The model might adopt various implementation routes:

    • Using 2D drawing libraries to draw geometric shapes;
    • Using browser 3D APIs to build the scene;
    • Using CPU ray tracing to generate offline images;
    • Using a hybrid approach: building a 3D structure first, then post-processing.

    Different routes have their pros and cons. 2D drawing is fast and easy to control but offers limited spatial sense and realistic lighting; 3D solutions can express occlusion, perspective, and material relationships but require handling cameras, normals, light sources, and render loops; ray tracing offers higher realism but demands more from algorithm implementation and computing resources.

    From actual results, models usually handle the “building a room” task well, generating window frames, tables, chairs, floors, and potted plants, and arranging a diagonal beam of light through the room. The problems mainly focus on the following aspects:

    1. Unnatural Light Transitions

    Real indoor lighting usually has continuous brightness attenuation. After entering the room from the window, light is affected by wall reflection, object occlusion, and material color, forming a relatively soft variation of light and shade.

    However, model-generated results often use a few simple gradients or transparent polygons to replace real lighting, leading to clear boundaries between highlights and shadows. Visually, it may “have sunlight,” but it lacks the diffuse reflection effects found in real spaces.

    2. Lack of Material Differentiation

    Wood floors, walls, ceramic pots, and plant leaves have different reflection characteristics. Wood usually has directional grain, walls are matte, ceramics have more concentrated highlights, and leaves exhibit translucency or soft reflection.

    If the model merely assigns different colors to different objects without further setting roughness, texture direction, and specular intensity, all objects will look like they are made of the same plastic material.

    3. Lack of Realistic Contact Relationships Between Objects

    There should be contact shadows between furniture and the floor, local occlusion when a potted plant is placed on a table, and changes in corner areas depending on the light source direction. If these relationships are not correctly expressed, objects will look like independent layers pasted onto a canvas, naturally reducing the sense of space.

    4. Strong Code Capabilities Do Not Equal Strong Aesthetics

    In programmatic creation, a common misconception is equating code complexity with the final effect. In reality, code is just the means of implementation; the visual result depends on higher-level judgment.

    Models need to complete three different stages:

    1. Structural Stage: Determining what objects exist in the scene;
    2. Physical Stage: Determining how light, occlusion, materials, and motion occur;
    3. Aesthetic Stage: Deciding the focus, rhythm, color, and negative space of the picture.

    Currently, many models perform well in the first stage, possess certain capabilities in the second, but remain unstable in the third. They can understand descriptions like “afternoon light,” “quiet atmosphere,” or “natural shadows,” but may not necessarily translate these abstract words into unified visual decisions.

    Therefore, writing “make it perfect” or “pursue realism” in prompts is usually ineffective. A more effective approach is to break down aesthetic goals into executable constraints, such as:

    • The main light source is in the upper left of the frame;
    • Light passing through the window grid forms continuous projections on the floor;
    • The walls use low-contrast diffuse reflection;
    • Wood floor planks are arranged along the perspective direction;
    • Moderate negative space is retained in the foreground;
    • Shadows must not completely lose detail;
    • Avoid using overly harsh, pure black outline strokes.

    This phrasing reduces the model’s free rein, making visual goals easier to implement.

    5. Establishing a More Reliable Testing Process

    To objectively compare different models, it is recommended to use a unified test set rather than just observing a single “stunning case.”

    1. Horizontal Comparison with the Same Prompt

    Fix the task description, output format, and running environment to avoid misjudgments caused by prompt detail differences.

    2. Simultaneous Evaluation of Functionality and Visuals

    A scoring dimension table can be established as follows:

    Dimension Focus
    Correctness Can it run, are there obvious errors
    Completeness Are all requested functions implemented
    Maintainability Is the code modular and easy to modify
    Performance Is the animation smooth, does rendering over-consume resources
    Visual Quality Are composition, color, lighting, and materials coordinated
    Stability Do multiple generation results maintain similar quality
    Iteration Capability Can it accurately modify based on feedback

    3. Conduct Multi-Round Modification Tests

    The first round checks if the model can complete a basic version; the second round raises specific issues; the third round requires performance optimization or code refactoring. A truly valuable model should not only generate the initial version but also retain existing results and make targeted modifications.

    6. How Developers Can Compensate for Model Aesthetic Shortcomings

    For projects requiring high-quality visual results, all responsibility cannot be handed over to the model. A more reasonable workflow is “the model is responsible for execution, humans are responsible for setting evaluation criteria.”

    Specifically, the following strategies can be adopted:

    • First, have a human determine the composition sketch, then let the model fill in the code;
    • Split the scene into geometry, material, lighting, and post-processing modules;
    • Set explicit constraints for color, shadow, and perspective;
    • Modify only one issue at a time to avoid large-scale rewrites;
    • Save runnable versions for easy recovery if a rollback is needed;
    • Take screenshots of rendering results, compare differences, and perform manual review;
    • Manage key parameters using configuration files rather than scattering them in the code.

    In engineering practice, models are best suited for highly repetitive, rule-defined tasks with short feedback cycles, such as generating basic components, completing event handling, refactoring duplicate code, and building scene skeletons. For final composition, brand visuals, and complex artistic expression, developer or designer participation in decision-making is still required.

    Conclusion

    New-generation multimodal models are rapidly improving their code generation, interactive animation, and 3D scene construction capabilities. They can already independently complete multiple steps from requirement understanding to runnable prototypes, making them especially suitable for rapid idea validation, creating demo pages, and building programmatic visual experiments.

    However, moving from “can run” to “sufficiently beautiful” still requires solving problems like lighting simulation, material expression, spatial relationships, and aesthetic consistency. The key to future model competition lies not only in generating longer code or more complex scenes, but also in whether they can understand visual goals and transform abstract creativity into credible final results through a stable, explainable, and iterable engineering process.