iakov.dev

Automatic voxelisation of a 3D model

· 1 min read

I’ve been playing with automatic voxelisation of a 3D model, using the tank for my new game as the test.

The original model:

The original polygonal tank model

The model after voxelisation:

The same tank after voxelisation into a 50x50x50 voxel field

I voxelised it into a 50x50x50 voxel field, so the resolution definitely needs to go up. The model is rasterised into the voxel field one polygon at a time, in a similar way to the 2D scanline algorithm.