Sparse Voxel Octree Ray Tracing in Unity - Part 2 - Collision and Terrain
An update to the previous video.
- Collision is now working, player can collide with every individual voxel
- Terrain now generates with dirt underneath, all voxels can be modified
Features:
- Modifyable Sparse Octrees that store the data
- Uses Compute Shaders that traces through the sparse octrees
- Renders to GBuffers and depth buffer for post processing, can be combined with regular meshes
- Early Z-Testing and Front to Back sorting
- Collision detection
- Infinite chunk generation using simple perlin noise
- Raycasting on voxels (painting / adding / removing)
- A vizualizer to see the amount of steps each pixel takes
- Uses a seed for generation and serializes changes to a save folder
- Job System / Burst compiler for sorting / generating / loading
Music from FreePD