Jump to content
  • Advertisement
TBWorkss

3D Confused on GPU voxelization

Recommended Posts

Hello everyone,

I am planing to implement GPU voxelization in Unity3D. I feel I may misunderstand something. I read the article https://developer.nvidia.com/content/basics-gpu-voxelization . It is said "2. Then you rasterize the transformed primitive using a viewport of the same dimensions as one of the 2D projections of the voxel grid. Because the orthogonal viewport frustum can cover the voxel grid exactly, and a rasterized pixel position in the render target and its depth value correspond X, Y and Z components of the voxel grid."

I am so confused on the description above. A orthogonal camera must have its width and height. What if my orthogonal viewport frustum cannot cover my whole scene? What will happen if a vertex is outside the frustum, and it is multiplied by a projection matrix(UNITY_MATRIX_P)? What if an object is behind my orthogonal camera? How can they be voxelized?

I really appreciate any help.

Share this post


Link to post
Share on other sites
Advertisement

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Advertisement
×

Important Information

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

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!