Abstract
3D Content Generation is at the heart of many computer graphics applications, including video gaming, film-making, virtual and augmented reality, etc. This paper proposes a novel deep-learning based approach for automatically generating interactive and playable 3D game scenes, all from the user's casual prompts such as a hand-drawn sketch. Sketch-based input offers a natural, and convenient way to convey the user's design intention in the content creation process. To circumvent the data-deficient challenge in learning (i.e. the lack of large training data of 3D scenes), our method leverages a pre-trained 2D denoising diffusion model to generate a 2D image of the scene as the conceptual guidance. In this process, we adopt the isometric projection mode to factor out unknown camera poses while obtaining the scene layout. From the generated isometric image, we use a pre-trained image understanding method to segment the image into meaningful parts, such as off-ground objects, trees, and buildings, and extract the 2D scene layout. These segments and layouts are subsequently fed into a procedural content generation (PCG) engine, such as a 3D video game engine like Unity or Unreal, to create the 3D scene. The resulting 3D scene can be seamlessly integrated into a game development environment and is readily playable. Extensive tests demonstrate that our method can efficiently generate high-quality and interactive 3D game scenes with layouts that closely follow the user's intention.
Introduction
Generating large-scale 3D scenes remains a significant challenge in computer graphics due to the scarcity of high-quality annotated 3D datasets. While AI has mastered individual object generation, creating cohesive environments often lacks the necessary design control. Text prompts are frequently too imprecise to specify exact spatial layouts. Sketch2Scene addresses these bottlenecks by using casual sketches as a primary input, transforming them into fully interactive 3D environments ready for engines like Unity or Unreal.
Methodology
The Sketch2Scene pipeline utilizes 2D generative models as a "conceptual bridge" to 3D space, bypassing the need for massive 3D scene training sets.
Sketch-Guided Isometric Generation
The process begins with a user sketch and text prompt. A pre-trained ControlNet (based on SDXL) generates a high-quality 2D image in isometric projection. This viewpoint is critical as it simplifies the 2D-to-3D mapping by factoring out complex camera poses. To accommodate "casual" or incomplete sketches, the authors introduced a Sketch-Aware Loss (SAL), which focuses the model's attention on user-drawn regions while allowing the AI to fill in background details like vegetation or terrain features.
Basemap Inpainting and Scene Parsing
To build a stable 3D world, the system must determine the terrain layout beneath occluding objects. The pipeline employs an inpainting model fine-tuned with Step-Unrolled Denoising (SUD) to "remove" foreground objects and reveal a clean "basemap." Following this, visual understanding tools like Depth-Anything and Segment Anything (SAM) are used to extract heightmaps and identify specific object instances (e.g., buildings, trees).
Procedural 3D Generation
The resulting 2D blueprints—including the terrain splatmap and object locations—are fed into a Procedural Content Generation (PCG) engine. 3D assets are retrieved from libraries like Objaverse and placed into the scene, creating a structured environment.
Results and Discussion
The Sketch2Scene pipeline is highly efficient, producing a complete 3D scene in approximately 3 minutes on a single NVIDIA V100 GPU.
Key insights from the research include:
- Isometric Advantage: Forcing generation into an isometric perspective turns a complex 3D reconstruction problem into a manageable 2D projection task.
- Inpainting for Stability: Using generative inpainting to "clean" the scene creates a more reliable foundation for 3D terrain than attempting to parse cluttered images directly.
- One-Hot Sketching: Utilizing one-hot encoding for sketch categories allows the model to handle overlapping elements and reduces training complexity compared to standard RGB sketches.
Conclusion
Sketch2Scene provides a novel path for rapid 3D environment prototyping. While current limitations include potential error propagation across the multi-stage pipeline and reliance on fixed asset databases, future work will explore unified models for simultaneous modality generation and diffusion-based texture synthesis to enhance environmental diversity.
Summary updated