Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 4 min read How-to mediumAdept

Practical 3D Asset Generation: A Step-by-Step Guide

A low-effort pipeline turns a text prompt into a usable game asset by leaning into the forgiving PS1 aesthetic. Shap-E on a Hugging Face Space generates the mesh, and Blender's Decimate modifier cuts it to a low poly count (ratio around 0.02). The Dream Textures addon with the texture-diffusion model then creates a seamless Stable Diffusion texture, which is applied via Smart UV Project. The result is exported as FBX into Unity, where vertex-lit shading, fog and glitchy post-processing complete the retro look.

Assumes: Blender basicsUV mapping3D materials

Related posts

  • 3D Asset Generation: AI for Game Development #3

    Hugging Face easyNovice

    As of early 2023, text-to-3D generation is not yet practical for game development. Approaches like DreamFusion, CLIP-Mesh, CLIP-Forge, CLIP-NeRF and Point-E mostly rely on view synthesis via NeRFs rather than producing meshes. NeRF-to-mesh conversion, as in NVIDIA's instant-ngp, yields assets that, like photogrammetry output, need heavy manual cleanup before they are game-ready, so a five-day farming game uses colored cubes instead. Two likely paths forward are better mesh generation and rendering NeRFs directly in-engine.

  • Converting Vertex-Colored Meshes to Textured Meshes

    Hugging Face mediumAdept

    Vertex-colored meshes, as produced by generative 3D models like InstantMesh, can be converted to UV-mapped textured meshes by generating a UV atlas with xatlas, rasterizing each face into an upscaled texture buffer via point-in-triangle tests and barycentric color interpolation, then cleaning holes with OpenCV inpainting, median filtering, Gaussian blur and LANCZOS downsampling. The result is exported as a glb with a PBR material via trimesh, and the steps are packaged in a small InstantTexture Python library. The output still has visible artifacts and falls short of production-quality UVs and textures, so it suits quick conversions rather than final assets.

  • 2D Asset Generation: AI for Game Development #4

    Hugging Face mediumAdept

    Stable Diffusion's Image2Image mode can be used as one step in a conventional 2D art workflow rather than a replacement for it: rough hand sketches are fed in, the output is painted over in an image editor, and the result is fed back in. Denoising strength sets how far the output strays from the input. A corn icon was produced in under 10 minutes by starting at 0.8 for exploration and dropping to 0.6 for refinement. A scythe icon was harder because training data skews toward weapons. That kind of bias can be countered with prompt engineering and negative prompts, or with customization techniques such as DreamBooth, textual inversion and LoRA.

  • How to host a Unity game in a Space

    Hugging Face mediumAdept

    A Unity game can be hosted as a playable demo on Hugging Face Spaces by building it for WebGL and pushing the output to a Static HTML Space. The steps: create a Static HTML Space, clone it with Git, switch Unity's build target to WebGL, optionally apply the Hugging Face WebGL template, set Compression Format to Disabled, build, copy the build files into the repo, track Build/* with Git LFS, and push.

  • The Definitive Fine-Tuning Guide for 3D Generation Models

    Hugging Face hardMaster

    TRELLIS.2, an image-to-3D model built on sparse O-Voxel structured latents, can be specialized with LoRA adapters on just the stages that control shape: the dense sparse-structure flow DiT (rank 8, attention and MLP) and the sparse shape flow DiT (rank 16, attention), about 9.3M trainable parameters in total. The texture flow DiT stays frozen because the dataset's diffuse maps bake in lighting and would teach wrong material targets and risk catastrophic forgetting. Using 188 footwear objects from Google Scanned Objects to fix inaccurate shoe soles, the guide supplies preprocessing (Blender renders 16 views per object, about 1 hour on an A100) and training Docker containers that run on Hugging Face Jobs or locally, with resumable checkpoints and Trackio monitoring.

The quest for software engineering knowledge.

Look:
Layout: