r/devblogs • u/dylaninfinitus • 12h ago
tech & code From 13,302 mesh renderers to 131 mesh segments in Unity
Hello again! A couple of weeks ago I shared a bit about how my work with CAD models and digital twins led me to develop Mesh Engine, my first Unity Asset.
I thought I'd share a little more of the plant demo, as the numbers in this example are quite interesting.
The original plant contains 13,302 mesh renderers. By grouping the existing geometry by location, I've managed to bring that down to 131 mesh segments across 7 spatial regions. That's less than 1% of the original renderer count, without simplifying the geometry as part of the partitioning process.
In this clip, I show all 7 regions separately before taking a closer look at the region containing the pumps. That region alone contains 23 mesh segments and one of those meshes contains the casings from both blue pumps.
I think it's pretty cool to see how differently the geometry can be organised when preparing a CAD model for use in Unity, compared to how it was originally assembled.
Being able to explore the results visually like this is one of the best parts of the workflow.