Introduction
Procedural Content Generation (PCG) is the industry standard for creating high-quality 3D assets in gaming and film. Unlike static meshes, PCG stores a "recipe"—a set of algorithmic rules and parameters (e.g., leg height, backrest tilt, or petal count) that can generate infinite variations of an object. However, controlling these generators is notoriously difficult. Recreating a specific object from a photograph requires manually tuning dozens of parameters, a process known as the Inverse PCG problem.
Existing solutions for Inverse PCG are often prohibitively slow, relying on Markov Chain Monte Carlo (MCMC) sampling that can take hours, or they fail to generalize to real-world imagery. DI-PCG addresses these challenges with a lightweight diffusion-based framework that predicts exact generator parameters from a single image in seconds.
Methodology
DI-PCG treats PCG parameters as the denoising target of a diffusion model. By diffusing parameters instead of pixels or voxels, the system ensures that the output is always a clean, production-ready mesh with proper topology.
The Pipeline Components
- Parameter Canonicalization: Procedural generators utilize a mix of continuous values and discrete choices. DI-PCG maps these diverse parameters into a unified, continuous space $[-1, 1]$.
- Lightweight Diffusion Transformer (DiT): The core of the system is a compact DiT with only 7.6 million parameters. This efficiency is possible because the model predicts a small vector of parameters rather than dense 3D grids.
- Foundation Model Conditioning: To handle "in-the-wild" images, the model uses DINOv2 to extract high-level semantic features. These features are injected into the DiT via cross-attention, guiding the denoising process toward the target shape.
- Synthetic Training: The model is trained entirely on synthetic data generated by the procedural programs themselves (e.g., Infinigen). This self-contained approach eliminates the need for massive, manually labeled external datasets.
Key Results and Insights
DI-PCG demonstrates significant improvements in both speed and quality over existing state-of-the-art (SOTA) methods.
- Efficiency: DI-PCG generates parameters in approximately 5 seconds, compared to the 167 minutes required by traditional MCMC sampling methods.
- Accuracy: On the ShapeNet chair benchmark, DI-PCG achieved an F-Score of 0.452, significantly outperforming models like Shap-E (0.285) and SDFusion (0.178).
- Production-Ready Output: Because the results are generated by actual procedural code, they possess clean surfaces and sharp edges. Furthermore, they remain fully editable; users can take the predicted parameters and manually refine them in tools like Blender.
Discussion and Future Work
While DI-PCG is highly efficient, it is currently bound by the capabilities of the underlying generator; it cannot recreate features (like specific ornate carvings) if the generator lacks the corresponding "knobs." Additionally, the current implementation requires separate models for different object categories.
Future research directions include expanding the framework to handle entire complex scenes and exploring the use of Large Language Models (LLMs) to automatically generate the procedural code itself, further reducing the manual effort in 3D asset creation.
Summary updated