Format Glbpolyreducer
Reducer Steps Budgets Methods FAQ
Glb Poly Reducer · Guide

Glb Poly Reducer: How to Run TRELLIS 2 and Prepare Its GLB for a Game Engine

TRELLIS 2 can turn a reference image into a textured mesh, but running it yourself takes specific hardware. I’ll start with that requirement, then walk throug

· 7 min read
Glb Poly Reducer: How to Run TRELLIS 2 and Prepare Its GLB for a Game Engine

TRELLIS 2 can turn a reference image into a textured mesh, but running it yourself takes specific hardware. I’ll start with that requirement, then walk through inspecting its GLB, reducing unnecessary geometry and checking the result in an engine.

The short version

  • To self-host TRELLIS 2, you need Linux and an NVIDIA GPU with at least 24 GB of memory; CUDA 12.4 is recommended.
  • Give it a clear image of one object, preferably from a three-quarter angle. TRELLIS 2 takes images, not text prompts.
  • It exports a textured GLB with PBR material data. Inspect the geometry, materials and dimensions before changing it.
  • Reduce a dense mesh to suit the asset’s screen size and use, then check the reduced version in your target engine.

Check the machine before downloading

Microsoft Research’s TRELLIS 2 model guide lays out the self-hosting requirements and the model’s image-to-3D workflow. The public TRELLIS.2-4B release has 4 billion parameters. Running it yourself calls for Linux, an NVIDIA GPU with at least 24 GB of memory and the model weights; CUDA 12.4 is recommended. An 8 GB or 16 GB consumer card is not enough for the full pipeline.

Check that requirement before spending time preparing inputs. Microsoft reports generation times of about 3 seconds at 512³, 17 seconds at 1024³ and 60 seconds at 1536³ on one H100. Those are hardware-specific figures, not a promise for another GPU. Higher voxel resolution can preserve more detail, but detail is useful to a game only if it remains visible after you bring the asset within its budget.

The code and weights are available under the MIT license, with separate terms applying to some rendering dependencies. Self-hosting makes sense when you need this particular model’s output, want to modify the pipeline or need a reproducible setup. If you simply need a model from a picture and lack the GPU, SupaVoxel has a separate online image-to-3D generator; it is an alternative, not a hosted TRELLIS 2 instance.

TRELLIS 2 page showing the model overview

The TRELLIS 2 page summarizes the model, its output and the hardware needed to run it.

Prepare an image that gives the model useful evidence

A single image cannot show every side of an object. The model has to infer hidden surfaces, so I choose a well-lit three-quarter view rather than a straight-on image when the back or sides matter. I keep one object clearly in frame. That gives the model a readable outline and visible depth without asking it to separate several subjects from a scene.

Think about the asset’s eventual job while choosing the picture. For a pickup, the silhouette should read at the size it will appear in play. For a close-up prop, material and edge detail may matter more. If a generated back is important, inspect it rather than assuming the unseen side matches your intent. Trying another reference picture can be more productive than polishing geometry built from ambiguous visual information.

TRELLIS 2 accepts a single image for shape generation. It also has a mode for texturing an existing mesh, but it is not a text-to-3D model. If your starting point is a written description, make or choose a reference image first.

Run TRELLIS 2 and keep the original GLB

The exact commands belong to Microsoft’s released repository; the practical sequence is straightforward:

  1. Set up the supported machine. Use Linux and an NVIDIA GPU with at least 24 GB of memory. Check the repository’s dependency instructions, keeping the recommended CUDA 12.4 environment in mind.
  2. Get the release files. Clone the repository and download the TRELLIS.2-4B weights.
  3. Generate from your chosen image. Start with the clearest single-object reference you have. Judge the resulting shape from several angles, especially where the input hid part of the object.
  4. Export and preserve the GLB. Keep this original as your source even if the eventual game asset will have fewer triangles or smaller textures.

The output is a textured mesh exported as GLB. Its material data includes base color, roughness, metallic and opacity. GLB is useful here because it packages the model for transfer and inspection. It does not mean the asset has already been reduced for real-time use, given a collider or checked in your engine.

There is a transparency detail worth catching early: TRELLIS 2 predicts opacity, but its GLB is opaque by default. If the object is supposed to show transparency, connect the alpha channel in your 3D application and verify the material again after engine import. Otherwise, it is easy to mistake a material setup issue for a generation failure.

