Agent-Driven 3D Scene Lighting Reconstruction and Automated Video Production

    A practical guide to fixing the “cardboard” look in 3D scenes by improving the rendering pipeline rather than rebuilding assets. It covers code-level diagnosis with AI programming tools, staged upgrades for lighting, water, reflections, and post-processing, as well as safe delivery, rollback, long-running task orchestration, and automated video review.

    1. The Root Cause of the “Cardboard” Look in 3D Scenes

    Many teams encounter a similar problem: a 3D scene is embedded in a community homepage or product showcase page, and everything works correctly from a functional perspective. Yet the visuals still look cheap and flat. The lighting lacks depth, the water resembles a static plastic sheet, and nighttime windows appear as a few dry yellow rectangles.

    These projects typically share three characteristics: many modules, deep coupling, and live online access. As a result, no one wants to make extensive changes. In most cases, the real problem is not the accuracy of the geometry, but three missing or underdeveloped parts of the rendering pipeline:

    • An incomplete lighting pipeline: Only default real-time lighting is used, without light baking or an approximation of indirect lighting and global illumination.
    • Overly simple materials and reflections: The water surface lacks normal distortion, reflection probes, and environment maps, while roughness and metallic parameters remain at their defaults.
    • An empty post-processing pipeline: Without tone mapping, bloom, depth of field, grain, or vignette, the dynamic range becomes flat.

    The conclusion is straightforward: this is a rendering pipeline problem, not an asset problem. The safest strategy is therefore to leave the models unchanged and modify only the pipeline, minimizing the risk surface.

    2. Diagnosis: Let the Agent Read the Code Before Proposing a Solution

    When handing an entire project to an AI programming tool, the most valuable first step is not to immediately generate a proposal document. It is to perform a code-level investigation. A reusable instruction structure looks like this:

    1. First inspect the project structure and all rendering-related modules. Locate the implementations for lighting, materials, water, and post-processing.
    2. Output:
    3. 1) A diagram of the current rendering pipeline
    4. 2) The specific files and functions identified as bottlenecks
    5. 3) A phased modification plan
    6. Constraints:
    7. Do not modify any files in the main directory. Write all validation outputs to a separate directory.

    This instruction includes three important design choices:

    1. Require file- and function-level locations. This prevents the model from returning generic recommendations that cannot be implemented.
    2. Require a pipeline diagram first. This converts the subjective statement “the scene does not look good” into a structural problem that can be verified.
    3. Explicitly restrict the write scope. For a long-running task, this is one of the most important safety controls.

    A practical approach is to have the tool build a test page in a separate directory. The test page should use the same assets and camera path as the original scene, while replacing only the lighting and post-processing configuration. Render comparison versions before making any changes to the main project. The production project remains untouched until the results are reviewed and approved.

    3. Implementation: Replace the Rendering Pipeline in Layers

    Proceed from lower-risk changes to higher-risk changes. Each layer should be independently reversible.

    Layer 1: Light Baking

    1. # Pseudocode: bake indirect lighting and lock static illumination
    2. scene.render.engine = "CYCLES" # Offline, high-quality path
    3. scene.render.bake.use_pass_direct = True
    4. scene.render.bake.use_pass_indirect = True
    5. scene.render.bake.margin = 8 # Prevent light leaks at seams
    6. bake_lights(scene, samples=256)

    The nighttime “yellow rectangle” problem is essentially caused by the lack of emissive materials and lighting probes. Adding an emission intensity curve to the window materials and driving it with time-based keyframes can create a more natural nighttime scene with subtle variation.

    Layer 2: Water and Reflections

    Realistic water depends on three elements:

    1. Normal distortion, created by layering two noise patterns with different movement speeds;
    2. Screen-space reflections or reflection probes;
    3. Fresnel blending.

    Simply adjusting the water color will never make it look like water.

    Layer 3: Post-Processing and Tone Mapping

    Enabling tone mapping, such as a Filmic- or AgX-style curve, together with subtle bloom, vignette, and fine grain, is one of the most cost-effective ways to eliminate the “cardboard” appearance.

    4. Delivery: Ship an Incremental Package Instead of Overwriting the Project

    After the reconstruction is complete, the deliverable should not be “pull the code yourself.” Instead, provide a small incremental archive, typically only a few hundred kilobytes, together with instructions explaining the target paths and rollback procedure.

    This reflects several engineering principles:

    • Minimal change set: Include only the resources and configurations that were modified.
    • Rollback capability: Preserve backup paths for the original files.
    • No direct production access: Write the deliverables to an agreed directory. A human operator can then apply them through the deployment console, preventing the agent from making unauthorized changes to the production environment.

    If the agent reports that a firewall is blocking access and it cannot connect directly to the server, the correct response is not to bypass the restriction. Accept the boundary and switch to a safer delivery format.

    5. Orchestrating Long-Running Tasks and Controlling Costs

    Turning a one-sentence requirement into a three-and-a-half-minute fully 3D video is a typical long-chain task. Request counts and token usage can grow by several orders of magnitude. Hundreds or even thousands of requests and hundreds of millions of tokens are not unusual in such workflows. Engineering constraints are therefore essential.

    Dimension Recommended practice
    Task decomposition Split the workflow into five independently reviewable stages: script, storyboard, assets, rendering, and final review
    Budget control Set per-stage token and request limits; pause and report when a limit is exceeded
    Failure recovery Retry failed renders with a lower sample count; hand off to a human after three consecutive failures
    State persistence Persist the outputs of every stage to support checkpointed execution
    Review loop Automatically extract keyframes for visual consistency checks and generate an issue list

    Automating the review stage is especially valuable. The tool can compare each shot against the storyboard, checking duration, camera movement, material consistency, and subtitle safe areas. This transforms manual video review into a structured list of issues to inspect.

    6. Production Checklist

    • Physically isolate the main project from the validation directory.
    • Persist rendered outputs, logs, and intermediate configurations for traceability.
    • Require human confirmation for every production-environment change.
    • Use cloud services only for general-purpose capabilities: object storage for assets, message queues for distributing rendering jobs, container platforms for stateless rendering nodes, and logging and monitoring systems for failure-rate alerts.
    • Keep a rollback snapshot for every reconstruction.

    7. Conclusion

    The “cardboard” look is not primarily an aesthetic problem. It is an engineering problem caused by an incomplete rendering pipeline. By formalizing diagnosis, validation, delivery, and review as a repeatable process, AI programming tools can move beyond code generation and begin delivering complete, reviewable artifacts.

    The real challenge is not the capability of the model itself. It is whether the workflow has clearly defined constraints, budgets, and rollback procedures.