sxyu / svox2

Plenoxels: Radiance Fields without Neural Networks
BSD 2-Clause "Simplified" License
2.79k stars 359 forks source link

How many samples per ray? #1

Closed MultiPath closed 2 years ago

MultiPath commented 2 years ago

Hi, thanks for sharing this amazing work. I tried to search how many samples you have used for each ray in the paper, however, I could not find anything related to that. I also checked your cuda kernel, and it seems that you have a dynamic number of samples on each ray. In that case, how do you pace along the ray? Could you confirm about that? Thank you so much! image

sxyu commented 2 years ago

Hi, in reality the number of samples is based on the voxel size. There is a config option called step_size which defaults to 0.5. We simply take steps of this size (relative to the voxel size) along the ray until we exit the grid. For example, if the voxel grid has resolution 512 and we are using the radius-1 ball bound for the inner scene, for example, there will be 512/0.5 = 1024 samples