Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics

Asset Forge

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

Optimised model import in Unity

A topic by simonwittber created May 31, 2018 Views: 186 Replies: 3
Viewing posts 1 to 3

I've created an asset post processor for Unity,  which optimises models created with Asset Forge. The number of draw calls is greatly reduced, and the model is modified so that it will work with dynamic and static batching. Using some very simple examples, I reduced a 28 draw call model to 4 draw calls.

That is amazing, thanks for creating this! I'll share it on Twitter so more people can check it out. :)

I've just fixed the UV combining but still need to work out how to combine the normals and preserve the soft/hard edges.

I've also got an idea for another importer, which will do the same things, but also convert materials into vertex colour values, so that a shader can then use those values in a single material. This would reduce any model from AssetForge to a single draw call, at the expense of some extra configuration inside Unity.

This is a bit more customised, it has some caveats, but will reduce imported models to 1 draw call. Uses an object space noise shader in place of AF textures.