Shortcuts

UtilsΒΆ

ray_aabb_intersect

Ray AABB Test.

unpack_info

Unpack packed_info to ray_indices.

accumulate_along_rays

Accumulate volumetric values along the ray.

render_transmittance_from_density

Compute transmittance \(T_i\) from density \(\sigma_i\).

render_transmittance_from_alpha

Compute transmittance \(T_i\) from alpha \(\alpha_i\).

render_weight_from_density

Compute rendering weights \(w_i\) from density \(\sigma_i\) and interval \(\delta_i\).

render_weight_from_alpha

Compute rendering weights \(w_i\) from opacity \(\alpha_i\).

render_visibility

Filter out transparent and occluded samples.

ray_resampling

Resample a set of rays based on the CDF of the weights.

pack_data

Pack per-ray data (n_rays, n_samples, D) to (all_samples, D) based on mask.

unpack_data

Unpack packed data (all_samples, D) to per-ray data (n_rays, n_samples, D).