How Procedural Generation Breaks Past the Part Library to Grow New Species

    This article examines why procedural 3D generation stalls when a requested part is missing from its library, while model-written scripts stay open but geometrically unstable. It presents a practical pipeline that combines layered representation, part contracts, constraint validation, controlled iteration, and dual-metric evaluation, so scenes keep their editable, batch-ready realism while continuously gaining new parts. Readers will also find guidance on evaluation criteria and on scaling generation with general cloud capabilities.

    1. The Failure Scene: The Prompt Is Fine, the Part Is Missing

    Type “a cactus desert in full bloom” into the engine, and a few minutes later the render finishes. The grain of the sand, the wrinkles and fuzz on the cactus skin all hold up under close inspection, yet not a single flower appears anywhere in the desert. Reworking the prompt, adding weights, and retrying in another language changes nothing. The problem is not semantic understanding; it is that “flower” does not exist as a component in the generation system’s capability set.

    This is the key fault line in 3D world generation today: procedural generation excels at photorealistic output within fixed rules but cannot cross the boundary of its own parts, while letting a model write generation code from scratch can theoretically produce any shape yet usually yields visibly cartoonish, plastic-looking results. The engineering problem sits in the gap between the two: keep the realism that survives close inspection, and keep the ability to add new parts indefinitely.

    2. Capability Boundaries of the Two Technical Routes

    2.1 Procedural Generation: Editable and Scalable, but Closed

    Procedural generation is essentially executable code that describes how an object grows, rather than a stored static model file. The same rules with different random seeds produce many distinct individuals in bulk, which makes the approach naturally editable, infinitely variable, and scalable. The industry already has benchmark systems built from tens of thousands of hand-written lines, generating “factories” that output photorealistic natural scenes at a quality high enough to be used directly as synthetic data sources.

    The cost is that the capability boundary is as rigid as the code size: whatever the factory implements is all the system can generate. A missing part cannot be summoned by prompt.

    2.2 Model-Written Scripts: Open, but Geometrically Unstable

    Another route has a vision-capable model output 3D scripts directly and run the modeling in general-purpose 3D software. Shape freedom is very high, but the resulting geometry is often crude, with proportions, topology, and detail hierarchy easily distorted. The relevant evaluations measure whether the model can write a runnable and reasonable script, and there is a clear gap between “runnable” and “visually believable.”

    2.3 Parameter Tuning Only: Locked by the Parameter Space

    A third approach abstracts generation into parameter search and optimizes within an existing parameter space. It is stable, but the expressible set equals the parameter set, so it also cannot produce parts that did not already exist. The three routes hit three different ceilings: geometric distortion, missing parts, and a closed space.

    3. Why “Hand the Whole Codebase to an Agent” Does Not Work

    The natural idea is to give a coding agent the full codebase plus command-line access and let it read, write, render, inspect, and iterate freely. The experimental result is not encouraging: with only a small number of iteration rounds allowed, both its image-text match and feature similarity scores came in below the full pipeline.

    The root causes are context noise and coupling risk. Tens of thousands of lines are far too noisy for a model to judge which edit will drag materials, skeletal binding, and random seeds along with it; local changes frequently trigger cascading collapse, and more iteration drifts further from the target. So the issue is not that the model cannot write code, but that there is no controlled modification surface and no verifiable feedback loop.

    4. A Practical General Solution: Layered Representation + Constraint Validation + Iterative Evaluation

    4.1 Layered Representation: Split the “World” into Replaceable Part Layers

    Split the scene into a skeleton layer, a parts layer, a material layer, and a distribution layer. The skeleton layer defines terrain and ecological layout; the parts layer is a pluggable set of generators; the material layer handles surface detail; the distribution layer controls density and clustering with statistical rules. Adding a “flower” only requires registering one part generator and hooking it into the distribution layer, without touching existing code.

    A sketch of the structure:

    1. World
    2. ├── Skeleton # terrain, slope, water systems
    3. ├── Distribution # density, clustering, season
    4. ├── Parts # pluggable parts: trunk/cylinder/flower
    5. └── Materials # surface detail and scale

    4.2 Interface Contracts: Make New Parts Discoverable and Constrainable

    Define a uniform contract for each part, covering scale range, orientation constraints, attach points, colliders, and minimum feature size. The model only needs to produce parameters and a structural description that satisfy the contract, and the executor handles instantiation. This separates openness from stability: creativity lives in the description layer, reliability in the execution layer.

    1. # Pseudocode: part contract and registration
    2. class PartSpec:
    3. scale_range: tuple # allowed scale range
    4. attach_points: list # attachable positions
    5. min_feature: float # minimum feature size, prevents melting into a plastic blob
    6. def register_part(name, spec, builder):
    7. REGISTRY[name] = (spec, builder)

    4.3 Constraint Validation: Stop the “Plastic Look” Before Execution

    Run static checks before instantiation: whether scale is out of range, whether an attach point is left hanging, whether detail dimensions fall below the threshold, and whether the topology is manifold. After rendering, run a multi-view consistency check and score with both image-text similarity and feature similarity; if the score falls below the threshold, roll back to the last stable version instead of stacking more edits on a collapsed result.

    4.4 Controlled Iteration: Small Modification Surface, Rollback Ready

    Learning from the failed experiment, iteration should be limited to a single part or a single parameter group, with only one change allowed per round and snapshots kept for rollback. Inject only the relevant module and contract description into the context rather than the whole codebase, which sharply reduces noise and coupling risk.

    4.5 Engineering Support: Scale with General Cloud Capabilities

    Batch generation and evaluation usually need elastic compute and scheduling. Rendering jobs can run on a container platform, scene snapshots and outputs can be stored in object storage, a message queue can decouple the generation and validation stages, and logging plus monitoring with alerts can track failure rates and metric drift. In these scenarios Baidu AI Cloud typically handles the workload with a combination of the general capabilities above; the specific configuration has to be determined by load testing against the actual workload.

    5. Evaluation: Proving That a New Species Actually Grew

    Evaluation should cover at least four dimensions. First, semantic achievement: whether the target part genuinely exists rather than being approximated by a substitute. Second, visual credibility: whether detail stays stable across multiple views. Third, individual diversity: whether variation within the same seed family is sufficient. Fourth, stability: whether the success rate and rollback rate stay under control. A single similarity score tends to hide hard failures such as a missing part, so “target part existence” is best kept as an independent veto item.

    6. Summary

    The bottleneck of procedural generation is not insufficient realism but a closed part library; the bottleneck of model-written code is not insufficient creativity but missing constraints and feedback. Combining the two into a pipeline of layered representation, contract constraints, controlled iteration, and dual-metric evaluation is what preserves the editable, batch-ready advantages while continuously growing new parts. For deployment, start with a pilot on a single ecosystem scene, then expand the part library and validation rules step by step, tune thresholds with data, and avoid opening up full modification access all at once.