A painted 3D treasure chest made from one picture running in the Godot game engine
Claudia Perez
ComfyUI

Turn One Picture into a 3D Game Asset Locally (Pixal3D, TRELLIS.2, Godot)

Promptus
October 30, 2026
promptus ai video generator

Turn One Picture into a 3D Game Asset Locally (Pixal3D, TRELLIS.2, Godot)

Short answer: Make one clean picture, run it through the Pixal3D / TRELLIS.2 CosyTemplate in Promptus, and you get a painted 3D model as a GLB. Lower three settings and it takes half the time. Then cut the triangles, set the real size and export a GLB, and it runs in a game engine. No 3D experience needed, and running locally costs no credits.

1. Make it 3D

  1. In Promptus, open CosyTemplates, search Pixal3D, pick version two, and choose Load in ComfyUI. The first load may download about 14 GB of models.
  2. In Load Image, click the file name and pick your picture. The template removes the background for you.
  3. Set the model switch: false is Pixal3D, true is TRELLIS.2.
  4. Press Run. The working node lights up as it goes left to right.

The finished model appears in the 3D preview and is saved as a GLB in the ComfyUI output folder, inside 3D.

How it works

  1. Cut-out: BiRefNet separates the object from the background.
  2. Camera: MoGe estimates where the picture was taken from.
  3. Blocks: a rough shape, like building it in Lego.
  4. Refine: smaller blocks, then a smooth surface at up to 1536 resolution.
  5. Paint: colours all the way round — even the back it never saw.

Better pictures

The 3D model only sees your picture, so the picture does half the work. Rules: one object, centred, on a plain background; the whole object in frame; soft even light; a three-quarter view. In Playground, switch Z-Image Turbo to Local (online uses credits) and write the rules into the prompt: a wooden treasure chest, one object centered, 3/4 view, whole chest in frame, on a plain light gray background, soft even studio light. It took 17 seconds.

Pick a model, and make it faster

RunTimeResult
Pixal3D10 min 54 sFully painted; front lines up with the picture
TRELLIS.2 (Microsoft)12 min 7 sFully painted; very close at this size
TRELLIS.2, fast settings5 min 27 s11 MB instead of 60 MB, under 20,000 triangles
Hunyuan3D 2.1 (online, cloud GPU)About 70 s, 206 creditsPlain white mesh, no paint
Fast settingDefaultSet to
Decimate Mesh700,00020,000
Texture Resolution40962048
TRELLIS.2 upsample target resolution15361024

Hunyuan3D 2.1’s licence doesn’t cover the UK, the EU or South Korea — check it before you use it. On a small card or a Mac, use Run online from the template menu; it uses credits.

What game-ready means

  • Triangles: the raw chest had almost 700,000; a game redraws every one each frame. Decimate to about 20,000 — 97% fewer, same shape.
  • UV map: the model unfolded flat so a picture can wrap round it. The template makes it.
  • PBR maps: base colour (paint), roughness (shiny or matte), metallic, and a normal map that fakes small bumps.
  • Real size: GLB works in metres — this chest is 60 cm wide.
  • All of it in one GLB.

Clean-up in Blender

  1. File › Import › glTF and pick the GLB. Turn on Overlays › Statistics: 696,717 triangles.
  2. Add Modifier › Generate › Decimate. Ratio = 20,000 ÷ 697,000 ≈ 0.0287 → 19,995 triangles. Ctrl+A over the modifier to apply.
  3. Press N, scale to 60 cm wide, move it onto the floor, then Ctrl+A › All Transforms.
  4. File › Export › glTF, format GLB.

With the fast settings the chest is already about 20,000 triangles, so you can skip the decimate.

Into the game: Godot

  1. Create a project, copy the GLB into the project folder; Godot imports it and pulls out the three texture maps.
  2. Make a 3D scene, drag the chest in, set its position to zero.
  3. Add the sun and sky (DirectionalLight and WorldEnvironment) and a Camera3D; Align Transform with View.
  4. Attach a script with rotate_y(delta * 0.6) in _process, save and press F6.

Mistakes and fixes

MistakeFix
Hunyuan made a white mesh with a round floor discUse TRELLIS.2 or Pixal3D, or cut the disc off in Blender
A 30 MB GLB, because the template paints at 4KSet Texture Resolution to 2048, or shrink it with glTF-Transform (30 MB → just over 3 MB)
Clicking the picture in Load Image opened an upload windowClick the file name and pick from the list
700,000 trianglesAlways decimate before export

Next: make a rigged character that walks in Unity. Models: Pixal3D (MIT), TRELLIS.2 (MIT); tools: Blender, Godot. Download Promptus.

Frequently Asked Questions

How do I turn one picture into a 3D model?

In Promptus, open the Pixal3D / TRELLIS.2 CosyTemplate with Load in ComfyUI, pick your picture in Load Image, choose the model with the switch, and press Run. It saves a painted GLB in the ComfyUI output folder under 3D.

Pixal3D or TRELLIS.2?

On the same chest picture both came out fully painted and looked very close. Pixal3D took 10 minutes 54 seconds and TRELLIS.2 took 12 minutes 7 seconds. Pixal3D is designed so the front lines up with your picture.

How do I make image to 3D faster?

Set Decimate Mesh to 20,000, Texture Resolution to 2048 and the TRELLIS.2 upsample target resolution to 1024. That cut one run from 12:07 to 5:27 and the file from 60 MB to 11 MB.

What makes a good picture for image to 3D?

One object in the middle, a plain background, the whole object in frame, soft even light and a three-quarter view so the model sees the front and side.

What does game-ready mean for a 3D model?

A low triangle count (about 20,000 for a prop), a UV map, PBR maps for colour, roughness, metal and normals, real-world size, all in one GLB file.

Written by:
Claudia Perez
Claudia Perez is a tech creator and founder at Promptus. She loves to design and share expressive image workflows. Her work focuses on visual storytelling, refined aesthetics, and ComfyUI workflows.
Try Promptus Cosy UI today for free.
ai image generator

AI Generation Platform

Promptus AI is the easiest way to generate realistic photos, videos, 3D and ComfyUI workflows with artificial intelligence.

Our AI photo generator produces lifelike portraits, product images, and creative concepts in seconds, making it the perfect tool for creators and brands.

promptus ai video generator