Skip to content

Guides

From your model to Godot: one export, ready to play

Get a PetalMesh asset into your game engine with lower-poly versions, packed textures and collision in one export, with Godot, Unity and Unreal settings.

For artistsBy PetalMesh team5 min read1,039 words
A retro tube radio with dial, grille and knobs, a 7.7k triangle asset built in PetalMesh.
On this page

When your asset looks right in PetalMesh, one export gets it ready for your game engine: it fits the triangle budget you pick, makes lower-poly versions for distance, packs the textures the way the engine reads them and adds collision. This post is a Godot walkthrough, and it also covers the Unity and Unreal settings.

This guide walks through what happens between "it looks right in the viewport" and "it works in my game".

Two choices: where it runs and which engine

Open the Export dialog from the top bar and pick Game engine package as the format. Two menus then matter.

Target sets the budget, by where the game runs. They are separate from the engine on purpose: a phone prop for Unreal and a hero prop for Godot need different budgets but the same packaging.

TargetTriangles (closest version)Lower-poly versionsTexture atlasMaterialsCollision
Phone / tablet4,00050 % and 25 %512 pxup to 2one box
Web browser12,00050 %, 25 % and 10 %1024 pxup to 4up to 6 convex shapes
PC / console40,00050 %, 25 %, 12 % and 5 %2048 pxup to 8up to 16 convex shapes
Hero asset (close-ups)150,00050 % and 20 %4096 pxup to 16up to 32 convex shapes

The web budget is soft: the checker only warns between 12,000 and 100,000 triangles and fails above 100,000.

Engine sets the conventions each engine expects on import: which way is up, the unit size, how normal maps are stored and how files are named.

  • Godot: GLB, Y up, metres. Textures named _BaseColor, _Normal, _ORM (one image holding ambient occlusion, roughness and metal) and _Emissive. Collision uses the name endings Godot reads on import.
  • Unity: FBX, 1 unit = 1 metre, _Albedo, _MetallicSmoothness, _Normal, _Occlusion, _Emissive and _Collider names. The HDRP pipeline has its own preset.
  • Unreal: FBX, Z up, 1 unit = 1 centimetre, normal maps with the green channel flipped, T_<Name>_BC, _N, _ORM, _E, an SM_ mesh prefix and Unreal's collision prefixes.
  • Generic: plain glTF conventions.

The export guide has every format and option.

What the export does, step by step

  1. Repair and freeze. Fix mesh problems the checker can fix, apply the transform and put the pivot at the base centre, so the asset sits on the floor in your engine.
  2. Fit the closest version to the budget. Reduce the triangle count to the target while keeping UV seams and material borders.
  3. Even out the UVs. Even texture detail across the model and a packed layout.
  4. Ship the textures. The full set from your paint layers, or, for an unpainted asset, the material colours baked into one colour atlas.
  5. Lower-poly versions and collision. Build the distance versions (often called LODs) at the target's ratios and a collision shape: automatic, none, a box or convex shapes.
  6. Write and check. Write the files plus a small manifest, then read the result back in and check it.

Before you export, the Game chip in the status bar runs the same checks without changing anything. It shows how many need fixing and names the worst one in its tooltip.

The pieces on their own

You do not have to use the all-in-one package. The same steps exist separately:

  • Build only the lower-poly versions, at 50 %, 25 % and 12.5 % by default. UVs and material slots survive; painted layers and named regions do not, and the whole chain is one undo step.
  • Export only the texture maps, with presets for glTF, Unreal, Unity, Unity HDRP, Godot and stylized work, as PNG, JPEG, 16-bit PNG, TGA, uncompressed DDS or EXR, optionally per texture tile.
  • Define your own channel packs in the Export dialog, for example metal, roughness and smoothness in the red, green and blue channels.
  • Leave hidden objects out of the export (the default in the dialog).
  • Export OBJ with quads kept, or convert the scene to FBX, USD or USDZ.

An AI assistant can run every one of these too; the command docs list them for developers.

From a sculpt specifically

A sculpt is usually far over any game budget, so the path from sculpt to engine goes through a clean low-poly model and a bake first, as covered in the sculpting guide and the painting guide. A typical order: reduce or retopologise to a low-poly model, unwrap it, bake normal, ambient occlusion and curvature from the sculpt onto it (high-to-low bake guide), paint on top of the bakes, then export the package. The automatic reduction keeps seams and borders, but it is no substitute for a deliberate low-poly model on an organic shape.

What the export writes

The FBX and USD conversion keeps one material per object and drops rigs, animation and shape keys, so for a rigged character, GLB is the format to use today.

Why this post uses Godot

Godot is free, takes GLB directly and carries rigs and animation in that one file, which makes it the simplest path to follow. Godot also makes its own distance versions on import, and the Godot preset relies on that.

FAQ

Can I export to Unity or Unreal today?

Yes. The presets set the axes, units, normal map style and texture names each engine uses. Look at scale and materials on your first asset.

Does the game export change my original model?

The package steps work on the model in your scene, including repair and freeze, so save your project first.

What about texture compression?

Texture compression is not supported. PNG, JPEG, TGA, EXR and uncompressed DDS are written; KTX2, Basis and compressed DDS are not.

Which format should I pick?

For Godot, the game engine package as GLB. For a rigged or animated character in any engine, GLB. For a static prop going to Unity or Unreal, the game engine package with that engine's preset (it writes FBX).

Share this post

Discuss

There is no comment thread for this post yet. Corrections are welcome through the contact page.

Written by PetalMesh team

Engineering

The people building PetalMesh, a browser-first game-asset studio.

Try it yourself

PetalMesh is an early-access prototype that runs in a WebGPU browser tab. This link opens the editor with the classic start cube scene.

Get new posts by email

The mailing list is not open yet. Until it is, follow the blog with RSS, Atom or JSON Feed.

Feeds: RSS · Atom · JSON Feed