Closed Korace0v0 closed 1 year ago
Hi, thanks for diving into our work! Hopefully the diagram of a 2D voxel grid below answers your doubt.
First of all, you can think of next_voxel_boundary
as an intermediate quantity to computing tMax
values. tMax
is just storing the time to hit the next voxel boundaries in the x, y, z directions. "Time" is referred to as distance in the code. When you mark the voxel indices and the boundary values as in the figure above, the following observations are clear:
I think the confusing part is that we are conflating the indexing of voxels with the indexing of the voxel boundaries. For more in-depth understanding, I usually find this blogpost helpful: https://github.com/cgyurgyik/fast-voxel-traversal-algorithm/blob/master/overview/FastVoxelTraversalOverview.md. Let me know if something is not clear!
Many thanks! I understand it. next_voxel_boundary
is just an intermediate quantity used to calculate tMax
, and has nothing to do with the voxel index (vx, vy, vz)
that the ray will reach. I just figured it out. Thanks for your kindly help again!
Hi, thanks for your great work. I noticed that in dvr.cu , only setp>0 will be considered as the next voxel border. Will this be okay since in the Lidar axis, there are 360 directions which also contains the negative directions of rays? Looking forward to your help.