QUICK ANSWER

In a ComfyUI 3D game asset workflow, count triangles in the exported file, not in the node preview. Then cut the mesh down to a triangle budget, unwrap and bake textures, and reopen the export in a DCC tool before it goes near an engine. In one documented TRELLIS.2 run, a raw 1,175,882-triangle GLB with no UVs was reduced to 19,738 triangles with baked textures and checked in Blender and Houdini. The run did not test collision, LODs, deformation or engine import.

Here is how to turn a ComfyUI 3D model into a game asset with a sensible triangle count. Treat the raw generation as a draft. Reduce it to a budget, unwrap and bake it, then reopen the exported file in Blender or another DCC tool before you accept it. This post turns one author's documented TRELLIS.2 run into a reusable checklist. Each check is paired with what the Blender and Godot docs say, and the post is clear about what the source never tested.

This guide starts after generation. For node setup and the image-to-3D steps, see our earlier Hunyuan3D-2 in ComfyUI workflow post.

Why isn't a good preview an accepted asset?

A ComfyUI node preview can look fine while the exported file is heavy, has no UVs, or is missing textures. Alicia Lu's DEV Community write-up shows how big that gap can be. According to the article, the raw TRELLIS.2 GLB was 20,790,420 bytes. Blender counted 1,175,882 triangles and found no UV layer.

The author treats that raw mesh as a source of shape and detail, not as something to ship. That framing drives everything below. The dense mesh stays around to bake from, and a lighter mesh becomes the deliverable.

What did the source run do, and what are its limits?

The article says the run used Comfy's Pixal3D & TRELLIS.2 Image to Model template with a viking_wolf_rune_axe.png input. The author changed the template to fit a 16 GB test: the 512 shape stage stayed, and the 1024/1536 upsample branch was skipped. All three sampler seeds were fixed to 42.

Keep these limits in mind before you reuse any numbers:

  • The post carries an AI-assisted disclosure.
  • The author says the result is not an unmodified, highest-resolution template output.
  • The 34.38 s cleanup time reused cached nodes. The author warns against quoting it as a cold-generation time.
  • No peak VRAM figure was captured.

Read it as one documented run, not a benchmark. The method carries over to other projects. The exact figures may not.

Step 1: How do you keep the raw mesh and record the counts?

  1. Save the raw export before any cleanup. Do the cleanup on a separate branch or file. The author keeps the raw mesh for later normal bakes.
  2. Record triangle counts, not vertex counts. According to the article, Houdini read 556,025 points and Blender read 554,859 vertices for the same file, but both agreed on the triangle count.
  3. Note the importer and its settings next to each count, so later comparisons are like for like.

Vertex counts drift for a documented reason. The Blender glTF 2.0 manual says glTF export can raise vertex counts, because discontinuous UVs and flat-shaded edges split vertices. Triangles are the steadier number to track across tools.

Step 2: How do you reduce a mesh to a triangle budget?

The article lists this cleanup chain inside ComfyUI:

  1. Remesh (UDF, resolution 256, 2 smoothing iterations)
  2. Decimate (requested 20,000 faces)
  3. Smooth Normals
  4. Unwrap (1024 atlas, automatic charts)
  5. Normal bake from the raw mesh
  6. Texture bake
  7. AO bake

The 20,000-face request produced 19,738 triangles, so treat a decimate target as a budget, not an exact count. The article reports the reduced GLB at 4,548,732 bytes, with UVs and embedded textures. That is roughly a fifth of the raw file's size, and it now carries the UVs and textures the raw file lacked.

Decimating in Blender instead

If you would rather reduce the mesh in Blender, the Decimate modifier page says Collapse Ratio is the share of faces kept. A value of 1.0 leaves the mesh unchanged and 0.5 keeps about half. The manual says the ratio is calculated on triangles. To get from about 1.18 million triangles to roughly 20,000, a ratio near 0.017 is the starting point. Expect the result to land near that budget, not exactly on it.

The manual also says Decimate is meant for dense meshes from sculpting or subdivision, not for carefully modelled ones. Generated meshes look like the first case: dense, uniform and without deliberate edge flow.

Choosing the number

The source gives no universal triangle budget, and neither do the docs cited here. Set yours from your target platform, how many copies of the prop will be on screen, and how close the camera gets. Our Blender tag page collects related guides.

Step 3: How do you check UVs, textures and materials?

According to the article, the automatic unwrap made 489 charts in a 1039 × 1026 atlas. The author says plainly that this is automatic output and does not show good seam placement. Many small charts make hand texture edits harder, and they also split vertices on export, which ties back to the vertex-count note in Step 1.

The author's material checks:

  • Base color: look for baked-in lighting, such as shadows or highlights painted into the albedo.
  • Roughness and metallic: move or change the lights and confirm the surface responds as a real material, not as a flat image.

