nerfstudio-project / nerfacc

A General NeRF Acceleration Toolbox in PyTorch.
https://www.nerfacc.com/
Other
1.37k stars 113 forks source link

about sampling or ray marching #220

Open zsy950116 opened 1 year ago

zsy950116 commented 1 year ago

I notice that sence_aabb is required in the ray sampling, if the ray does not pass through the aabb, whether the sampling point is empty?

zsy950116 commented 1 year ago

In addition, there are two sampling methods in the new version. I use version 0.3. Which sampling method is used for the ray_marching function

liruilong940607 commented 1 year ago

Yeah no intersection leads to zero samples.

The OccGridEstimator has a sampling() function that is basically the old ray_marching function but with some API changes.

Please check the CHANGELOG.md for the api changes between the latest version and the 0.3.x version

zsy950116 commented 1 year ago

您好,您的邮件我已经接收。

DJNing commented 6 months ago

Yeah no intersection leads to zero samples.

The OccGridEstimator has a sampling() function that is basically the old ray_marching function but with some API changes.

Please check the CHANGELOG.md for the api changes between the latest version and the 0.3.x version

following the same question. I am using the OccGridEstimator with aabb [-1, -1, -1, 1, 1, 1]. But I always got 0 element returns. Even I pass estimator(rays_o=rays_o, rays_d=-rays_0), which means all the input rays will pass through the origin. Could you also give me a hint on this?

zsy950116 commented 6 months ago

您好,您的邮件我已经接收。

Hmartin1978 commented 4 months ago

@DJNing Hi, I have the same problem, have u address it? Could u give me some help?