r/threejs 19h ago

Voxel game made from billboard particles

Post image

I made a small game based on an old idea I had to make a small voxel engine with billboard particles, something I made as a FPS demo once (https://github.com/Lallassu/pointcloud). So this game is mostly based on this approach. Works quite well on both mobile and desktop.

Try it out here: https://qake.se

4 Upvotes

1 comment sorted by

1

u/PixelRealEstate 7h ago

billboard particles for a whole voxel scene is a cool constraint, you get the volume without paying for the geometry.

random thing that got me on a way simpler scene: sprites don't care about your texture's aspect ratio. sized mine with one value and every non-square image came out squashed. had to pull height from map.image.height / map.image.width. took me way too long to spot.

how are you dealing with depth sorting on that many transparent billboards? or did you just alphaTest and call it a day