For channel packing, the Blender glTF manual says glTF reads roughness from the green channel and metallic from the blue channel. If a packed texture looks wrong after import, check that the channels match before you suspect the bake.

Step 4: Why reopen the exported file in a DCC tool?

The article's key check is a reopen test. Blender reopened the exported GLB and reported 9,792 vertices and 19,738 triangles. The author rendered from that imported file, not from the ComfyUI preview.

According to the author, this catches problems the preview hides:

  • missing image payloads
  • unsupported material channels
  • a wrong pivot
  • an export that differs from what the preview showed

A second tool raised a separate issue. The article reports that Houdini's glTF SOP warned that embedded images could not be used as texture filenames. The author fixed it by re-exporting from Blender as glTF Separate.

The Blender manual describes glTF Separate as a .gltf file, a .bin file and texture files. It says you must keep and share all of them together. According to the article, the .gltf descriptor alone was 2,202 bytes, so the geometry and images live in the other files. Move or commit only the .gltf and the asset arrives broken.

Step 5: How do you set scale, orientation and pivot?

The article says the author scaled the longest dimension to 0.60 m and placed the lower Y bound on the ground. Final bounds were about 0.5994 × 0.6000 × 0.1021 m. Clean and Normal SOPs in Houdini followed and left 19,721 primitives, a change of 17 triangles. The author says this is not a topology-quality score.

For the engine side, the Godot docs on importing 3D scenes recommend glTF 2.0 and say both .gltf and .glb are fully supported. That makes either export usable for Godot, though the source never imported the prop into Godot or any other engine. More engine-side guides are on our Godot tag page.

The acceptance checklist

The author's six checks are below, with a pass/fail column for your own asset and the source for each check. The last row and the engine import are checks you run yourself. The source does not cover them.

#CheckWhat to confirmPass/failSource
1Reopen in the target appImported file matches the preview; textures loadArticle; Blender glTF manual
2Record counts and dependenciesTriangles, importer settings, all files of a Separate exportArticle; Blender glTF manual
3Size, orientation, pivotReal-world scale, correct up axis, pivot on the groundArticle
4Base color and PBRNo baked lighting; roughness (G) and metallic (B) respond to lightsArticle; Blender glTF manual
5Detail at camera distanceBaked normals hold up at gameplay distanceArticle
6Collision, LODs, performanceCollision shape, LOD chain, frame cost in your sceneArticle lists it; reader runs it

Who this result is for

Reading the sources together, this kind of output fits static background props and blockouts. The author says the axe is not a hero prop, not ready for deformation, and does not have clean subdivision topology. If you need any of those, plan on retopology or a hand-modelled asset. For another approach to low-poly assets, see our specimen on 3D-Agent, a Blender addon that writes Blender Python.

What did the source not test?

The article lists these gaps:

  • It did not place the asset in the author's interactive garden scene.
  • It did not build collision or LODs.
  • It did not run animation or deformation acceptance.
  • It did not compare paid partner models.

The source also never imported the prop into Unity, Unreal or Godot. Any engine-side result, such as material conversion, import scale or performance, is unverified here.

One failure is worth noting. According to the article, the first API submission failed because the author encoded the dynamic sign_mode input wrongly. The author calls this an API-prompt error, not a TRELLIS.2 failure. If you drive ComfyUI through its API, check how dynamic inputs are encoded before you blame the model.

For broader context on running image-to-3D generators locally, see our specimen on local 3D asset generation and Claude tools, or browse more how-tos in Experiments.

FAQ

How many triangles should an AI-generated 3D model have for a game?

Neither the source nor the docs cited here give a universal number. The documented TRELLIS.2 run aimed for 20,000 faces and got 19,738 triangles for a static background prop. Base your budget on your target platform, how many copies appear on screen, and how close the camera gets.

Why does my ComfyUI 3D model have no UVs or textures?

Raw image-to-3D output often has no UVs. In the documented run, the raw TRELLIS.2 GLB had no UV layer at all. The author added an Unwrap step, then normal, texture and AO bakes, to produce a textured GLB.

Should I use GLB or glTF Separate to import into Houdini or an engine?

Godot's docs say both .glb and .gltf are fully supported. In the source run, Houdini's glTF SOP warned about embedded images, and re-exporting from Blender as glTF Separate fixed it. If you use Separate, the Blender manual says to keep the .gltf, .bin and texture files together.

Does the decimate target give an exact triangle count?

No. In the source run, a 20,000-face request gave 19,738 triangles. Blender's manual says the Decimate Collapse Ratio is the share of faces kept and is calculated on triangles, so expect to land near your budget, not exactly on it.

Can I use a TRELLIS.2 mesh for animation?

The source author says the cleaned prop is not ready for deformation and does not have clean subdivision topology. Animation and deformation were not tested, so plan on retopology if the asset needs to bend or be rigged.

SOURCES