Jump to content
  • Advertisement
Sign in to follow this  
Tangletail

How do you efficiently Voxelize a scene?

This topic is 928 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This is a really difficult thing to figure out. I know that Nvidia had made mention of a very neat technique that does it on a per triangle basis.

Geometry buffer, Determine the dominant axis.
Fragment Buffer, Render the depth of the fragment.

 

 

But an entire scene is loaded with triangles. And rendering it to a single voxel texture seems like that there would be a lot of overdraw.

Edited by Tangletail

Share this post


Link to post
Share on other sites
Advertisement

Original paper: https://research.nvidia.com/publication/octree-based-sparse-voxelization-using-gpu-hardware-rasterizer

 


But an entire scene is loaded with triangles. And rendering it to a single voxel texture seems like that there would be a lot of overdraw.

There is little overdraw per 3D voxel compared to a 2D pixel, but you still need to handle it.

For AO you can just set a single bit per voxel with atomic or.

For GI you need to sum all fragments per voxel and increment a counter for the final average. To use atomics you need to convert colors to integer.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!