Inspect the GLB before optimizing it

I open the untouched export in the free glTF viewer before simplifying anything. It accepts GLB, reads the file locally in the browser and shows triangles, vertices, meshes, materials, textures, file size and bounding-box dimensions. Its clay and wireframe modes are particularly useful for separating mesh problems from material problems.

glTF viewer page showing model inspection controls

The glTF viewer shows the inspection controls and file statistics to check before editing an asset.

First, orbit around the object. Look for a silhouette that collapses from an unexpected angle, gaps where a solid part should be, or surface detail that does not help the shape read. Switch to clay mode if color makes a defect hard to see, then use wireframe to understand how much geometry is concentrated in that area.

Next, record the triangle and material counts and check the dimensions. glTF defines its units in meters; the viewer reports the model’s real size. That gives you a starting point for scale, though you should still confirm how the asset appears alongside objects in your game. Finally, look at the materials under lighting. Metallic and rough surfaces should make sense for the prop, and intended transparency needs the separate alpha setup noted above.

This pass prevents blind optimization. If the shape is wrong, fewer triangles will not fix it. If the shape looks right but the material is wrong, changing geometry is the wrong first move.

Reduce geometry to a job-specific budget

Generated geometry may be built for visible detail rather than for a level containing many props. The game asset generator guide gives a useful budgeting example from SupaVoxel’s own showcase models: they are around 500,000 triangles, with one material and 2048 × 2048 texture maps. That figure describes those showcase models, not a guaranteed TRELLIS 2 output. Measure your GLB rather than assigning it that count.

Game Assets page showing the picture-to-engine workflow

The Game Assets page puts mesh reduction and texture compression between generation and engine import.

Set the budget according to how the object will appear. The guide’s examples put a small coin at a few hundred triangles, a barrel at 1,000 to 3,000 and a vehicle or statue at 5,000 to 15,000. Treat these as starting points, not rules: a prominent silhouette deserves geometry that a tiny background object does not.

Make a reduced copy in Blender and compare it with the original at the asset’s intended viewing distance. In the Decimate modifier, reduce gradually and watch curved outlines, handles and narrow features. A percentage alone is a poor goal: removing triangles is only successful if the object still reads correctly. Keep the original GLB so you can return to it if a reduction damages the shape.

Textures deserve a separate pass. The game asset guide suggests downsizing textures to 1024 or 512 for small props and compressing the GLB for shipping. A texture that carries detail visible only in a close-up need not retain the same resolution on distant set dressing. After either geometry or texture changes, reopen the exported file and check that the materials survived.

Import and check the asset where it will ship

Bring the reduced GLB into the target engine, set its scale and inspect its materials there. A browser preview is a useful diagnostic, but it cannot guarantee identical rendering in every engine. Check the object under your game’s lighting and at its usual camera distance, not only in an isolated preview.

For a static prop, add a simple collider rather than assuming the visual mesh should serve as collision geometry. Reuse the imported object as a prefab, scene or Blueprint where that fits your project. TRELLIS 2’s textured mesh is not a rig, an animation or an automatic set of levels of detail; those are separate production tasks.

If you are choosing a generator before building the asset, output needs may affect that decision. The Hunyuan 3D vs TRELLIS 2 comparison is useful when configurable face count or multiple reference views matter: Hunyuan3D 3.1 offers both, while TRELLIS 2 takes one image and sets its geometry automatically. If you have already chosen TRELLIS 2 for its output, plan to measure and reduce that output yourself.

FAQ

Can TRELLIS 2 run on a smaller consumer GPU?

The stated self-hosting minimum is an NVIDIA GPU with 24 GB of memory on Linux. Do not plan this workflow around an 8 GB or 16 GB card.

Does TRELLIS 2 export a game-ready GLB?

It exports a textured GLB with PBR material data, but you still need to inspect its triangle count, materials and scale. Reduce or compress it as the asset requires, then verify the result in your engine.

Why does a transparent object appear opaque?

TRELLIS 2 predicts opacity, but the exported GLB is opaque by default. Connect its alpha channel in a 3D application and check the imported material in your engine.

Want to try it yourself?

Try Supavoxel →

More from the blog

Get started
Get started