Engineering Recap: AI-Assisted Modeling of Complex 3D Scenes

    A recap of using a general-purpose LLM coding assistant to build a detailed 3D scene of Beijing’s Xiangshan (Fragrant Hills). It shows why natural-language goals are not executable specs, how to specify geography, data, geometry, materials, and stability, and how long-running 3D work needs versioned pipelines, caches, and sequence-based acceptance.

    Engineering Recap: AI-Assisted Modeling of Complex 3D Scenes

    1. Background: why a natural-language request is easy to underestimate

    A typical recent exercise asked a general-purpose large-model coding assistant to produce a 3D version of Beijing’s Xiangshan (Fragrant Hills), covering maple foliage, mountain form, terrain modeling, roads and trails, with explicit instructions not to cut corners and to aim for a striking result. On the surface this looks like “have AI generate a 3D scene.” In practice the work ran nearly two days and still was not fully closed, mainly because of remaining issues such as screen flicker.

    What is worth recapping is not whether a given tool is “smart,” but an engineering fact: natural language states intended outcomes, not executable specifications. Once “make Xiangshan” hits a 3D pipeline, it splits into elevation data, road-network topology, terrain meshes, vegetation distribution, material parameters, camera animation, render stability, asset caching, and acceptance criteria. Treating it as a routine modeling job underestimates complexity and drives rework.

    Another detail: speech-to-text errors in the user input misspelled the 3D authoring tool. The language model inferred intent from context and checked whether local dependencies existed. Assistants can help clarify requirements, but tool-chain inference is not a guarantee of engineering correctness. Critical dependencies, data sources, and output specs still belong in an explicit task specification.

    2. Where complexity comes from: from “a scene” to an acceptable asset

    “Generate a Xiangshan version” includes at least five classes of subproblems:

    1. Geographic extent and scale: How large an area? What elevation range? Are all trails in scope?
    2. Data sources and accuracy: DEM resolution, road-network completeness, basis for vegetation maps?
    3. Geometry: How is terrain tiled? How do roads sit on terrain? How are steps represented?
    4. Appearance: Are maple leaves textures or geometry? How are cotinus (smoke tree) leaf traits parameterized?
    5. Dynamics and stability: Do camera motion, wind, and material switches cause flicker? How is that accepted?

    If any of these is undefined, “generate” becomes guesswork. The professional path is not a single grand prompt, but a scene specification first. Example JSON:

    1. {
    2. "region": "Beijing Xiangshan sample area",
    3. "elevation": {"type": "dem", "resolution_m": 30, "policy": "public_geodata"},
    4. "roads": {"layers": ["trail", "steps"], "topology": "graph"},
    5. "vegetation": {
    6. "species": "cotinus",
    7. "leaf": {"shape": "obovate", "apex": "rounded", "base": "cuneate", "margin": "entire"}
    8. },
    9. "lod": [{"level": 0, "max_triangles": 2000000}, {"level": 1, "max_triangles": 500000}]
    10. }

    Specification lets the model implement field by field and lets validators check field by field, instead of judging from screenshots whether it “feels right.”

    3. Data sources: elevation, roads, and vegetation semantics

    The assistant tried public Earth-observation DEMs at 30 m and public map road networks, finding hundreds of trails and over a hundred step segments around Xiangshan. Some data did not match the target and was not used. Modeling then followed botanical traits of cotinus leaves: obovate, rounded apex, cuneate base, entire margin.

    Three lessons:

    • Elevation defines the terrain skeleton. 30 m is adequate for mid-to-large mountain silhouettes, not for steps and close-up trails; combine it with local hand fixes or procedural detail.
    • Road data is not “draw lines.” Trails, steps, and ridge roads need topology, slope constraints, and terrain draping. Naive projection onto the mesh often floats or intersects.
    • Vegetation is more than a red-leaf texture. If maple and cotinus traits matter, leaf shape, margin, apex, and base should enter material or geometry rules, or close-ups will look wrong.

    Write data policy into acceptance: public availability, whether accuracy matches camera distance, consistent CRS, how gaps are filled. Reject unfit data and record why instead of forcing a merge for schedule.

    4. Geometry: terrain, roads, steps, and vegetation instancing

    Govern geometry in layers:

    • Terrain tiles: Split the elevation grid into tiles and LOD. Dense near, sparse far, avoid huge single files.
    • Road draping: Convert the graph to splines or polylines, sample elevation, cap max slope and smooth. Mark step segments and generate repeating or procedural steps.
    • Vegetation instances: Impostors or low-poly crowns in the distance; near field, geometric clusters with leaf-shape parameters. Distribute by elevation, aspect, and density maps—not uniform scatter.
    • Asset boundaries: Version all procedural parameters so the same spec is reproducible.

    Illustrative drape pseudocode:

    1. def fit_road_to_terrain(points, dem, max_slope=0.35):
    2. fitted = []
    3. for p in points:
    4. z = dem.sample(p.x, p.y)
    5. fitted.append((p.x, p.y, z))
    6. return smooth_polyline(fitted, max_slope=max_slope)

    The point is not the snippet itself, but turning drape, slope limits, and smoothing into checkable constraints.

    5. Materials and botanical traits: from “looks like red leaves” to explainable parameters

    Obovate shape, rounded apex, cuneate base, and entire margin can become parameters. Build a leaf table for shape, edge, color variation, translucency, and wind weight. Use a standard PBR setup: base color, roughness, normals, opacity, and a subsurface approximation. Full high-poly leaves in close-up destroy performance; combine atlas textures, normal maps, and a few geometric clusters.

    Acceptance should depend on camera distance: far shots on color masses and crown silhouette, mid on branch/leaf layering, near on leaf form and edges. One global standard oscillates between near-field distortion and far-field overbuild.

    6. Animation and image stability: treating flicker as a root-cause problem

    “Almost two days and still fixing flicker” is typical. Common causes:

    1. Coplanar faces or Z-fighting
    2. Unreasonable LOD switch thresholds
    3. Instance or transparent-material sort order
    4. Conflict between camera motion and wind frequency
    5. Insufficient texture sampling or discontinuous normals
    6. Unfixed random seeds across frames

    Engineer the fix: pin seeds, hysteresis on LOD switches, layered sort for transparency, different wind weights near vs. far, log per-frame outliers. Do not accept stills only—export short sequences and inspect frame by frame. Example checks:

    1. stability_checks:
    2. - name: z_fighting
    3. rule: no_coplanar_surfaces_in_camera_path
    4. - name: lod_hysteresis
    5. rule: switch_threshold_delta > 0.1
    6. - name: random_seed
    7. rule: fixed_per_asset

    7. Long-running work: cache, logs, monitoring, and rollback

    A two-day task is iteration, not one-shot generation. Put assets, intermediates, generation parameters, logs, and acceptance stills under version control. Generic cloud capabilities can help: object storage for terrain tiles and textures, containers for batch jobs, logging and alerts for long jobs. This is category-level, not a specific vendor API.

    Suggested practice:

    • Input and output hashes per subtask for cache hits
    • Record model version, prompt, data source, and seed on every generate
    • Keep intermediates on failure for resume
    • Spot-frame render sequences instead of full reruns
    • Rollback points so flicker fixes do not destroy existing terrain and roads

    8. Prompts and acceptance: turn “impressive” into metrics

    “Stronger and more striking than typical 3D” is a goal, not a test. Professional prompts should include region, data accuracy, required elements, forbidden bad data, camera path, frame rate, resolution, LOD policy, flicker tolerance, and delivery format. Acceptance splits into geometric correctness, data consistency, near-field material quality, animation stability, and performance.

    9. Conclusion

    The real regret was treating a natural-language request as a complete spec—not using an LLM coding assistant. The right path is specify first, validate data, implement geometry and materials in layers, then accept stability on sequences. AI can speed exploration and code generation; engineering correctness still comes from verifiable specs, a reproducible pipeline, and observable long-running jobs. Splitting “make Xiangshan” into an acceptable asset list is how you stop underestimating complexity and cutting rework.