Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Asset Forge

Create your own 3D models and 2D sprites! 路 By Kenney

Mesh instancing in GLTF exports to optimize file size

A topic by andrewmunro created Jul 20, 2020 Views: 245 Replies: 2
Viewing posts 1 to 3

We are using GLTF files to build modular golf courses. When I export a GLTF, the file gets quite large (mbs) even when I use only a few different meshes. You can test this easi

I haven't done much research, but I believe this could be optimized quite significantly by referencing the same mesh rather than copying the vertices for each object.

Ok done a little research, I can use this tool in the meantime to optimise my files: https://github.com/donmccurdy/glTF-Transform/blob/master/docs/SCRIPTING.md

This reduces my file from 2.5mb to about 500kb, and that size will not grow much unless I add more unique meshes 馃帀

That's good to hear you found a solution! I'll take another look at the GLTF exporter and see if mesh instancing can be implemented, it would indeed be a good optimization.