GPU Voxelization

Hi fellow Unity devs!

I’ve recently taken an interest in Graphics programming (for Unity) and was wondering if anybody had any advice on GPU Voxelization in Unity?

Reading through the NVidia guide makes the concepts pretty easy to understand, but the Unity implementation is a bit beyond me. Essentially, I need to write a 3D texture from a camera.

I’m assuming you’d need an Image Effect attached to an axis-aligned camera at the edge of your scene, which outputs into a ComputeBuffer. Is that right? How would you even link a ComputeBuffer to the Camera in that fashion?

Any advice would be appreciated. I’m not looking for anybody to provide code, just a nudge in the right direction.

Thanks for your time.

I cant help much but personally I would start a little simpler eg voxelize a single mesh rather than entire scene.

This isnt a bad place to start:

https://github.com/mattatz/unity-voxel

1 Like

SEGI being open source now has a GPU voxelizer you can look at.

https://github.com/sonicether/SEGI

1 Like