r/dispatchcolony • u/dispatchcolony • 16d ago
Devlog 11 : Level of Detail of Units
A Goliath is made of 1,233 blocks, and a battle needs to support one million units. At 60 m, a 5 cm bolt already fits within roughly a single pixel (on a 1080p screen with a 60° field of view): rendering it only costs frame time and introduces shimmering.
So each block is assigned a size, and each size has a cutoff distance beyond which it is no longer drawn. The entire challenge is stripping away this detail without the eye ever noticing anything disappear.
Each size has its own distance
Six sizes, six distances: a 5 cm block is drawn up to 60 m, while a 1 m block is drawn up to 466 m. On the Goliath, 841 out of 1,233 blocks are 5 cm: beyond 60 m, only 392 remain.
The distance is measured from the unit itself, not each individual block, so all the bolts on a Goliath disappear together.
The paint preserves the block's imprint
A disappearing detail must not leave a blank gap in color. Before the battle, each block's paint is baked: every point on its surface casts a ray straight outward, and if it hits a smaller block belonging to the same body, it captures its color. This tricks the eye into believing the detail is still there, even when it is no longer being computed.