602 GB
10,073 files
Updated 19 days ago
Name
Size
converters
lib
megascans
python
stages
README.md1.89 kB
xet
pack.mjs3.97 kB
xet
package.json404 Bytes
xet
query.py6.4 kB
xet
README.md

Asset optimizer

Turns 3D assets you downloaded yourself into GLB for the web, games and engines, on your own machine. It reads Megascans exports from Fab (glTF folders, FBX with loose maps, zipped surface sets) and other glTF or FBX assets.

Install

  • Node 20 or newer, then npm install in this folder
  • Blender 4.2 or newer, for FBX input
  • KTX-Software (toktx), for the KTX2 tier
  • uv, for the collision hulls

Point the tool at programs that are not on your PATH:

Variable Program
BLENDER_PATH Blender executable
TOKTX_PATH toktx
GODOT_PATH, CHROME_PATH, ENGINE_ROOT only for the load checks (Godot 4, Chrome, a 67js checkout with Playwright)

Run

node megascans/optimize.mjs "D:/Downloads/assets" --out "D:/Downloads/assets-optimized" --no-check

Each folder or zip under the input becomes one asset. The output pack/ folder holds:

Folder Tier
objects/ web: meshopt geometry, WebP textures
objects_ktx2/ KTX2 textures for GPU memory
lods/ 50, 20 and 6 % of the triangles
mobile/ small textures, light geometry
engine/ full detail for Unreal, Unity, Godot
collision/ convex hulls

Texture sets become a plane of the scanned size (2 m when the export does not say). Drop --no-check to load every file in three.js WebGL, WebGPU, 67js, Blender and Godot afterwards.

Find assets

python query.py ../metadata.parquet "wooden crate, 0.5 m, game tier"

Needs pyarrow for the parquet file.

Licence of what you make

The output keeps the licence of the asset you fed in. Megascans stay under the Fab licence: use them in your own projects, never share the files. The tool refuses to upload Megascans output.

Total size
602 GB
Files
10,073
Last updated
Nov 10
Pre-warmed CDN
US EU US EU

Contributors