@pmndrs/vdb 0.0.0-stage → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +727 -0
- package/LICENSE +21 -0
- package/README.md +496 -2
- package/THIRD_PARTY_NOTICES.md +315 -0
- package/dist/core/compute/atlas.d.ts +102 -0
- package/dist/core/compute/atlas.js +103 -0
- package/dist/core/compute/atlas.js.map +1 -0
- package/dist/core/compute/index.d.ts +13 -0
- package/dist/core/compute/index.js +9 -0
- package/dist/core/compute/index.js.map +1 -0
- package/dist/core/compute/majorant-build.d.ts +45 -0
- package/dist/core/compute/majorant-build.js +193 -0
- package/dist/core/compute/majorant-build.js.map +1 -0
- package/dist/core/compute/multi-scale.d.ts +155 -0
- package/dist/core/compute/multi-scale.js +684 -0
- package/dist/core/compute/multi-scale.js.map +1 -0
- package/dist/core/compute/pyramid.d.ts +120 -0
- package/dist/core/compute/pyramid.js +468 -0
- package/dist/core/compute/pyramid.js.map +1 -0
- package/dist/core/compute/shared.d.ts +116 -0
- package/dist/core/compute/shared.js +211 -0
- package/dist/core/compute/shared.js.map +1 -0
- package/dist/core/compute/stats.d.ts +78 -0
- package/dist/core/compute/stats.js +193 -0
- package/dist/core/compute/stats.js.map +1 -0
- package/dist/core/compute/value-transform.d.ts +30 -0
- package/dist/core/compute/value-transform.js +64 -0
- package/dist/core/compute/value-transform.js.map +1 -0
- package/dist/core/errors.d.ts +21 -0
- package/dist/core/errors.js +17 -0
- package/dist/core/errors.js.map +1 -0
- package/dist/core/frame/emission.d.ts +85 -0
- package/dist/core/frame/emission.js +422 -0
- package/dist/core/frame/emission.js.map +1 -0
- package/dist/core/frame/environment.d.ts +47 -0
- package/dist/core/frame/environment.js +178 -0
- package/dist/core/frame/environment.js.map +1 -0
- package/dist/core/frame/index.d.ts +39 -0
- package/dist/core/frame/index.js +27 -0
- package/dist/core/frame/index.js.map +1 -0
- package/dist/core/frame/kernels.d.ts +115 -0
- package/dist/core/frame/kernels.js +496 -0
- package/dist/core/frame/kernels.js.map +1 -0
- package/dist/core/frame/limits.d.ts +67 -0
- package/dist/core/frame/limits.js +109 -0
- package/dist/core/frame/limits.js.map +1 -0
- package/dist/core/frame/phase.d.ts +17 -0
- package/dist/core/frame/phase.js +53 -0
- package/dist/core/frame/phase.js.map +1 -0
- package/dist/core/frame/pipelines.d.ts +49 -0
- package/dist/core/frame/pipelines.js +147 -0
- package/dist/core/frame/pipelines.js.map +1 -0
- package/dist/core/frame/renderer.d.ts +122 -0
- package/dist/core/frame/renderer.js +1712 -0
- package/dist/core/frame/renderer.js.map +1 -0
- package/dist/core/frame/resources.d.ts +71 -0
- package/dist/core/frame/resources.js +100 -0
- package/dist/core/frame/resources.js.map +1 -0
- package/dist/core/frame/scattering.d.ts +97 -0
- package/dist/core/frame/scattering.js +332 -0
- package/dist/core/frame/scattering.js.map +1 -0
- package/dist/core/frame/settings.d.ts +243 -0
- package/dist/core/frame/settings.js +67 -0
- package/dist/core/frame/settings.js.map +1 -0
- package/dist/core/frame/shadows.d.ts +55 -0
- package/dist/core/frame/shadows.js +460 -0
- package/dist/core/frame/shadows.js.map +1 -0
- package/dist/core/frame/types.d.ts +415 -0
- package/dist/core/frame/types.js +49 -0
- package/dist/core/frame/types.js.map +1 -0
- package/dist/core/frame/uniforms.d.ts +105 -0
- package/dist/core/frame/uniforms.js +276 -0
- package/dist/core/frame/uniforms.js.map +1 -0
- package/dist/core/frame/wgsl/chunks.d.ts +4 -0
- package/dist/core/frame/wgsl/chunks.js +728 -0
- package/dist/core/frame/wgsl/chunks.js.map +1 -0
- package/dist/core/frame/wgsl/emission.d.ts +82 -0
- package/dist/core/frame/wgsl/emission.js +353 -0
- package/dist/core/frame/wgsl/emission.js.map +1 -0
- package/dist/core/frame/wgsl/environment.d.ts +42 -0
- package/dist/core/frame/wgsl/environment.js +711 -0
- package/dist/core/frame/wgsl/environment.js.map +1 -0
- package/dist/core/frame/wgsl/gather.d.ts +55 -0
- package/dist/core/frame/wgsl/gather.js +850 -0
- package/dist/core/frame/wgsl/gather.js.map +1 -0
- package/dist/core/frame/wgsl/integrate.d.ts +78 -0
- package/dist/core/frame/wgsl/integrate.js +213 -0
- package/dist/core/frame/wgsl/integrate.js.map +1 -0
- package/dist/core/frame/wgsl/lighting.d.ts +103 -0
- package/dist/core/frame/wgsl/lighting.js +1636 -0
- package/dist/core/frame/wgsl/lighting.js.map +1 -0
- package/dist/core/frame/wgsl/occluders.d.ts +20 -0
- package/dist/core/frame/wgsl/occluders.js +95 -0
- package/dist/core/frame/wgsl/occluders.js.map +1 -0
- package/dist/core/frame/wgsl/resolve.d.ts +19 -0
- package/dist/core/frame/wgsl/resolve.js +205 -0
- package/dist/core/frame/wgsl/resolve.js.map +1 -0
- package/dist/core/frame/wgsl/shadows.d.ts +35 -0
- package/dist/core/frame/wgsl/shadows.js +328 -0
- package/dist/core/frame/wgsl/shadows.js.map +1 -0
- package/dist/core/half.d.ts +11 -0
- package/dist/core/half.js +22 -0
- package/dist/core/half.js.map +1 -0
- package/dist/core/index.d.ts +52 -0
- package/dist/core/index.js +46 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/internal.d.ts +31 -0
- package/dist/core/internal.js +32 -0
- package/dist/core/internal.js.map +1 -0
- package/dist/core/pool/affine.d.ts +34 -0
- package/dist/core/pool/affine.js +100 -0
- package/dist/core/pool/affine.js.map +1 -0
- package/dist/core/pool/allocator.d.ts +32 -0
- package/dist/core/pool/allocator.js +81 -0
- package/dist/core/pool/allocator.js.map +1 -0
- package/dist/core/pool/image-header.d.ts +93 -0
- package/dist/core/pool/image-header.js +194 -0
- package/dist/core/pool/image-header.js.map +1 -0
- package/dist/core/pool/layout.d.ts +198 -0
- package/dist/core/pool/layout.js +316 -0
- package/dist/core/pool/layout.js.map +1 -0
- package/dist/core/pool/limits.d.ts +41 -0
- package/dist/core/pool/limits.js +80 -0
- package/dist/core/pool/limits.js.map +1 -0
- package/dist/core/pool/pool.d.ts +384 -0
- package/dist/core/pool/pool.js +1184 -0
- package/dist/core/pool/pool.js.map +1 -0
- package/dist/core/reference/index.d.ts +6 -0
- package/dist/core/reference/index.js +7 -0
- package/dist/core/reference/index.js.map +1 -0
- package/dist/core/reference/renderer.d.ts +105 -0
- package/dist/core/reference/renderer.js +474 -0
- package/dist/core/reference/renderer.js.map +1 -0
- package/dist/core/reference/wgsl.d.ts +65 -0
- package/dist/core/reference/wgsl.js +803 -0
- package/dist/core/reference/wgsl.js.map +1 -0
- package/dist/core/sequence.d.ts +347 -0
- package/dist/core/sequence.js +548 -0
- package/dist/core/sequence.js.map +1 -0
- package/dist/core/source/brick-cache.d.ts +165 -0
- package/dist/core/source/brick-cache.js +627 -0
- package/dist/core/source/brick-cache.js.map +1 -0
- package/dist/core/source/dense-fill.d.ts +53 -0
- package/dist/core/source/dense-fill.js +377 -0
- package/dist/core/source/dense-fill.js.map +1 -0
- package/dist/core/source/dense.d.ts +50 -0
- package/dist/core/source/dense.js +384 -0
- package/dist/core/source/dense.js.map +1 -0
- package/dist/core/source/sparse-wgsl.d.ts +92 -0
- package/dist/core/source/sparse-wgsl.js +481 -0
- package/dist/core/source/sparse-wgsl.js.map +1 -0
- package/dist/core/source/sparse.d.ts +192 -0
- package/dist/core/source/sparse.js +762 -0
- package/dist/core/source/sparse.js.map +1 -0
- package/dist/core/source/types.d.ts +120 -0
- package/dist/core/source/types.js +9 -0
- package/dist/core/source/types.js.map +1 -0
- package/dist/core/surface/index.d.ts +10 -0
- package/dist/core/surface/index.js +9 -0
- package/dist/core/surface/index.js.map +1 -0
- package/dist/core/surface/level-set-pass.d.ts +140 -0
- package/dist/core/surface/level-set-pass.js +291 -0
- package/dist/core/surface/level-set-pass.js.map +1 -0
- package/dist/core/surface/level-set-wgsl.d.ts +46 -0
- package/dist/core/surface/level-set-wgsl.js +99 -0
- package/dist/core/surface/level-set-wgsl.js.map +1 -0
- package/dist/core/surface/points.d.ts +109 -0
- package/dist/core/surface/points.js +226 -0
- package/dist/core/surface/points.js.map +1 -0
- package/dist/core/types.d.ts +37 -0
- package/dist/core/types.js +32 -0
- package/dist/core/types.js.map +1 -0
- package/dist/core/wgsl/api.d.ts +65 -0
- package/dist/core/wgsl/api.js +546 -0
- package/dist/core/wgsl/api.js.map +1 -0
- package/dist/core/wgsl/generate.d.ts +90 -0
- package/dist/core/wgsl/generate.js +678 -0
- package/dist/core/wgsl/generate.js.map +1 -0
- package/dist/core/wgsl/lean.d.ts +50 -0
- package/dist/core/wgsl/lean.js +327 -0
- package/dist/core/wgsl/lean.js.map +1 -0
- package/dist/core/wgsl/level-set.d.ts +58 -0
- package/dist/core/wgsl/level-set.js +200 -0
- package/dist/core/wgsl/level-set.js.map +1 -0
- package/dist/core/wgsl/majorant.d.ts +62 -0
- package/dist/core/wgsl/majorant.js +381 -0
- package/dist/core/wgsl/majorant.js.map +1 -0
- package/dist/core/wgsl/pnanovdb.chunks.generated.d.ts +14 -0
- package/dist/core/wgsl/pnanovdb.chunks.generated.js +333 -0
- package/dist/core/wgsl/pnanovdb.chunks.generated.js.map +1 -0
- package/dist/core/wgsl/reserved.d.ts +9 -0
- package/dist/core/wgsl/reserved.js +26 -0
- package/dist/core/wgsl/reserved.js.map +1 -0
- package/dist/core/wgsl/types.d.ts +198 -0
- package/dist/core/wgsl/types.js +2 -0
- package/dist/core/wgsl/types.js.map +1 -0
- package/dist/three/coarse-first.d.ts +207 -0
- package/dist/three/coarse-first.js +205 -0
- package/dist/three/coarse-first.js.map +1 -0
- package/dist/three/compute.d.ts +73 -0
- package/dist/three/compute.js +66 -0
- package/dist/three/compute.js.map +1 -0
- package/dist/three/device.d.ts +66 -0
- package/dist/three/device.js +62 -0
- package/dist/three/device.js.map +1 -0
- package/dist/three/frame/core-environment.d.ts +38 -0
- package/dist/three/frame/core-environment.js +154 -0
- package/dist/three/frame/core-environment.js.map +1 -0
- package/dist/three/frame/core-integrate-material.d.ts +34 -0
- package/dist/three/frame/core-integrate-material.js +162 -0
- package/dist/three/frame/core-integrate-material.js.map +1 -0
- package/dist/three/frame/core-occluders.d.ts +53 -0
- package/dist/three/frame/core-occluders.js +193 -0
- package/dist/three/frame/core-occluders.js.map +1 -0
- package/dist/three/frame/core-structs.d.ts +34 -0
- package/dist/three/frame/core-structs.js +61 -0
- package/dist/three/frame/core-structs.js.map +1 -0
- package/dist/three/frame/core-textures.d.ts +41 -0
- package/dist/three/frame/core-textures.js +114 -0
- package/dist/three/frame/core-textures.js.map +1 -0
- package/dist/three/frame/emission-light.d.ts +117 -0
- package/dist/three/frame/emission-light.js +276 -0
- package/dist/three/frame/emission-light.js.map +1 -0
- package/dist/three/frame/index.d.ts +19 -0
- package/dist/three/frame/index.js +15 -0
- package/dist/three/frame/index.js.map +1 -0
- package/dist/three/frame/medium.d.ts +33 -0
- package/dist/three/frame/medium.js +29 -0
- package/dist/three/frame/medium.js.map +1 -0
- package/dist/three/frame/renderer.d.ts +97 -0
- package/dist/three/frame/renderer.js +480 -0
- package/dist/three/frame/renderer.js.map +1 -0
- package/dist/three/frame/spectrum.d.ts +4 -0
- package/dist/three/frame/spectrum.js +15 -0
- package/dist/three/frame/spectrum.js.map +1 -0
- package/dist/three/frame/three-internals.d.ts +60 -0
- package/dist/three/frame/three-internals.js +152 -0
- package/dist/three/frame/three-internals.js.map +1 -0
- package/dist/three/frame/volume-shadows.d.ts +139 -0
- package/dist/three/frame/volume-shadows.js +403 -0
- package/dist/three/frame/volume-shadows.js.map +1 -0
- package/dist/three/frame/volume.d.ts +230 -0
- package/dist/three/frame/volume.js +268 -0
- package/dist/three/frame/volume.js.map +1 -0
- package/dist/three/grid-node.d.ts +229 -0
- package/dist/three/grid-node.js +545 -0
- package/dist/three/grid-node.js.map +1 -0
- package/dist/three/index.d.ts +52 -0
- package/dist/three/index.js +58 -0
- package/dist/three/index.js.map +1 -0
- package/dist/three/internal.d.ts +20 -0
- package/dist/three/internal.js +18 -0
- package/dist/three/internal.js.map +1 -0
- package/dist/three/level-set-material.d.ts +185 -0
- package/dist/three/level-set-material.js +241 -0
- package/dist/three/level-set-material.js.map +1 -0
- package/dist/three/level-set-physical-material.d.ts +154 -0
- package/dist/three/level-set-physical-material.js +253 -0
- package/dist/three/level-set-physical-material.js.map +1 -0
- package/dist/three/level-set-velocity.d.ts +94 -0
- package/dist/three/level-set-velocity.js +208 -0
- package/dist/three/level-set-velocity.js.map +1 -0
- package/dist/three/material.d.ts +324 -0
- package/dist/three/material.js +502 -0
- package/dist/three/material.js.map +1 -0
- package/dist/three/points.d.ts +140 -0
- package/dist/three/points.js +261 -0
- package/dist/three/points.js.map +1 -0
- package/dist/three/sparse-source.d.ts +165 -0
- package/dist/three/sparse-source.js +405 -0
- package/dist/three/sparse-source.js.map +1 -0
- package/dist/three/volume-source.d.ts +22 -0
- package/dist/three/volume-source.js +110 -0
- package/dist/three/volume-source.js.map +1 -0
- package/dist/tools/cpu/brick-atlas.d.ts +36 -0
- package/dist/tools/cpu/brick-atlas.js +129 -0
- package/dist/tools/cpu/brick-atlas.js.map +1 -0
- package/dist/tools/cpu/compute.d.ts +116 -0
- package/dist/tools/cpu/compute.js +239 -0
- package/dist/tools/cpu/compute.js.map +1 -0
- package/dist/tools/cpu/lean-reads.d.ts +81 -0
- package/dist/tools/cpu/lean-reads.js +262 -0
- package/dist/tools/cpu/lean-reads.js.map +1 -0
- package/dist/tools/cpu/level-set.d.ts +111 -0
- package/dist/tools/cpu/level-set.js +313 -0
- package/dist/tools/cpu/level-set.js.map +1 -0
- package/dist/tools/cpu/majorant.d.ts +265 -0
- package/dist/tools/cpu/majorant.js +541 -0
- package/dist/tools/cpu/majorant.js.map +1 -0
- package/dist/tools/cpu/march.d.ts +297 -0
- package/dist/tools/cpu/march.js +726 -0
- package/dist/tools/cpu/march.js.map +1 -0
- package/dist/tools/cpu/mesh-decimate.d.ts +124 -0
- package/dist/tools/cpu/mesh-decimate.js +1225 -0
- package/dist/tools/cpu/mesh-decimate.js.map +1 -0
- package/dist/tools/cpu/points.d.ts +29 -0
- package/dist/tools/cpu/points.js +38 -0
- package/dist/tools/cpu/points.js.map +1 -0
- package/dist/tools/cpu/probe-coords.d.ts +70 -0
- package/dist/tools/cpu/probe-coords.js +116 -0
- package/dist/tools/cpu/probe-coords.js.map +1 -0
- package/dist/tools/cpu/read-value.d.ts +44 -0
- package/dist/tools/cpu/read-value.js +351 -0
- package/dist/tools/cpu/read-value.js.map +1 -0
- package/dist/tools/cpu/sample-trilinear.d.ts +43 -0
- package/dist/tools/cpu/sample-trilinear.js +168 -0
- package/dist/tools/cpu/sample-trilinear.js.map +1 -0
- package/dist/tools/cpu/stride-tables.d.ts +56 -0
- package/dist/tools/cpu/stride-tables.generated.d.ts +1059 -0
- package/dist/tools/cpu/stride-tables.generated.js +1267 -0
- package/dist/tools/cpu/stride-tables.generated.js.map +1 -0
- package/dist/tools/cpu/stride-tables.js +78 -0
- package/dist/tools/cpu/stride-tables.js.map +1 -0
- package/dist/tools/cpu/surface-nets.d.ts +90 -0
- package/dist/tools/cpu/surface-nets.js +597 -0
- package/dist/tools/cpu/surface-nets.js.map +1 -0
- package/dist/tools/errors.d.ts +66 -0
- package/dist/tools/errors.js +67 -0
- package/dist/tools/errors.js.map +1 -0
- package/dist/tools/frame/ambient.d.ts +98 -0
- package/dist/tools/frame/ambient.js +274 -0
- package/dist/tools/frame/ambient.js.map +1 -0
- package/dist/tools/frame/blackbody.d.ts +57 -0
- package/dist/tools/frame/blackbody.js +151 -0
- package/dist/tools/frame/blackbody.js.map +1 -0
- package/dist/tools/frame/brick-cache.d.ts +165 -0
- package/dist/tools/frame/brick-cache.js +326 -0
- package/dist/tools/frame/brick-cache.js.map +1 -0
- package/dist/tools/frame/emission.d.ts +137 -0
- package/dist/tools/frame/emission.js +290 -0
- package/dist/tools/frame/emission.js.map +1 -0
- package/dist/tools/frame/environment-gpu.d.ts +111 -0
- package/dist/tools/frame/environment-gpu.js +280 -0
- package/dist/tools/frame/environment-gpu.js.map +1 -0
- package/dist/tools/frame/environment.d.ts +106 -0
- package/dist/tools/frame/environment.js +272 -0
- package/dist/tools/frame/environment.js.map +1 -0
- package/dist/tools/frame/froxel.d.ts +58 -0
- package/dist/tools/frame/froxel.js +115 -0
- package/dist/tools/frame/froxel.js.map +1 -0
- package/dist/tools/frame/grid.d.ts +392 -0
- package/dist/tools/frame/grid.js +802 -0
- package/dist/tools/frame/grid.js.map +1 -0
- package/dist/tools/frame/index.d.ts +150 -0
- package/dist/tools/frame/index.js +389 -0
- package/dist/tools/frame/index.js.map +1 -0
- package/dist/tools/frame/medium.d.ts +77 -0
- package/dist/tools/frame/medium.js +101 -0
- package/dist/tools/frame/medium.js.map +1 -0
- package/dist/tools/frame/mie-table.d.ts +6 -0
- package/dist/tools/frame/mie-table.js +16 -0
- package/dist/tools/frame/mie-table.js.map +1 -0
- package/dist/tools/frame/mie.d.ts +63 -0
- package/dist/tools/frame/mie.js +194 -0
- package/dist/tools/frame/mie.js.map +1 -0
- package/dist/tools/frame/mlp-nn.d.ts +36 -0
- package/dist/tools/frame/mlp-nn.js +159 -0
- package/dist/tools/frame/mlp-nn.js.map +1 -0
- package/dist/tools/frame/mlp-tza.d.ts +29 -0
- package/dist/tools/frame/mlp-tza.js +186 -0
- package/dist/tools/frame/mlp-tza.js.map +1 -0
- package/dist/tools/frame/mlp.d.ts +183 -0
- package/dist/tools/frame/mlp.js +434 -0
- package/dist/tools/frame/mlp.js.map +1 -0
- package/dist/tools/frame/ms-exit.d.ts +42 -0
- package/dist/tools/frame/ms-exit.js +90 -0
- package/dist/tools/frame/ms-exit.js.map +1 -0
- package/dist/tools/frame/multi-scale.d.ts +152 -0
- package/dist/tools/frame/multi-scale.js +302 -0
- package/dist/tools/frame/multi-scale.js.map +1 -0
- package/dist/tools/frame/neural-weights.d.ts +10 -0
- package/dist/tools/frame/neural-weights.js +244 -0
- package/dist/tools/frame/neural-weights.js.map +1 -0
- package/dist/tools/frame/neural.d.ts +80 -0
- package/dist/tools/frame/neural.js +150 -0
- package/dist/tools/frame/neural.js.map +1 -0
- package/dist/tools/frame/occluders.d.ts +51 -0
- package/dist/tools/frame/occluders.js +72 -0
- package/dist/tools/frame/occluders.js.map +1 -0
- package/dist/tools/frame/pyramid-layout.d.ts +55 -0
- package/dist/tools/frame/pyramid-layout.js +100 -0
- package/dist/tools/frame/pyramid-layout.js.map +1 -0
- package/dist/tools/frame/shadows.d.ts +190 -0
- package/dist/tools/frame/shadows.js +468 -0
- package/dist/tools/frame/shadows.js.map +1 -0
- package/dist/tools/frame/sparse.d.ts +147 -0
- package/dist/tools/frame/sparse.js +432 -0
- package/dist/tools/frame/sparse.js.map +1 -0
- package/dist/tools/frame/spectral-stack.d.ts +159 -0
- package/dist/tools/frame/spectral-stack.js +391 -0
- package/dist/tools/frame/spectral-stack.js.map +1 -0
- package/dist/tools/frame/spectral.d.ts +222 -0
- package/dist/tools/frame/spectral.js +572 -0
- package/dist/tools/frame/spectral.js.map +1 -0
- package/dist/tools/frame/stack.d.ts +115 -0
- package/dist/tools/frame/stack.js +290 -0
- package/dist/tools/frame/stack.js.map +1 -0
- package/dist/tools/frame/view.d.ts +131 -0
- package/dist/tools/frame/view.js +337 -0
- package/dist/tools/frame/view.js.map +1 -0
- package/dist/tools/index.d.ts +157 -0
- package/dist/tools/index.js +132 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/internal.d.ts +87 -0
- package/dist/tools/internal.js +85 -0
- package/dist/tools/internal.js.map +1 -0
- package/dist/tools/nanovdb/build-from-vdb.d.ts +59 -0
- package/dist/tools/nanovdb/build-from-vdb.js +100 -0
- package/dist/tools/nanovdb/build-from-vdb.js.map +1 -0
- package/dist/tools/nanovdb/bytes.d.ts +233 -0
- package/dist/tools/nanovdb/bytes.js +388 -0
- package/dist/tools/nanovdb/bytes.js.map +1 -0
- package/dist/tools/nanovdb/coarse-first.d.ts +78 -0
- package/dist/tools/nanovdb/coarse-first.js +92 -0
- package/dist/tools/nanovdb/coarse-first.js.map +1 -0
- package/dist/tools/nanovdb/half.d.ts +22 -0
- package/dist/tools/nanovdb/half.js +73 -0
- package/dist/tools/nanovdb/half.js.map +1 -0
- package/dist/tools/nanovdb/index.d.ts +34 -0
- package/dist/tools/nanovdb/index.js +25 -0
- package/dist/tools/nanovdb/index.js.map +1 -0
- package/dist/tools/nanovdb/inspect.d.ts +33 -0
- package/dist/tools/nanovdb/inspect.js +70 -0
- package/dist/tools/nanovdb/inspect.js.map +1 -0
- package/dist/tools/nanovdb/leaf-codec.d.ts +119 -0
- package/dist/tools/nanovdb/leaf-codec.js +356 -0
- package/dist/tools/nanovdb/leaf-codec.js.map +1 -0
- package/dist/tools/nanovdb/quantize.d.ts +72 -0
- package/dist/tools/nanovdb/quantize.js +329 -0
- package/dist/tools/nanovdb/quantize.js.map +1 -0
- package/dist/tools/nanovdb/resample.d.ts +177 -0
- package/dist/tools/nanovdb/resample.js +692 -0
- package/dist/tools/nanovdb/resample.js.map +1 -0
- package/dist/tools/nanovdb/serialize.d.ts +176 -0
- package/dist/tools/nanovdb/serialize.js +439 -0
- package/dist/tools/nanovdb/serialize.js.map +1 -0
- package/dist/tools/nanovdb/stats.d.ts +87 -0
- package/dist/tools/nanovdb/stats.js +225 -0
- package/dist/tools/nanovdb/stats.js.map +1 -0
- package/dist/tools/nanovdb/transform.d.ts +30 -0
- package/dist/tools/nanovdb/transform.js +94 -0
- package/dist/tools/nanovdb/transform.js.map +1 -0
- package/dist/tools/nanovdb/tree.d.ts +186 -0
- package/dist/tools/nanovdb/tree.js +530 -0
- package/dist/tools/nanovdb/tree.js.map +1 -0
- package/dist/tools/nanovdb/write-nvdb.d.ts +74 -0
- package/dist/tools/nanovdb/write-nvdb.js +290 -0
- package/dist/tools/nanovdb/write-nvdb.js.map +1 -0
- package/dist/tools/nvdb-file.d.ts +265 -0
- package/dist/tools/nvdb-file.js +763 -0
- package/dist/tools/nvdb-file.js.map +1 -0
- package/dist/tools/nvdb-stream.d.ts +154 -0
- package/dist/tools/nvdb-stream.js +409 -0
- package/dist/tools/nvdb-stream.js.map +1 -0
- package/dist/tools/reference/analytic.d.ts +41 -0
- package/dist/tools/reference/analytic.js +95 -0
- package/dist/tools/reference/analytic.js.map +1 -0
- package/dist/tools/reference/environment.d.ts +62 -0
- package/dist/tools/reference/environment.js +154 -0
- package/dist/tools/reference/environment.js.map +1 -0
- package/dist/tools/reference/index.d.ts +12 -0
- package/dist/tools/reference/index.js +13 -0
- package/dist/tools/reference/index.js.map +1 -0
- package/dist/tools/reference/media.d.ts +14 -0
- package/dist/tools/reference/media.js +30 -0
- package/dist/tools/reference/media.js.map +1 -0
- package/dist/tools/reference/rng.d.ts +20 -0
- package/dist/tools/reference/rng.js +30 -0
- package/dist/tools/reference/rng.js.map +1 -0
- package/dist/tools/reference/scene.d.ts +312 -0
- package/dist/tools/reference/scene.js +169 -0
- package/dist/tools/reference/scene.js.map +1 -0
- package/dist/tools/reference/tables.d.ts +98 -0
- package/dist/tools/reference/tables.js +264 -0
- package/dist/tools/reference/tables.js.map +1 -0
- package/dist/tools/reference/trace.d.ts +160 -0
- package/dist/tools/reference/trace.js +497 -0
- package/dist/tools/reference/trace.js.map +1 -0
- package/dist/tools/vdb/bit-utils.d.ts +20 -0
- package/dist/tools/vdb/bit-utils.js +42 -0
- package/dist/tools/vdb/bit-utils.js.map +1 -0
- package/dist/tools/vdb/blosc-write.d.ts +43 -0
- package/dist/tools/vdb/blosc-write.js +197 -0
- package/dist/tools/vdb/blosc-write.js.map +1 -0
- package/dist/tools/vdb/blosc.d.ts +86 -0
- package/dist/tools/vdb/blosc.js +287 -0
- package/dist/tools/vdb/blosc.js.map +1 -0
- package/dist/tools/vdb/blosclz.d.ts +33 -0
- package/dist/tools/vdb/blosclz.js +112 -0
- package/dist/tools/vdb/blosclz.js.map +1 -0
- package/dist/tools/vdb/byte-reader.d.ts +50 -0
- package/dist/tools/vdb/byte-reader.js +161 -0
- package/dist/tools/vdb/byte-reader.js.map +1 -0
- package/dist/tools/vdb/compression.d.ts +81 -0
- package/dist/tools/vdb/compression.js +260 -0
- package/dist/tools/vdb/compression.js.map +1 -0
- package/dist/tools/vdb/errors.d.ts +10 -0
- package/dist/tools/vdb/errors.js +11 -0
- package/dist/tools/vdb/errors.js.map +1 -0
- package/dist/tools/vdb/grid.d.ts +37 -0
- package/dist/tools/vdb/grid.js +153 -0
- package/dist/tools/vdb/grid.js.map +1 -0
- package/dist/tools/vdb/half-float.d.ts +9 -0
- package/dist/tools/vdb/half-float.js +24 -0
- package/dist/tools/vdb/half-float.js.map +1 -0
- package/dist/tools/vdb/index.d.ts +4 -0
- package/dist/tools/vdb/index.js +3 -0
- package/dist/tools/vdb/index.js.map +1 -0
- package/dist/tools/vdb/inflate.d.ts +24 -0
- package/dist/tools/vdb/inflate.js +334 -0
- package/dist/tools/vdb/inflate.js.map +1 -0
- package/dist/tools/vdb/lz4.d.ts +30 -0
- package/dist/tools/vdb/lz4.js +228 -0
- package/dist/tools/vdb/lz4.js.map +1 -0
- package/dist/tools/vdb/metadata.d.ts +17 -0
- package/dist/tools/vdb/metadata.js +72 -0
- package/dist/tools/vdb/metadata.js.map +1 -0
- package/dist/tools/vdb/parse.d.ts +47 -0
- package/dist/tools/vdb/parse.js +241 -0
- package/dist/tools/vdb/parse.js.map +1 -0
- package/dist/tools/vdb/point-render-data.d.ts +79 -0
- package/dist/tools/vdb/point-render-data.js +137 -0
- package/dist/tools/vdb/point-render-data.js.map +1 -0
- package/dist/tools/vdb/points.d.ts +186 -0
- package/dist/tools/vdb/points.js +835 -0
- package/dist/tools/vdb/points.js.map +1 -0
- package/dist/tools/vdb/transform.d.ts +23 -0
- package/dist/tools/vdb/transform.js +54 -0
- package/dist/tools/vdb/transform.js.map +1 -0
- package/dist/tools/vdb/tree.d.ts +111 -0
- package/dist/tools/vdb/tree.js +228 -0
- package/dist/tools/vdb/tree.js.map +1 -0
- package/dist/tools/vdb/types.d.ts +195 -0
- package/dist/tools/vdb/types.js +3 -0
- package/dist/tools/vdb/types.js.map +1 -0
- package/dist/tools/wvdb/bake.d.ts +145 -0
- package/dist/tools/wvdb/bake.js +361 -0
- package/dist/tools/wvdb/bake.js.map +1 -0
- package/dist/tools/wvdb/dense.d.ts +191 -0
- package/dist/tools/wvdb/dense.js +368 -0
- package/dist/tools/wvdb/dense.js.map +1 -0
- package/dist/tools/wvdb/format.d.ts +220 -0
- package/dist/tools/wvdb/format.js +306 -0
- package/dist/tools/wvdb/format.js.map +1 -0
- package/dist/tools/wvdb/index.d.ts +14 -0
- package/dist/tools/wvdb/index.js +15 -0
- package/dist/tools/wvdb/index.js.map +1 -0
- package/dist/tools/wvdb/level-set.d.ts +56 -0
- package/dist/tools/wvdb/level-set.js +153 -0
- package/dist/tools/wvdb/level-set.js.map +1 -0
- package/dist/tools/wvdb/nanovdb.d.ts +59 -0
- package/dist/tools/wvdb/nanovdb.js +64 -0
- package/dist/tools/wvdb/nanovdb.js.map +1 -0
- package/dist/tools/wvdb/partial.d.ts +74 -0
- package/dist/tools/wvdb/partial.js +233 -0
- package/dist/tools/wvdb/partial.js.map +1 -0
- package/dist/tools/wvdb/read.d.ts +336 -0
- package/dist/tools/wvdb/read.js +766 -0
- package/dist/tools/wvdb/read.js.map +1 -0
- package/dist/tools/wvdb/sha256.d.ts +7 -0
- package/dist/tools/wvdb/sha256.js +76 -0
- package/dist/tools/wvdb/sha256.js.map +1 -0
- package/dist/tools/wvdb/write.d.ts +149 -0
- package/dist/tools/wvdb/write.js +403 -0
- package/dist/tools/wvdb/write.js.map +1 -0
- package/package.json +83 -4
- package/vendor/LICENSE +201 -0
- package/vendor/NOTICE +19 -0
- package/vendor/VENDOR.md +100 -0
- package/vendor/pnanovdb.wgsl +1577 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,727 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to `@pmndrs/vdb` are documented here. The format follows
|
|
4
|
+
[Keep a Changelog](https://keepachangelog.com/en/1.1.0/) and the project follows
|
|
5
|
+
[Semantic Versioning](https://semver.org/) (while 0.x, minor releases may break).
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
|
|
9
|
+
## [0.2.0] - 2026-11-30
|
|
10
|
+
|
|
11
|
+
The froxel renderer moves into the engine-free core (WGSL compute kernels; `@pmndrs/vdb/three` becomes a thin
|
|
12
|
+
adapter), the core gains level-set and point passes, majorants and a lean reader, and the tools gain Half grids, Blosc
|
|
13
|
+
writing, a level-set mesher and partial `.wvdb` streaming. Upgrade guide:
|
|
14
|
+
[Migrating from 0.1 to 0.2](https://pmndrs.github.io/vdb/reference/migrating-0-2).
|
|
15
|
+
|
|
16
|
+
### Upgrading from 0.1.0: the short list
|
|
17
|
+
|
|
18
|
+
Every entry is described in full below.
|
|
19
|
+
|
|
20
|
+
| What | 0.1.0 | 0.2.0 | What to do |
|
|
21
|
+
|---|---|---|---|
|
|
22
|
+
| Core GPU names | `vdbGridStatsGpu`, `vdbDecodeToAtlasGpu`, `VDBBoxPyramidGpu(Options)` | `vdbGridStats`, `vdbDecodeToAtlas`, `VDBBoxPyramid(Options)` | Rename. Alias when you also import the `./three` function of the same name |
|
|
23
|
+
| Tools CPU readers | `vdbSampleTrilinear`, `vdbSampleNearest`, `vdbSampleTrilinearVec3`, `vdbReadValueF32`, `vdbReadValueVec3` | the same names with `Cpu` at the end | Rename |
|
|
24
|
+
| Tools helpers | `wvdbPrefixLength`, `nvdbResponseLength`, `vdbMakeFpNLeafCodec` | not exported | No replacement (internal) |
|
|
25
|
+
| Sequence loader type | `VDBFrameLoader` (`./three`) | `VDBSequenceFrameLoader` (core, re-exported by `./three`) | Rename |
|
|
26
|
+
| Froxel renderer (`./three`) | TSL passes | the core's compute kernels; several settings, members and types renamed or removed | See "K6.8" below and the migration page |
|
|
27
|
+
| Sources' TSL half | `vdbVolumeUniforms`, `vdbVolumeNodes`, the sparse source's pyramid and node functions | deleted | Sample a pooled grid through `VDBGridNode`; use the core sources' `wgsl()` in WGSL |
|
|
28
|
+
| Emission colour | `vdbFrameBlackbodyEmission(s, e)`, a TSL hook | `VDBEmissionColor` data | `emissionColor: { spectrum: s, exponent: e }` |
|
|
29
|
+
| Light bits | `vdbFrameLights`, `vdbFrameAllLights` | `VDB_FRAME_LIGHT_BITS`, `VDB_FRAME_ALL_LIGHTS` | Rename |
|
|
30
|
+
| Froxel renderer default phase | `'henyey-greenstein'` g 0.8 | `'dual-lobe'` 0.8 / −0.3 / 0.2 | `settings.phase = 'henyey-greenstein'` for 0.1's look |
|
|
31
|
+
| Ambient-class light on volumes | unshadowed | attenuated by the medium (`ambientOcclusion`, on) | `settings.ambientOcclusion = false` for 0.1's frames |
|
|
32
|
+
| Meshes shadowing volumes | none | three's light shadow maps shadow the volumes (`occlusion`, on) | `settings.occlusion = false` for 0.1's frames |
|
|
33
|
+
| `'neural'` multiple scattering (the default mode) | mjurczyk's weights | our own weights | None: frames with `'neural'` change a little. Other modes are unchanged |
|
|
34
|
+
| Overlapping volumes | blended in draw order ("over") | combined order-independently | None: frames change only where two volumes share a froxel |
|
|
35
|
+
| `VDB_ALL_SCALAR_TYPES` | Float, Fp4, Fp8, Fp16, FpN | adds `'half'` | A module made with it is larger; list the types you use to keep 0.1's bytes |
|
|
36
|
+
| Written grid and file bytes | version 32.9.1, unsigned root order, f32 stats | version 32.11.0, native's signed root order, native's f64 stats, `nameKey` set | Values are unchanged. Retake any stored hash of a built, quantized or written grid |
|
|
37
|
+
| `vdbQuantize` of a level set | dropped inactive tiles (the interior read as the background) | keeps them | Re-quantize level sets made with 0.1 |
|
|
38
|
+
| `.nvdb` of another NanoVDB major | `NvdbFormatError` | `VDBUnsupportedError` | Catch `VDBToolsError`, or check `code` |
|
|
39
|
+
| `.vdb` strings | latin1 | UTF-8 (latin1 fallback) | Non-ASCII grid names read correctly now |
|
|
40
|
+
| `VDBPoints.pointCount` | a number | also sets the drawn instance count | Set `pointCount`, never three's `count` |
|
|
41
|
+
| `VDBVolumeMaterial` defaults | `densityScale` 40 per index voxel, `sunIntensity` 3, a shadow ray of `shadowSteps × stepSize` voxels | `opticalDepth` 6 across the grid's longest side at its mean density (`densityScale` 0), `sunIntensity` 16, a shadow ray of `shadowReach` 0.3 of that side | `{ densityScale: 40, sunIntensity: 3, shadowReach: 0 }` for 0.1's frames |
|
|
42
|
+
|
|
43
|
+
### Breaking (0.2.0, D36: naming)
|
|
44
|
+
|
|
45
|
+
- `@pmndrs/vdb` (core): no name carries a `Gpu` suffix any more; the GPU is the default and `Cpu` marks the CPU twin of a
|
|
46
|
+
GPU function (`@pmndrs/vdb/tools`). The names 0.1.0 published: `vdbGridStatsGpu` → `vdbGridStats`,
|
|
47
|
+
`vdbDecodeToAtlasGpu` → `vdbDecodeToAtlas`, `VDBBoxPyramidGpu(Options)` → `VDBBoxPyramid(Options)`. A core name may
|
|
48
|
+
equal a `./three` name (the import path tells them apart; `./three` wraps the core object): alias when you import
|
|
49
|
+
both.
|
|
50
|
+
- The same rule renamed names that were only ever on `main` between 0.1.0 and 0.2.0 (never on npm; listed for anyone
|
|
51
|
+
who built from the repository): `vdbSparseSourceGpu` / `VDBSparseSourceGpu(Options)` / `VDBSparseVolumeGpu(Options)` /
|
|
52
|
+
`VDBSparseLodGpu` → `vdbSparseSource` / `VDBSparseSource(Options)` / `VDBSparseVolume(Options)` / `VDBSparseLod`,
|
|
53
|
+
`VDBFrameRendererGpu(Options)` / `VDBFrameVolumeGpu` → `VDBFrameRenderer(Options)` / `VDBFrameVolume`,
|
|
54
|
+
`vdbCreateLevelSetPassGpu` / `VDBLevelSetPassGpu(Options)` → `vdbCreateLevelSetPass` / `VDBLevelSetPass(Options)`,
|
|
55
|
+
`vdbCreatePointPassGpu` / `VDBPointPassGpu(Options)` → `vdbCreatePointPass` / `VDBPointPass(Options)`; the type
|
|
56
|
+
`VDBFrameRendererGpu` that `@pmndrs/vdb/three` exported for a while is gone (import `VDBFrameRenderer` from
|
|
57
|
+
`@pmndrs/vdb`).
|
|
58
|
+
- `VDBFrameLoader` (`@pmndrs/vdb/three` in 0.1.0) → `VDBSequenceFrameLoader` (core, re-exported by `./three`).
|
|
59
|
+
- `@pmndrs/vdb/tools`: the CPU samplers and readers take the `Cpu` suffix like `vdbReadValueCpu`: `vdbSampleTrilinear` /
|
|
60
|
+
`vdbSampleNearest` / `vdbSampleTrilinearVec3` → `vdbSampleTrilinearCpu` / `vdbSampleNearestCpu` /
|
|
61
|
+
`vdbSampleTrilinearVec3Cpu`, `vdbReadValueF32` / `vdbReadValueVec3` → `vdbReadValueF32Cpu` / `vdbReadValueVec3Cpu`.
|
|
62
|
+
- `wvdbPrefixLength`, `nvdbResponseLength` and `vdbMakeFpNLeafCodec` are no longer exported from `@pmndrs/vdb/tools`
|
|
63
|
+
(they are in `tools/internal`).
|
|
64
|
+
|
|
65
|
+
### Breaking (0.2.0: defaults and outputs that change)
|
|
66
|
+
|
|
67
|
+
No name changes here; the same code gives other images or other bytes.
|
|
68
|
+
|
|
69
|
+
- `VDBVolumeMaterial` defaults (EX1a, #57): a material made without look options now draws a lit volume on a grid of
|
|
70
|
+
any resolution and value range. 0.1's `densityScale` 40 was extinction per INDEX voxel (opaque after one step on any
|
|
71
|
+
real grid, optical depth 360 along the 12-step shadow ray) and its sun term `3 × phase` (≈ 0.2) sat near the 0.15
|
|
72
|
+
ambient: a flat, ambient-only silhouette. Now:
|
|
73
|
+
- `densityScale` defaults to **0**, which means "use `opticalDepth`": the new `opticalDepth` (default 6) is the
|
|
74
|
+
optical depth of a ray crossing the grid's longest index side at the new `densityReference`, the mean of the
|
|
75
|
+
grid's active values (the root average statistic, read from `pool.info(id).rootAverage` at each render; 1 without
|
|
76
|
+
statistics). Both follow `pool.replace`, a `gridId` change and a coarse-first swap, so a preview and its full
|
|
77
|
+
grid look alike with no `voxelRatio` scale.
|
|
78
|
+
- the shadow ray spans the new `shadowReach` (default 0.3) of the longest index side in `shadowSteps` midpoint
|
|
79
|
+
samples, instead of `shadowSteps × stepSize` voxels (9 voxels at the defaults).
|
|
80
|
+
- `sunIntensity` defaults to **16** (was 3): the sun term is `sunIntensity × phase`, and a phase is about 1 / 4π.
|
|
81
|
+
Explicit values keep their 0.1 meaning and draw 0.1's frames byte for byte: `densityScale` > 0 is the extinction per
|
|
82
|
+
index voxel as given, and `shadowReach: 0` steps the shadow ray by `stepSize`. Migration: pass
|
|
83
|
+
`{ densityScale: 40, sunIntensity: 3, shadowReach: 0 }` for 0.1's default frames; a material that already passed
|
|
84
|
+
`densityScale` and `sunIntensity` only needs `shadowReach: 0`. `densityScale = 0` no longer hides a volume (hide the
|
|
85
|
+
mesh). A sequence that replaces its grid each frame is normalised per frame: pin it with a `densityReference` or
|
|
86
|
+
`material.densityReferenceAuto = false`. `vdbCoarseFirstApply` / `bind.material` still scale an explicit
|
|
87
|
+
`densityScale` by `voxelRatio` and leave a default material (0) alone.
|
|
88
|
+
- `VDB_ALL_SCALAR_TYPES` includes `'half'` (K7.H), so a WGSL module generated with it (and a `VDBGridNode` given it) is
|
|
89
|
+
larger than in 0.1.0 and has the Half decoders. Modules made with an explicit type list are byte-identical to 0.1.0's.
|
|
90
|
+
Migration: pass the types you add (`types: ['float', 'fp8']`) when the module's size or bytes matter.
|
|
91
|
+
- Froxel renderer: the default phase is `'dual-lobe'` (forward lobe g 0.8, back lobe g −0.3 of weight 0.2; D39, K7.4d),
|
|
92
|
+
not `'henyey-greenstein'` g 0.8. It is mjurczyk/openvdb's default since v0.30 and the phase of his demos and of ours.
|
|
93
|
+
Every volume drawn with the default phase changes: the back lobe returns light toward the light's side, so a volume seen
|
|
94
|
+
from there gets brighter (+2 to +27 % luminance on our report scenes) and one seen against the light a little darker
|
|
95
|
+
around the light's direction. Why: with one forward lobe every multiple-scattering mode (they add scattered light
|
|
96
|
+
isotropically) overshoots views that look into the missing back lobe, up to +194 % against a path-traced reference;
|
|
97
|
+
with dual-lobe the worst report scene is 32 % off (K7.4: median error 19.9 % against 37.3 %). `phaseG`, `phaseBackG`
|
|
98
|
+
and `phaseBackWeight` keep their defaults (0.8, −0.3, 0.2), and the measured media (`setMedium`) set their own phase as
|
|
99
|
+
before. The default `'neural'` network was trained for Henyey-Greenstein g 0.8; it is still the best network we have
|
|
100
|
+
for dual-lobe media (K7.4d). Migration: `settings.phase = 'henyey-greenstein'` gives 0.1's frames.
|
|
101
|
+
- Froxel renderer: three's light shadow maps shadow the volumes (`settings.occlusion`, default `true`, K6.5b). 0.1 had no
|
|
102
|
+
mesh → volume shadows, so a scene with a `castShadow` light, a shadow-casting mesh and a lit receiver now darkens the
|
|
103
|
+
volumes behind the mesh. Migration: `settings.occlusion = false` gives 0.1's frames.
|
|
104
|
+
- Froxel renderer: `ambientOcclusion` is on by default, the `'neural'` network is our own, overlapping volumes combine
|
|
105
|
+
order-independently (0.1 blended them in draw order; one volume per froxel renders the same), and the shadowed
|
|
106
|
+
ambient-class light is weighted by the phase function in both lightings (see "K6.8" and "Changed" below).
|
|
107
|
+
`ambientOcclusion = false` restores 0.1's ambient-class light in both lightings; the phase weight and the network have no
|
|
108
|
+
public switch back.
|
|
109
|
+
- Froxel renderer (K6.Q1d-a, D41, #26): `'frame'` lighting weights distant light (ambient, hemisphere, light probe, the
|
|
110
|
+
`'outward'` environment) by the phase function too, as `'volume'` lighting does. Which frames move: `'frame'` lighting
|
|
111
|
+
with such a light, `ambientOcclusion` on and `multipleScattering` `false` or `'octaves'`; they get darker where the
|
|
112
|
+
medium faces the camera (the smoke + hemisphere test scene: up to 11 / 255, about 10 % of its pixels). Scenes with the
|
|
113
|
+
default `'neural'` (or any other multiple-scattering mode) are byte-identical. The old look: the setting behind it
|
|
114
|
+
(`ambientPhase`) is internal, so there is no supported switch for the unweighted shadowed light;
|
|
115
|
+
`settings.ambientOcclusion = false` turns the shadowing of distant light off altogether (0.1's frames), as in
|
|
116
|
+
`'volume'` lighting. Memory: +8 bytes per shadow-grid voxel (+24 with `spectral`) in the scenes that move, nothing
|
|
117
|
+
elsewhere.
|
|
118
|
+
- Froxel renderer with `spectral` on: `'neural'` (the default mode) runs once per colour channel in `'frame'` lighting
|
|
119
|
+
instead of falling back to 1D diffusion (K7.4a; "Changed" below). Those frames get brighter (0.1's were 11–57 % darker
|
|
120
|
+
than the grey render of the same medium on the report scenes). No switch back; `multipleScattering: true` is the 1D
|
|
121
|
+
diffusion.
|
|
122
|
+
- Tools: the bytes of built, quantized, collapsed and written grids change (values do not). Our writers stamp NanoVDB
|
|
123
|
+
32.11.0 instead of 32.9.1 into every grid and file header (K7.5a, the version of OpenVDB v14's `PNanoVDB.h`); the root
|
|
124
|
+
table and upper nodes are in native's signed-origin order; node average and standard deviation follow native's f64
|
|
125
|
+
update; `writeNvdb` sets the FileMetaData `nameKey` to `io::stringHash(name)` (0.1 wrote 0, so native `io::hasGrid`
|
|
126
|
+
missed our grids); `vdbQuantize` keeps inactive tiles ("Fixed" below). Migration: retake stored digests or golden
|
|
127
|
+
files; files written by 0.1 still read.
|
|
128
|
+
- Core: a grid's brick-majorant range in the pool buffer now starts with a 32-byte header (origin, flags, `"VDBM"`)
|
|
129
|
+
before the bounds (P1.3). No 0.1 WGSL module read the range, but a host shader of your own that read the bounds at the
|
|
130
|
+
record's majorant offset must skip the header (or use the `majorant` profile). The pool layout version stays 1.
|
|
131
|
+
- Three: `VDBFrameEmissionLight.castShadow` is always `true` (an accessor; the light casts no shadow). Setting it does
|
|
132
|
+
nothing (K6.8b).
|
|
133
|
+
- Three: `VDBPoints.pointCount` sets the drawn instance count (K3.7b); a host that set three's `count` itself should set
|
|
134
|
+
`pointCount` instead.
|
|
135
|
+
|
|
136
|
+
### Breaking (0.2.0, K6.8: `./three` is a thin adapter over the core frame renderer)
|
|
137
|
+
|
|
138
|
+
- `@pmndrs/vdb/three`: `VDBFrameRenderer` draws every frame with the core frame renderer (compute kernels on three's
|
|
139
|
+
device; D34). The TSL pass materials, their shader chunks and the internal `backend` switch are deleted.
|
|
140
|
+
- `settings` is the core's `VDBFrameSettings` (his names and defaults, plus `occlusion`,
|
|
141
|
+
`multiScaleLevels`, `ambientOcclusion`, `ambientOcclusionPairs`, `ambientOcclusionSteps`; the multi-scale A/B
|
|
142
|
+
settings `multiScaleEdge` and `multiScaleSigma` stay internal).
|
|
143
|
+
`VDBFrameRendererSettings` is removed; `VDBFramePhase` → `VDBFramePhaseName`, `VDBFrameMultipleScattering` →
|
|
144
|
+
`VDBFrameMultipleScatteringMode` (the core's declarations, re-exported).
|
|
145
|
+
- `neuralNetwork` → `mlp` (EXPERIMENTAL: the generic small-MLP data, `VDBFrameMlp`; default our trained weights; null
|
|
146
|
+
runs 'neural' / 'mlp' as 1D diffusion).
|
|
147
|
+
- The default network of `'neural'` / `'mlp'` is **our own**, trained on procedural media only (K6.N; D36): scenes that
|
|
148
|
+
select `'neural'` (the default mode) change a little. His weights are no longer shipped.
|
|
149
|
+
- `renderFroxels()` / `holdFroxels` → `froxels` (false keeps the last froxels: the core's `update(…, { froxels })`).
|
|
150
|
+
- `passHook` is `{ timestampWrites?, begin?, end? }`: timestamp writes bracket the kernels of each core update
|
|
151
|
+
(`VDBFramePass` is removed).
|
|
152
|
+
- `redrawStats` is the core's `VDBFrameRedrawStats` (with `volumeShadows`); `environment` / `environmentLights` (the
|
|
153
|
+
TSL readback) are removed: the core extracts environment lights on the GPU.
|
|
154
|
+
- New `VDBFrameRenderer.core`: the `VDBFrameRenderer` (its `outputs`, after the first render).
|
|
155
|
+
- `VDBFrameVolume.emissionColor` takes `VDBEmissionColor` data (`'white'`, `{ spectrum: 'planck' | 'soot', exponent }`,
|
|
156
|
+
`{ lut }`, `{ wgsl }`); `vdbFrameBlackbodyEmission(s, e)` and `VDBFrameBlackbodyHook` are removed (use
|
|
157
|
+
`{ spectrum: s, exponent: e }`). A TSL hook throws `VDB_BAD_OPTION`.
|
|
158
|
+
- `vdbFrameLights` / `vdbFrameAllLights` → the core's `VDB_FRAME_LIGHT_BITS` (`ambient`, `point`, `directional`, `spot`,
|
|
159
|
+
`hemisphere`, `environment`) / `VDB_FRAME_ALL_LIGHTS`, re-exported.
|
|
160
|
+
- `VDBFrameVolume` drops `sourceUniforms`, `volumes` and the pass-material fields; its box is `boxMatrix`.
|
|
161
|
+
`vdbVolumeUniforms` / `vdbVolumeNodes` are deleted (K6.11, below).
|
|
162
|
+
- `ambientOcclusion` is **on by default** (4 direction pairs; D35): ambient, hemisphere, light-probe and environment
|
|
163
|
+
light is attenuated by the medium (about 35 to 148 % too bright in single scattering without it, against the K6.R
|
|
164
|
+
reference). `ambientOcclusion: false` gives 0.1's unshadowed light exactly; scenes without such lights do not change.
|
|
165
|
+
- Overlapping volumes in a froxel always combine order-independently; 0.1.0 blended them in draw order (his "over"
|
|
166
|
+
blend, gone with D35). One volume per froxel renders the same. The setting `froxelMix` of the 0.2 development builds
|
|
167
|
+
(never on npm) is deleted; its `'mixture'` is the behaviour now.
|
|
168
|
+
- The internal A/B setting `ambientProbe` (`VDBFrameInternalSettings`, `'irradiance'` | `'radiance'`) is deleted with
|
|
169
|
+
no deprecation (K6.Q1b): the light probe's sky up / down terms are three's irradiance along ± the sky, as the
|
|
170
|
+
default always was ('radiance' moved the K6.R reference by at most 2 points). A cast that set it does nothing now.
|
|
171
|
+
- `vdbVolumeUniforms`, `vdbVolumeNodes` and their types (`VDBVolumeNodes`, `VDBVolumeNodesOptions`, `VDBVolumeUniforms`,
|
|
172
|
+
`VDBVolumeUniformParameters`, `VDBThreeSourceFactory`) are deleted with the sources' TSL half, with no deprecation
|
|
173
|
+
cycle (D35): `vdbDenseTextures` / `vdbSparseSource` are handles with no GPU object. Gone from them: the dense
|
|
174
|
+
source's `textures` (`VDBDenseChannelTextures`), the sparse source's `pyramid`, `pyramidBuilds`, `refreshPyramid()`,
|
|
175
|
+
`nodeAverageFn()`, `skipEmptyFn()`, `createUniforms()`, `createNodes()`, `VDBSparsePyramid`,
|
|
176
|
+
`VDBSparseVolumeUniforms` and the `pyramidBuild` option; a sparse source's `gpuBytes` is `{ pool }`. A custom TSL
|
|
177
|
+
material uses `VDBGridNode`; custom WGSL or compute the core sources' `wgsl()`.
|
|
178
|
+
- `VDBSequence` moves to the core (`@pmndrs/vdb`; engine-free); `@pmndrs/vdb/three` re-exports it.
|
|
179
|
+
|
|
180
|
+
### Added
|
|
181
|
+
|
|
182
|
+
- `VDBVolumeMaterial` (EX1a): parameters and uniforms `opticalDepth`, `densityReference` and `shadowReach`, and the
|
|
183
|
+
member `densityReferenceAuto` (see "Breaking: defaults" above). `pool.info(id).rootAverage` (core): the root node's
|
|
184
|
+
average statistic, the mean of the grid's active values (NaN for an image without one).
|
|
185
|
+
|
|
186
|
+
Every export new since 0.1.0 (`packages/vdb/test/api-surface/*.txt` against the 0.1.0 tag), by entry point. The entries
|
|
187
|
+
after the list describe them.
|
|
188
|
+
|
|
189
|
+
- `@pmndrs/vdb`: values `vdbCreateFrameRenderer`, `vdbFrameDefaultSettings`, `vdbFrameDefaultVolumeParams`,
|
|
190
|
+
`vdbFrameIntegrateWgsl`, `vdbFrameIntegrateEntries`, `vdbVolumeShadowWgsl`, `vdbEmissionProbeWgsl`, `vdbSparseSource`,
|
|
191
|
+
`vdbCreateLevelSetPass`, `vdbLevelSetSurfaceWgsl`, `vdbCreatePointPass`, `vdbPointSpriteWgsl`, `VDBSequence`,
|
|
192
|
+
`vdbGridStats` and `vdbDecodeToAtlas` (the renamed `…Gpu` functions), `VDB_FRAME_LIGHT_BITS`, `VDB_FRAME_ALL_LIGHTS`,
|
|
193
|
+
`VDB_VOLUME_SHADOW_MAX_CASCADES`, `VDB_VOLUME_SHADOW_VIEW`, `VDB_EMISSION_GRID`. Types: the frame renderer's
|
|
194
|
+
(`VDBFrameRenderer`, `VDBFrameRendererOptions`, `VDBFrameVolume`, `VDBFrameVolumeParams`, `VDBFrameInput`,
|
|
195
|
+
`VDBFrameCamera`, `VDBFrameLight`, `VDBFrameEnvironment`, `VDBFrameOccluder`, `VDBFrameTargets`, `VDBFrameSettings`,
|
|
196
|
+
`VDBFrameEmissionLightSettings`, `VDBEmissionColor`, `VDBFrameMlp`, `VDBFrameMlpLayer`, `VDBFramePhaseName`,
|
|
197
|
+
`VDBFrameMultipleScatteringMode`, `VDBFrameWrap`, `VDBFrameMat4`, `VDBFrameVec3`, `VDBFrameOutputs`,
|
|
198
|
+
`VDBFrameEmissionProbes`, `VDBFrameUpdate`, `VDBFrameUpdateOptions`, `VDBFrameRedrawStats`, `VDBFrameTimestamps`,
|
|
199
|
+
`VDBFrameIntegrateWgslOptions`, `VDBFroxelLayout`, `VDBVolumeShadowMap`, `VDBVolumeShadowRequest`,
|
|
200
|
+
`VDBVolumeShadowDrawn`), the sparse source's (`VDBSparseSource`, `VDBSparseSourceOptions`, `VDBSparseSourceUpdate`,
|
|
201
|
+
`VDBSparseVolume`, `VDBSparseVolumeOptions`, `VDBSparseVolumeGrids`, `VDBSparseLod`, `VDBSparseIndexBox`,
|
|
202
|
+
`VDBVolumeSlot`), the passes' (`VDBLevelSetPass`, `VDBLevelSetPassOptions`, `VDBLevelSetPassFrame`,
|
|
203
|
+
`VDBLevelSetPassDraw`, `VDBLevelSetPassPool`, `VDBPointPass`, `VDBPointPassOptions`, `VDBPointPassFrame`,
|
|
204
|
+
`VDBPointPassData`), the sequence's (`VDBSequenceOptions`, `VDBSequenceFrameLoader`, `VDBSequenceTarget`,
|
|
205
|
+
`VDBSequencePoolLike`, `VDBSequenceRange`, `VDBSequenceLoopMode`, `VDBSequenceStats`), `VDBBoxPyramid`,
|
|
206
|
+
`VDBBoxPyramidOptions` and `VDBBrickMajorantOptions`.
|
|
207
|
+
- `@pmndrs/vdb/tools`: values `vdbLevelSetMesh`, `vdbLevelSetMeshChunks`, `vdbLevelSetMeshDecimate`, `vdbTreeNodes`, `vdbBrickMajorant`, `vdbBrickAtlas`,
|
|
208
|
+
`vdbValueRange`, `vdbMajorantWalk`, `vdbDeltaTrack`, `vdbRatioTrack`, `vdbFloatToHalf`, `vdbHalfToFloat`, `vdbRoundToHalf`, `VDB_HALF_LEAF_CODEC`, `vdbPointRenderDataTransfer`,
|
|
209
|
+
`wvdbDensePartialVolume`, `wvdbDenseResolve` and the five renamed `…Cpu` readers. Types `VDBLevelSetMesh`,
|
|
210
|
+
`VDBLevelSetMeshOptions`, `VDBLevelSetMeshChunk`, `VDBLevelSetMeshChunkOptions`, `VDBLevelSetMeshDecimateOptions`, `VDBTreeNode`, `VDBTreeNodesOptions`, `VDBBrickMajorant`,
|
|
211
|
+
`VDBBrickMajorantOptions`, `VDBBrickAtlas`, `VDBBrickAtlasOptions`, `VDBValueRange`, `VDBValueRangeOptions`,
|
|
212
|
+
`VDBMajorantSegment`, `VDBMajorantWalkOptions`, `VDBCollision`, `VDBTransmittance`, `VDBDeltaTrackOptions`,
|
|
213
|
+
`VDBRatioTrackOptions`, `VDBPointRenderAttribute`,
|
|
214
|
+
`VDBPointRenderDataProgress`, `ParseVdbOptions`, `VdbGridDescriptor`, `WvdbDenseFill`, `WvdbDensePartialFill`,
|
|
215
|
+
`WvdbDensePartialOptions`.
|
|
216
|
+
- `@pmndrs/vdb/three`: `VDBLevelSetPhysicalMaterial` (`VDBLevelSetPhysicalMaterialParameters`, `VDBLevelSetBackdrop`),
|
|
217
|
+
`VDB_FRAME_LIGHT_BITS`, `VDB_FRAME_ALL_LIGHTS`, and the types `VDBFrameSettings`, `VDBFramePhaseSettings` (the phase
|
|
218
|
+
fields a volume may override), `VDBFramePhaseName`, `VDBFrameMultipleScatteringMode`, `VDBEmissionColor`,
|
|
219
|
+
`VDBFrameMlp`, `VDBFrameMlpLayer`, `VDBFrameTimestamps`, `VDBFrameUpdate`, `VDBSequenceFrameLoader`.
|
|
220
|
+
|
|
221
|
+
- `@pmndrs/vdb/three` and core (K6.5b): meshes shadow volumes. `./three` passes the shadow maps three draws for its
|
|
222
|
+
directional, spot and point lights to the core as occluders (`VDBFrameInput.occluders`, `VDBFrameOccluder`: a depth
|
|
223
|
+
map and the view-projection it was drawn with), with no frame of lag; `settings.occlusion` (default `true`) turns it
|
|
224
|
+
off. three draws a light's map only when a lit mesh with `receiveShadow` is in the scene.
|
|
225
|
+
- Froxel renderer (K7.3, K6.3): `multipleScattering: 'multi-scale'` (diffusion from blurred mips of the shadow grid,
|
|
226
|
+
`settings.multiScaleLevels`, `'frame'` lighting) and `'mlp'` (the generic evaluator under its own name).
|
|
227
|
+
- `@pmndrs/vdb/tools` (K7.12): `writeNvdb(images, { segments: 'per-grid' })` and `vdbBakeCoarseFirst(source, { segments:
|
|
228
|
+
'per-grid' })` write one `.nvdb` segment per grid, as `io::writeGrids` and `nanovdb_convert` with several inputs do, so
|
|
229
|
+
native NanoVDB v14 `io::readGrid(file, n)` reads every grid (it misreads grid n >= 1 inside a multi-grid segment,
|
|
230
|
+
K7.13). The default stays `'one'` (one segment: a stream reader knows the full grid's size and type at the preview).
|
|
231
|
+
`NvdbFile`, `NvdbStreamReader` and `vdbStreamCoarseFirst` read both layouts; with per-grid segments the stream learns
|
|
232
|
+
of the full grid when its segment starts (the swap moves the grid, and `voxelRatio` is 1 until then).
|
|
233
|
+
- `@pmndrs/vdb/tools` (G14b): `vdbToWvdb` bakes point data grids as `.wvdb` points grids (positions and `Cd`, every n-th
|
|
234
|
+
point above `maxPoints`, his §3.5 LOD order), in file order beside the float grids, as his `wvdb` CLI does. Our bake of
|
|
235
|
+
`sphere_points.vdb` equals his `sphere_points.wvdb` in the header and two of three chunks; the third differs in two
|
|
236
|
+
coordinates by one 16-bit code (our P decode follows native OpenVDB, DIVERGES V202). `pnpm fixtures:points-wvdb` bakes
|
|
237
|
+
the local point samples (the 157 MB waterfall becomes a 14 MiB `.wvdb` of 3.2 M points).
|
|
238
|
+
- Examples (G14b): demo 14 streams a `.wvdb` points bake LOD by LOD (`?source=wvdb`, `WvdbStreamReader` with partial
|
|
239
|
+
LODs, `VDBPoints.fromWvdbGrid` / `addWvdbLevel`): every 64th point first, filling in to the full cloud as pages arrive;
|
|
240
|
+
`?stream=<KiB>` paces the stream per frame.
|
|
241
|
+
- Examples (G13c-a1): demo 13 antialiases its traced level sets while the camera rests: 16 frames jittered over a 4×4
|
|
242
|
+
sub-pixel grid, averaged in linear colour before tone mapping (`examples/src/demos/jitter-accumulator.ts`; "antialias
|
|
243
|
+
at rest" toggle, `?aa=0` off). The converged frame is the 4×4 supersampled one, so the teapot lid's specks (a groove
|
|
244
|
+
narrower than a pixel, G13c-a) go; a moving camera shows the plain frame. No library change.
|
|
245
|
+
- CI (K7.14, K7.C4): a weekly `Native parity` workflow (`.github/workflows/native-parity.yml`) runs `pnpm parity:native`
|
|
246
|
+
against a cached native OpenVDB / NanoVDB v14 build (or the K7.7 image on `workflow_dispatch`). `parity:native` gains
|
|
247
|
+
the sections `blosc` (the K7.C1 frame oracle `blosc_frames` and the whole-file checks) and `stats` (Welford node stats
|
|
248
|
+
equal native); `native-order.test.ts` runs in its `tests` section; the native build and the image build `blosc_frames`.
|
|
249
|
+
- `@pmndrs/vdb/three` (G13c): `VDBLevelSetPhysicalMaterial` option `backdrop: 'object'` (type `VDBLevelSetBackdrop`)
|
|
250
|
+
copies the frame before each draw of the material, so glass sees the glass drawn behind it (three copies once per
|
|
251
|
+
render; `'render'` stays the default). With `renderer.shadowMap.transmitted = true` the material casts a coloured
|
|
252
|
+
shadow, the light it lets through (`transmission · color · (1 − F0)² ·` Beer attenuation over `thickness`), as its
|
|
253
|
+
`castShadowNode` unless one is set; `material.shadowTintNode` holds the colour.
|
|
254
|
+
- `@pmndrs/vdb/three` (G13c): `specularAntialiasing` on both level-set materials (default off): geometric specular
|
|
255
|
+
antialiasing of the traced normal (Tokuyoshi and Kaplanyan), so low-roughness highlights and clearcoats on sharp
|
|
256
|
+
creases spread over the pixel instead of hitting a few pixels with extreme values. The materials set `roughnessNode`
|
|
257
|
+
(and `clearcoatRoughnessNode`) for it.
|
|
258
|
+
- `@pmndrs/vdb/three` (G13c-a1b, D42 (3)): new export `VDBLevelSetVelocityNode`, the velocity of a traced level set's
|
|
259
|
+
hit for temporal antialiasing and upscalers. three's `velocity` gives the proxy box's motion, which makes a temporal
|
|
260
|
+
resolve worse than no antialiasing (ACES error on the teapot lid 0.0110, the plain frame 0.0084, with the hit's
|
|
261
|
+
velocity 0.0048). Put one node in the scene pass's (or the renderer's) MRT as `velocity`: it writes
|
|
262
|
+
`ndc(current) − ndc(previous)` of the hit for `VDBLevelSetMaterial` and `VDBLevelSetPhysicalMaterial`, and three's
|
|
263
|
+
own `velocity` for every other material. It tracks the previous view-projection per camera and each grid's placement
|
|
264
|
+
(`pool.setTransform`: a moving level set gets its own motion), reads three's TRAA's unjittered projection or one
|
|
265
|
+
given with `setProjectionMatrix`, and `reset()` drops the previous frame at a cut or a resize. The package gains no
|
|
266
|
+
dependency: the node serves three's TRAA, `@pmndrs/upscaler` or a pass of your own. Docs: "Temporal antialiasing
|
|
267
|
+
and upscalers" on the level-sets page. Demo 13's demo-local node is gone (it uses this one).
|
|
268
|
+
- `@pmndrs/vdb/three`, core level-set pass and helper (G13c-a): `normalStep: 0` shades with the exact gradient of the
|
|
269
|
+
trilinear cell the trace hits (the surface the trace found; it never faces away from the ray, but it jumps across
|
|
270
|
+
cell faces). Opt-in; the default stays the central difference at 1 voxel. The `'levelSet'` helper's module grows by
|
|
271
|
+
96 bytes (minified).
|
|
272
|
+
- `@pmndrs/vdb/tools` (K3.7c): `vdbLevelSetMesh(image, options)` meshes a level set's zero surface (table-free surface
|
|
273
|
+
nets over the sparse leaves; world or index space, optional normals, iso value, clip box) for collision and export.
|
|
274
|
+
Replaces mjurczyk's `LevelSetMesh`.
|
|
275
|
+
- `@pmndrs/vdb/tools` (K3.7c-a): `vdbLevelSetMeshChunks(image, { chunkSize })` meshes in index-space chunks, one chunk
|
|
276
|
+
in memory at a time; seam vertices are bit-identical, so the chunks joined on equal positions are the
|
|
277
|
+
`vdbLevelSetMesh` result (types `VDBLevelSetMeshChunk`, `VDBLevelSetMeshChunkOptions`). New `vdbLevelSetMesh` options,
|
|
278
|
+
all off by default (the default mesh is unchanged byte for byte): `project` (vertices onto the cell's trilinear iso
|
|
279
|
+
surface), `relax` (iterations of Gibson's cell-constrained relaxation, for binary-like data or better-shaped
|
|
280
|
+
triangles with `project`) and `tiles` (also mesh where tiles meet tiles or the background: fog volumes, and an
|
|
281
|
+
`isoValue` outside a level set's band when its tiles hold other values; a clamped band still throws there).
|
|
282
|
+
- `@pmndrs/vdb/tools` (K3.7c-b, #55): `vdbLevelSetMeshDecimate(image, mesh, { error, isoValue, targetTriangles })`
|
|
283
|
+
reduces a `vdbLevelSetMesh` mesh or one chunk of `vdbLevelSetMeshChunks` by edge collapses in quadric-error order,
|
|
284
|
+
each accepted only while the changed triangles stay within `error` voxels (default 0.1) of the grid's trilinear iso
|
|
285
|
+
surface, keep their side and are not needles (type `VDBLevelSetMeshDecimateOptions`). The result's vertices are a
|
|
286
|
+
subset of the input's (positions and normals bit for bit); boundary and seam vertices are kept, so decimated chunks
|
|
287
|
+
still join. The bound is checked at sample points on each changed triangle; between them up to 9 % more was
|
|
288
|
+
measured on a 0.05-voxel lattice (7 % on an Fp8 torus, 9 % beside a box's edges). Sphere 17,424 → 1,874 triangles, whole teapot 3.37 M → 108 k at 0.1 voxel. No new
|
|
289
|
+
dependency (meshoptimizer is a devDependency of the comparison test only).
|
|
290
|
+
- `@pmndrs/vdb/tools` (K3.7c-b2, #56): three options of `vdbLevelSetMeshDecimate`, all off by default (the default
|
|
291
|
+
result is the same bytes): `creases` (also accept a collapse that leaves the surface where it is, so vertices merge
|
|
292
|
+
inside flat faces and along straight creases: the test box goes to 6 % of its triangles instead of 23 %, no
|
|
293
|
+
farther from the level set than the input mesh was), `repair` (split the mesher's saddle edges into two sheets by
|
|
294
|
+
the field's side, adding copies of their vertices, and let collapses replace triangles that face against the
|
|
295
|
+
field: the clipped teapot's 11 saddle edges go, its inward-facing triangles drop from 16 to 4) and
|
|
296
|
+
`bound: 'hard'` (the bound holds at every point of each changed triangle, from per-cell gradient intervals of the
|
|
297
|
+
trilinear field; 7 to 63 % more triangles and about three times the field samples). The decimator also caches each
|
|
298
|
+
triangle's field check and samples a triangle from its middle outward: the same result for 6 to 25 % fewer field
|
|
299
|
+
samples.
|
|
300
|
+
- `@pmndrs/vdb/tools` (EX1b, #58): `vdbTreeNodes(image, { leaves, tiles, internalNodes })` is a generator over a scalar
|
|
301
|
+
grid image's tree: leaves (`origin`, `activeVoxelCount`), tiles (`level`, `origin`, `size`, `value`, `active`;
|
|
302
|
+
`tiles: 'active' | 'all' | 'none'`) and, with `internalNodes`, the upper and lower nodes (types `VDBTreeNode`,
|
|
303
|
+
`VDBTreeNodesOptions`). Float, Half, Fp4, Fp8, Fp16 and FpN grids. Examples: demo 06's leaf boxes and demo 04's
|
|
304
|
+
leaf-or-tile check use it, so both demos import the public API only.
|
|
305
|
+
|
|
306
|
+
- `@pmndrs/vdb` (P1.3, P1.4): the `majorant` WGSL profile for delta and ratio tracking. `vdbMajorantInit(g, o, d, tMin,
|
|
307
|
+
tMax)` / `vdbMajorantNext(&it)` walk a piecewise-constant bound of the sampled field along an index-space ray;
|
|
308
|
+
`majorant: 'brick'` (default; a DDA over the grid's brick bounds), `'global'` (one segment, `valueMax`) or `'nodeMax'`
|
|
309
|
+
(an HDDA bounded by node stats); `minima: true` adds `vdbMajorantMinimum`; `vdbMajorantGlobal(g)` in every mode.
|
|
310
|
+
`VDBBrickMajorant` takes optional `origin` and `minima`; `pool.info()` reports `majorantOrigin` and `majorantMinima`.
|
|
311
|
+
- `@pmndrs/vdb/tools` (P1.2): `vdbBrickMajorant(image, { brickLog2, minima, align, outside, resolution })` builds the
|
|
312
|
+
brick bounds for `pool.setMajorant`; `align: 'pathtracer'` lays them out as pmndrs/pathtracer's `brickMajorants`.
|
|
313
|
+
- `@pmndrs/vdb` (P1.15): `pool.buildMajorant(id, options)` builds a grid's brick majorant on the GPU (the options of
|
|
314
|
+
`vdbBrickMajorant`, `brickLog2` up to 6): the next `update(encoder)` records a compute pass into your encoder that fills
|
|
315
|
+
the majorant range, equal to `vdbBrickMajorant` bit for bit; `replace` rebuilds it for the new image (sequences).
|
|
316
|
+
`pool.info()` reports `majorantBuilt` (true for a majorant the pool builds, false for one set from data); core re-exports `VDBBrickMajorantOptions`. Both builders now store a bound of
|
|
317
|
+
-0 as +0.
|
|
318
|
+
- `@pmndrs/vdb/tools` (P1.17): `vdbBuildFromDense(values, dims, { layout: 'x-fastest' })` reads an array laid out
|
|
319
|
+
`x + nx·(y + ny·z)` (a 3D texture's order) in place, with no transposed copy; the image equals the one built from the
|
|
320
|
+
transposed array byte for byte. The default (`'x-major'`) is unchanged. `nvdbPoolType(metadataOrGridType)` gives the
|
|
321
|
+
pool / module type name (`'float'`, `'fp8'`, ...) of a `.nvdb` grid type (`'Float'`, `'Fp8'`, ...), or `null`. New
|
|
322
|
+
type `VDBDenseLayout`.
|
|
323
|
+
- `@pmndrs/vdb` (EX1f-a): `pool.setValueMax(id, valueMax | null)` sets a grid's global value bound (what
|
|
324
|
+
`vdbMajorantGlobal(g)` returns and the `'global'` majorant walk uses) after `add`, or returns to the default; only the
|
|
325
|
+
record is written. `pool.unboundedGrids` lists the grids with no finite bound (an image without statistics and no
|
|
326
|
+
`valueMax`), and `vdbCheckModule(pool, options)` now throws `VDB_NO_STATS` when a `majorant` module would walk one of
|
|
327
|
+
them on its global bound (`'global'`, `'brick'` without brick bounds, `'nodeMax'` without statistics): a shader cannot
|
|
328
|
+
step with an infinite bound. The default bound is unchanged (`max(root max, background)`).
|
|
329
|
+
- `@pmndrs/vdb/tools` (EX1f-a): `vdbValueRange(image, { outside })` returns the exact `{ min, max }` of the field a
|
|
330
|
+
shader samples inside the grid's support box, for `pool.setValueMax`. The default bound counts the root background,
|
|
331
|
+
which a fog volume converted from a level set stores as 3 while its field never passes 1: three times the tentative
|
|
332
|
+
collisions of a tracker on the global bound.
|
|
333
|
+
- `@pmndrs/vdb` (EX1f-b): four opt-in helpers for the `majorant` WGSL profile, so a path-tracing host stops copying
|
|
334
|
+
the tracking loops. `helpers: ['majorantWorld']` gives `vdbMajorantInitWorld(g, o, d, tMin, tMax)` (a world-space
|
|
335
|
+
ray); `'majorantGlobal'` gives `vdbMajorantInitGlobal(…)`, the one-segment walk on the global bound whatever brick
|
|
336
|
+
bounds the grid has (bricks or the global bound per ray, at run time, in one module); `'deltaTrack'` gives
|
|
337
|
+
`vdbDeltaTrack(&it, &acc, sigma, maxLookups) -> VdbCollision` and `'ratioTrack'` gives
|
|
338
|
+
`vdbRatioTrack(&it, &acc, sigma: vec3f, cutoff, maxLookups) -> VdbTransmittance` (per-channel transmittance under one
|
|
339
|
+
shared majorant, with Russian roulette). The trackers call the host's random function by name: the new module option
|
|
340
|
+
`random: '<name>'` (a `fn <name>() -> f32` in the same shader). Every walk (`'brick'`, `'global'`, `'nodeMax'`) and the
|
|
341
|
+
lean reader take them; modules without them are byte-identical to before (about 1.9 KiB for all four).
|
|
342
|
+
- `@pmndrs/vdb/tools` (EX1f-b): the profile's CPU twins are public: `vdbMajorantWalk(image, majorant, origin,
|
|
343
|
+
direction, options)` (the segments of `vdbMajorantInit` / `vdbMajorantNext`; `worldToIndex` for the world init,
|
|
344
|
+
`mode: 'global'` for the global one), `vdbDeltaTrack` and `vdbRatioTrack` (same draws in the same order as the WGSL
|
|
345
|
+
helpers, f32 in the shader's evaluation order), with `VDBMajorantSegment`, `VDBMajorantWalkOptions`, `VDBCollision`,
|
|
346
|
+
`VDBTransmittance`, `VDBDeltaTrackOptions` and `VDBRatioTrackOptions`.
|
|
347
|
+
- `@pmndrs/vdb/tools` (P1.12): `vdbBrickAtlas(image, { resolution })` builds pmndrs/pathtracer's V3.2 sparse brick atlas
|
|
348
|
+
and indirection from a grid's leaves and tiles, bit-identical to its `buildBrickAtlas` on the same field.
|
|
349
|
+
- `@pmndrs/vdb` (P1.5): `reader: 'lean'` module option, a compact reader with the same API and values: `read` for Float
|
|
350
|
+
is 3.1 KiB instead of 17.1, `sample` 5.1 KiB instead of 19.7 (profiles `read`, `sample`, `majorant` brick/global).
|
|
351
|
+
- `@pmndrs/vdb/tools` (K7.C1): `writeNvdb(images, { codec: 'blosc' })` writes NanoVDB's `Codec::BLOSC`: LZ4 Blosc
|
|
352
|
+
frames (byte shuffle, 1 MiB blocks of four 256 KiB streams, a frame per 1 GiB), byte-identical to native NanoVDB v14 for
|
|
353
|
+
the same image, so native tools and NVIDIA Warp read them. A pure-TypeScript LZ4 block compressor (a port of LZ4 1.9.4,
|
|
354
|
+
BSD-2-Clause) backs it; no new dependency. `vdbBakeCoarseFirst({ codec: 'blosc' })` too.
|
|
355
|
+
- `@pmndrs/vdb/tools` (K7.H1): Half grids are sources: `vdbQuantize(half, mode)` for every mode, a new `'float'` mode
|
|
356
|
+
(widens a Half grid exactly; Half → Float → Half is the identity), `vdbCollapseGrid(half)` (stays Half),
|
|
357
|
+
`transformLeafValues(half, fn)` (results rounded to the nearest binary16) and core `vdbApplyValueTransform` on a Half
|
|
358
|
+
pool grid. They threw `VDB_UNSUPPORTED_GRID_TYPE` before.
|
|
359
|
+
- Three (G13a): `VDBLevelSetPhysicalMaterial`, the level-set trace on three's `MeshPhysicalNodeMaterial`: transmission
|
|
360
|
+
(real glass, refracted from the traced hit, `thickness` in world units), `ior`, attenuation, dispersion, clearcoat (on
|
|
361
|
+
the traced normal), sheen, iridescence. Same options, nodes and validation as `VDBLevelSetMaterial`.
|
|
362
|
+
- Tools (G14a): `vdbPointRenderData` takes `attributes` (other point attributes, e.g. `['v']`, in the output order),
|
|
363
|
+
`order: 'prefix'` (every prefix of k tenths is an even subsample: `prefix[k]` points) and `onProgress` (decode per
|
|
364
|
+
leaf, then the copy), and returns `bounds`. `vdbPointRenderDataTransfer(data)` lists the buffers for a worker's
|
|
365
|
+
`postMessage`. `VdbPointDataGrid.points({ onProgress })` reports the decode per leaf.
|
|
366
|
+
- Three (K3.7b): `.wvdb` points LOD streaming into `VDBPoints`: `VDBPoints.fromWvdbGrid(header)` and
|
|
367
|
+
`addWvdbLevel(level)` (uploads only the new range, draws the points that have arrived). `VDBPoints` gains `capacity`,
|
|
368
|
+
`writePoints(first, positions, colors?)`, and `pointCount` now sets the drawn instance count.
|
|
369
|
+
- K4.22, partial `.wvdb` LODs while streaming: `@pmndrs/vdb/tools` `wvdbDensePartialVolume(reader.file, event, options)`
|
|
370
|
+
turns any `WvdbStreamReader({ partialLods: true })` event into a dense volume. With `fill: 'upsample'` (default) the
|
|
371
|
+
bricks stored but not decoded yet show the coarser LOD, upsampled as mjurczyk's loader does; `'background'` leaves
|
|
372
|
+
them empty. The core's `vdbDenseSource` (and so `VDBFrameRenderer`'s dense volumes) fills them on the GPU in one
|
|
373
|
+
compute pass on `replace`, and builds the mip atlas from the result; level 1 of a pending brick is the coarser LOD itself
|
|
374
|
+
(`fillMips: 'coarse'`, default; `'box'` is his). `wvdbDenseResolve(volume)` is the CPU twin (same bytes) for hosts
|
|
375
|
+
without the core; `vdbDenseSource(device, volume, { fill: 'cpu' })` uses it. New types `WvdbDenseFill`,
|
|
376
|
+
`WvdbDensePartialFill`, `WvdbDensePartialOptions`; `WvdbDenseTexture.fill`, `WvdbVolumeLevel.decoded` (one bit per
|
|
377
|
+
decoded brick), `VDBDenseSource.fills` and `.revision`, and `VDBVolumeSourceInfo.revision` (optional). Gallery demo 16
|
|
378
|
+
has a `.wvdb` mode (`?format=wvdb&partial=upsample|upsample-box|background|off`).
|
|
379
|
+
- `@pmndrs/vdb/tools`: `parseVdb(buffer, { select })` lists a `.vdb`'s grids without decoding them and decodes only
|
|
380
|
+
the ones you pick. `VdbFile.descriptors` (`VdbGridDescriptor`: name, grid type, on-disk value type, class, compression
|
|
381
|
+
flags, transform, index bounding box and an `unsupported` reason) covers every grid; with `select`, a grid the parser
|
|
382
|
+
cannot read is reported there instead of thrown, and `select: () => false` is a listing pass that decompresses
|
|
383
|
+
nothing. Without `select`, `parseVdb` behaves as in 0.1.
|
|
384
|
+
- Core internals (issue #2; not in the published API, as the frame setting `densityFilter` that uses it):
|
|
385
|
+
`VDBVolumeSourceWgslInternalOptions.stochastic` (`src/core/internal.ts`) asks a volume source for
|
|
386
|
+
`vdbSrcDensityStochastic(v, uvw, lod, xi)`, the level-0 density from ONE voxel picked with probability equal to its
|
|
387
|
+
trilinear weight (stochastic texture filtering; its mean over uniform `xi` is `vdbSrcDensity`). A sparse source
|
|
388
|
+
reads one tree value instead of eight; a dense source returns its trilinear sample. Off by default (module bytes
|
|
389
|
+
unchanged).
|
|
390
|
+
- Core (0.2.0, K6): the frame renderer `vdbCreateFrameRenderer` (`VDBFrameRenderer`: `addVolume`, `update`, `render`,
|
|
391
|
+
`prepare`, `outputs`, `mlp`) with its input and output types; `vdbSparseSource` (one source per pool);
|
|
392
|
+
`vdbFrameIntegrateWgsl` / `vdbFrameIntegrateEntries` (the composite in a host pass, `{ spectral }`),
|
|
393
|
+
`vdbVolumeShadowWgsl` (`vdbVolumeShadow`, `vdbVolumeShadowCube`, `vdbVolumeShadowRgb`, `vdbVolumeShadowCubeRgb`;
|
|
394
|
+
`VDB_VOLUME_SHADOW_VIEW`), `vdbEmissionProbeWgsl` (`VDB_EMISSION_GRID`); the level-set and point passes
|
|
395
|
+
(`vdbCreateLevelSetPass`, `vdbLevelSetSurfaceWgsl`, `vdbCreatePointPass`, `vdbPointSpriteWgsl`);
|
|
396
|
+
`VDBFrameUpdateOptions.timestampWrites`.
|
|
397
|
+
- The defaults and limits: `vdbFrameDefaultSettings()` (the settings object, his defaults), `vdbFrameDefaultVolumeParams()`
|
|
398
|
+
(a volume's parameters), `VDB_VOLUME_SHADOW_MAX_CASCADES`, `VDB_FRAME_LIGHT_BITS` / `VDB_FRAME_ALL_LIGHTS`.
|
|
399
|
+
- The renderer's input types: `VDBFrameInput`, `VDBFrameCamera`, `VDBFrameLight`, `VDBFrameEnvironment`,
|
|
400
|
+
`VDBFrameOccluder`, `VDBFrameTargets`, `VDBFrameSettings`, `VDBFrameVolumeParams`, `VDBFrameEmissionLightSettings`,
|
|
401
|
+
`VDBEmissionColor`, `VDBFrameMlp` / `VDBFrameMlpLayer`, `VDBFramePhaseName`, `VDBFrameMultipleScatteringMode`,
|
|
402
|
+
`VDBFrameWrap`, `VDBFrameMat4`, `VDBFrameVec3`; its outputs `VDBFrameOutputs`, `VDBFrameEmissionProbes`,
|
|
403
|
+
`VDBFrameUpdate`, `VDBFrameRedrawStats`, `VDBFrameTimestamps`; `VDBFrameVolume`, `VDBFrameRendererOptions`.
|
|
404
|
+
- `multipleScattering: 'neural'` (the default, our trained network) and `'mlp'` run the EXPERIMENTAL generic small MLP;
|
|
405
|
+
its data shape (`VDBFrameMlp`) may change before 1.0.
|
|
406
|
+
- `settings.shadowResolutionMax` (K6.Q1b; default 0, off): a size-adaptive 'frame' shadow grid. Above
|
|
407
|
+
`shadowResolution`, the grid grows (in steps of 16, up to the max and the device's limits) until a cell spans at most
|
|
408
|
+
16 of a caster's voxels and 2 optical depths at its mean density; a small thin medium keeps `shadowResolution`. On
|
|
409
|
+
the K6.R reference it takes the WDAS cloud (side 80) and the absorbing bunny (96) from the 64³ grid's
|
|
410
|
+
single-scattering error (+22 %, −28 %) to 'volume' lighting's (+1 %, −12 %), at 2× and 3.4× the grid memory.
|
|
411
|
+
`VDBFrameRenderer.shadowGridResolution` reports the side the last update used.
|
|
412
|
+
|
|
413
|
+
- NanoVDB **Half** grids (`GridType::Half` = 9, raw IEEE binary16 values; implemented in NanoVDB 13.2, OpenVDB PR 2335), end
|
|
414
|
+
to end (K7.H). Core: grid type `'half'` (`VDBGridTypeName`, `VDB_GRID_TYPE_IDS.half`, in `VDB_ALL_SCALAR_TYPES`); the pool
|
|
415
|
+
holds Half images (binary16 background and root min/max decoded); `vdbModuleWgsl({ types: ['half'] })` decodes them
|
|
416
|
+
with `unpack2x16float` at every level and reads binary16 min/max stats. Modules without `'half'` are byte-identical to
|
|
417
|
+
0.1.0's. Tools: `vdbQuantize(image, 'half')`, `VDB_HALF_LEAF_CODEC`, `vdbFloatToHalf` / `vdbHalfToFloat` /
|
|
418
|
+
`vdbRoundToHalf` (NanoVDB `math/HalfLite.h` rounding), `NvdbFile` loads Half grids (`NVDB_SUPPORTED_GRID_TYPES`), and
|
|
419
|
+
the CPU readers and samplers decode them. Three: `VDBGridNode` and `vdbSparseSource` take `types: ['half']`. Values and
|
|
420
|
+
min/max match native NanoVDB v14.0.0 (`createNanoGrid<…, nanovdb::Half>`) bit for bit on the fixtures
|
|
421
|
+
(`pnpm fixtures:bake-half`).
|
|
422
|
+
- Tools: `NvdbFile` and `NvdbStreamReader` / `readNvdbStream` read `.nvdb` files with the BLOSC codec: NanoVDB's
|
|
423
|
+
LZ4 frames (`nanovdb_convert -b/--blosc`, now built by default in OpenVDB v14) in any chunking, and NVIDIA Warp's
|
|
424
|
+
BloscLZ frames (which NanoVDB 14 reads too). Hostile-input checks run before allocating. `writeNvdb` still writes
|
|
425
|
+
NONE and ZIP.
|
|
426
|
+
- Tools: the Blosc decoder reads BloscLZ frames (also inside `.vdb` files).
|
|
427
|
+
- Tools: `parseVdb` reads OpenVDB 13+ `HalfGrid`s (`Tree_half_5_4_3`) under every codec. Values widen to f32
|
|
428
|
+
exactly; the grid reports `valueType: 'float'` (its `gridType` stays `Tree_half_5_4_3`), so `buildFromVdb` makes a
|
|
429
|
+
NanoVDB Float grid from it.
|
|
430
|
+
|
|
431
|
+
### Changed
|
|
432
|
+
|
|
433
|
+
- Core (K7.4a): with `settings.spectral` on, `multipleScattering: 'neural'` (the default) and `'mlp'` run the network
|
|
434
|
+
once per colour channel in `'frame'` lighting, on that channel's extinction, albedo and optical depth (his renderer and
|
|
435
|
+
ours ran them as 1D diffusion when spectral). A grey medium now renders the same with `spectral` on or off (before,
|
|
436
|
+
spectral 'neural' was the diffusion frame: 11–57 % darker on the K7.4 report scenes). Spectral `'frame'` frames with
|
|
437
|
+
`'neural'` / `'mlp'` change; grey frames, `'volume'` lighting and spectral `'multi-scale'` (still 1D diffusion) do not.
|
|
438
|
+
The spectral 'mlp' keeps a second feature mip chain (the absorption rgb) beside the first.
|
|
439
|
+
- Core (K7.4a-3): with `settings.spectral` on, `multipleScattering: 'multi-scale'` runs K7.3's multi-scale lookup once
|
|
440
|
+
per colour channel in `'frame'` lighting (it ran as 1D diffusion when spectral): two rgba16float mip chains, of the
|
|
441
|
+
extinction rgb and the absorption rgb stacks, replace the grey rg16float chain. A grey medium renders the same with
|
|
442
|
+
`spectral` on or off. Spectral `'frame'` frames with `'multi-scale'` change; nothing else does. No spectral mode falls
|
|
443
|
+
back to diffusion now.
|
|
444
|
+
- Core (K4.22a): the dense source's `vdbSrcMaxIn` returns `1.0`, the bound of its `r8unorm` texels, instead of
|
|
445
|
+
`stats.max` baked into the WGSL; a `replace` whose max moved (every page of a streamed `.wvdb` LOD) rebuilt every frame
|
|
446
|
+
kernel. `source.stats.max` is unchanged. No frame kernel reads `vdbSrcMaxIn`: frames are byte-identical.
|
|
447
|
+
- Core (K6.Q1d, D38 (1)): in `'volume'` lighting the shadowed ambient, hemisphere and light-probe light is weighted by the
|
|
448
|
+
medium's phase function (a dipole fit of the ambient-occlusion pairs: a position scatters toward the camera mostly the
|
|
449
|
+
light that crossed the medium behind it). Against a path-traced reference this removes most of the ambient-class error of
|
|
450
|
+
forward-scattering media (WDAS cloud + ambient +18.9 → +3.7 %, + light probe +27.8 → +5.0 %); small media move to their
|
|
451
|
+
sun-only error. `'volume'` frames with ambient-class light and multiple scattering off or `'octaves'` change; with
|
|
452
|
+
multiple scattering on (the `'volume'` default, diffusion) nothing changes.
|
|
453
|
+
- Core (K6.Q1d-a, D41, #26): `'frame'` lighting does the same from a dipole stored per shadow-grid voxel (one more
|
|
454
|
+
rgba16float target per cascade in the transmittance stack; `spectral`: three). The targets are allocated only while a
|
|
455
|
+
gather reads them: `'frame'` lighting, `ambientOcclusion`, distant light in the frame and `multipleScattering` `false` or
|
|
456
|
+
`'octaves'`. They are freed at the next update after a setting turns them off and after 120 updates in a row without
|
|
457
|
+
distant light; the grid-resolution clamp counts them only while allocated. Against a path-traced reference (single
|
|
458
|
+
scattering): WDAS cloud + ambient +45 → +24 % at the default grid and +18 → +2 % with `shadowResolutionMax` 200; distant
|
|
459
|
+
light alone, mean |bias| 92 → 26 % (grid 64) and 69 → 9 % (side 128). Small media move to their sun-only error (smoke +
|
|
460
|
+
ambient +4.5 → −7.1 %). One internal `ambientPhase: 'isotropic' | 'dipole'` (`VDBFrameInternalSettings`) now serves both
|
|
461
|
+
lightings; the preview-only `ambientPhaseFrame` and `'dipole-ms'` are deleted (no deprecation: never public).
|
|
462
|
+
- Core (K6.Nb): `multipleScattering: 'neural'` keeps its network's feature reaches at the side-64 voxel whatever the shadow
|
|
463
|
+
grid side (`shadowResolution`, `shadowResolutionMax`): feature level k reads the mip level of the same world reach (the
|
|
464
|
+
internal setting `mlpReach: 'world'`; `'grid'` is the former behaviour). At the default side 64 every frame is
|
|
465
|
+
byte-identical; at larger sides 'neural' moves (the K6.N reference groups: mean |bias| 10.9 % against 11.5 % at the
|
|
466
|
+
adaptive side, 11.1 % against 11.9 % at 128). The network's feature mip chain runs to one voxel. Networks may carry an
|
|
467
|
+
anisotropy input (`VDBFrameMlp.extra: 'g'`, EXPERIMENTAL like `frameRenderer.mlp`: the phase's mean cosine after the
|
|
468
|
+
features; the default network has none).
|
|
469
|
+
- Core (K6.Nb2): a network may take the phase's two lobes as inputs (`VDBFrameMlp.extra: 'phase'`, EXPERIMENTAL: g₁, g₂, w
|
|
470
|
+
after the features, `vdbFrameMlpPhaseInputs` in tools internals), in the grey and the spectral evaluator. The shape
|
|
471
|
+
uniform holds up to four extra input values (`'g'` moved there from the reach's last lane); the default network has no
|
|
472
|
+
extra input and every default frame is unchanged.
|
|
473
|
+
- Core (K6.Q1c, D37 (5)): with `ambientOcclusion`, `jitter` and `temporal` all on, the shadowed ambient's direction ring no
|
|
474
|
+
longer turns per frame (K6.Q1a did; it averaged to the same picture within 0.1 points against the reference and left a
|
|
475
|
+
small frame-to-frame shimmer). Jittered + temporal frames with ambient, hemisphere or light-probe light change a little;
|
|
476
|
+
static frames are byte-identical. The internal A/B setting `ambientOcclusionRing` is deleted.
|
|
477
|
+
- Tools (K7.C1 / K7.H1): built and re-encoded grids now equal native NanoVDB byte for byte (GridData checksum and version
|
|
478
|
+
aside) on every native fixture: the root table and upper nodes are in native's signed-origin order again (0.1's unsigned
|
|
479
|
+
key order put grids with negative coordinates out of breadth-first order, which NanoVDB v14's `nanovdb_validate`
|
|
480
|
+
rejects), and node average/standard deviation use NanoVDB GridStats' f64 Welford update (they differed by up to 4 f32 ulp;
|
|
481
|
+
a node holding ±∞ now gets NaN, as native). A node whose values are all +∞ stores the type's largest finite value as
|
|
482
|
+
its minimum, as native. Image bytes of such grids change; values do not.
|
|
483
|
+
|
|
484
|
+
- Tools: an `.nvdb` from another NanoVDB major version (not 32.x) throws `VDBUnsupportedError` (`VDB_UNSUPPORTED`)
|
|
485
|
+
instead of `NvdbFormatError`. A `.vdb` newer than file version 225 still throws `VDBUnsupportedError`, now saying
|
|
486
|
+
it was written by a newer OpenVDB.
|
|
487
|
+
- Tools: point data grids get OpenVDB v14's read-time checks: an attribute array of size 0, a constant stride whose
|
|
488
|
+
`size × stride` passes 2^32, a total size below the point count, a zero-byte paged array and a page header of
|
|
489
|
+
i32 minimum are `VdbFormatError`s.
|
|
490
|
+
- Tools: a raw `NanoVDB1` grid buffer whose `mGridSize` is below 736 bytes or unrepresentable is an
|
|
491
|
+
`NvdbFormatError` (a 0 size used to loop over empty grids).
|
|
492
|
+
- Tools: for `.nvdb` files whose FileMetaData leaves `indexBBox` and `voxelCount` zero (Warp writes them so),
|
|
493
|
+
`NvdbGridMetadata` takes them from the grid image.
|
|
494
|
+
- Three (K6.8a, K6.11): `vdbSparseSource` / `vdbDenseTextures` are handles with no GPU object; `VDBFrameVolume` reads them
|
|
495
|
+
into the core's own sources (no second texel upload, no second pyramid; the TSL half is deleted, see Breaking).
|
|
496
|
+
- Three (K6.8a): the volume shadow receivers on meshes call the core's `vdbVolumeShadowWgsl` (one implementation),
|
|
497
|
+
binding the map's `view` buffer through a storage stand-in; `VDBVolumeShadowMap.view` gains `STORAGE` usage.
|
|
498
|
+
- Three (K6.8b): `VDBFrameEmissionLight` lights meshes with the core's `vdbEmissionProbeWgsl` (one implementation; frames
|
|
499
|
+
unchanged), binding the probe `grid` buffer through a storage stand-in; `VDBFrameEmissionProbes.grid` gains `STORAGE`
|
|
500
|
+
usage. The light's `castShadow` is always `true` (it casts no shadow): three r187 rebuilds the receivers of a
|
|
501
|
+
`castShadow` light when its node changes, which the light needs when the core makes a new probe stack.
|
|
502
|
+
- Core frame renderer (K7.15, mjurczyk's VDB-167): 'frame' lighting's transmittance pass skips the sky up / down marches
|
|
503
|
+
when nothing reads them (no light probe, hemisphere light or 'outward' environment, and no ambient-occlusion pairs);
|
|
504
|
+
those entries hold 1. Frames are byte-identical.
|
|
505
|
+
- Core frame renderer (K7.16, mjurczyk's VDB-168): textures of features that are turned off are freed at the next
|
|
506
|
+
`update()`: the temporal history (`temporal` off), the transmittance and environment grids in 'volume' lighting (the
|
|
507
|
+
shadow grid too without `castShadows`), the 'neural' / 'multi-scale' mips in other modes. The extra spectral slot
|
|
508
|
+
groups and the partial sums of a second source group go after 120 updates in a row without them. Turning a feature on
|
|
509
|
+
makes its textures again and redraws them. Frames are byte-identical.
|
|
510
|
+
- Core frame renderer (K7.16a): the froxel textures (scatter, integrated prefix, temporal history, partial sums,
|
|
511
|
+
spectral alpha pair) are freed after 120 updates in a row with no visible volume in view; `outputs.froxels` becomes
|
|
512
|
+
null then (`outputs.version` moves). The next update that draws a volume makes them again, empty, and renders as a
|
|
513
|
+
renderer that kept them (k6-frames byte-identical).
|
|
514
|
+
|
|
515
|
+
### Fixed
|
|
516
|
+
|
|
517
|
+
- Core frame renderer (K7.4a-3): with `spectral` on, `'neural'` / `'mlp'` retired their feature mips at every update
|
|
518
|
+
(K7.16's release kept them for grey media only), so a static spectral scene made new mips and redrew its
|
|
519
|
+
transmittance every frame. They are kept now, and the absorption chain goes with the extinction one.
|
|
520
|
+
- Tools (K7.17): `parseVdb` reads grid names and `string` metadata as UTF-8, with a one-char-per-byte (latin1)
|
|
521
|
+
fallback for bytes that are not valid UTF-8 (his VDB-173). It decoded latin1 before, so a non-ASCII grid name such as
|
|
522
|
+
`dichte_ü` came out as `dichte_ü` and `buildFromVdb` → `writeNvdb` wrote it double-encoded.
|
|
523
|
+
- Tools (K3.7b): `vdbQuantize` kept no inactive tiles, so a quantized (Fp8, FpN, …) level set's interior read as the
|
|
524
|
+
background and traced in the wrong place. Inactive tiles whose value differs from the fill are kept, and a level set
|
|
525
|
+
keeps its root background.
|
|
526
|
+
- Core frame renderer: a same-size dense `replace` (a sequence frame, or a streamed page) kept the shadow grid and the
|
|
527
|
+
emission probes of the previous content, since their redraw keys read only the source's `version` (bumped for new
|
|
528
|
+
textures). Volume sources now have an optional content `revision` (the dense source bumps it on every `replace`), and
|
|
529
|
+
the keys read it too (K4.22).
|
|
530
|
+
|
|
531
|
+
- Three (K6.8b): changing a `VDBFrameEmissionLight`'s `resolution` mid-run left plain lit materials (`MeshLambertMaterial`,
|
|
532
|
+
`MeshStandardMaterial`) bound to the retired, destroyed probe stack ("Destroyed texture … used in a submit", and a wrong
|
|
533
|
+
frame after); the same class as K6.10 finding 8. Receivers now bind placeholders while the core has no probes and
|
|
534
|
+
rebuild when it makes a new stack or grid.
|
|
535
|
+
|
|
536
|
+
- Three (K6.8a): a shadow light whose core map went away (hidden for a few renders, or out of the camera's layers) and
|
|
537
|
+
came back left its mesh receivers bound to the retired, destroyed map texture ("Destroyed texture … used in a
|
|
538
|
+
submit", and a wrong shadow; K6.10 finding 8). Receivers now bind placeholders while a light has no map, and rebuild
|
|
539
|
+
when the core makes a new map. Point-light receivers no longer log `CubeTextureNode: Mapping not supported`.
|
|
540
|
+
|
|
541
|
+
- Core frame renderer (K6.10a): `settings.shadowResolution` whose transmittance stack does not tile in
|
|
542
|
+
`maxTextureDimension3D` (above 1024 with one cascade, 1024 with 3–4) clamps with a one-time warning; it threw a
|
|
543
|
+
`RangeError` on every update. Volume shadow maps (`castShadowMapSize`, `VDBFrameLight.shadow.size`) clamp to
|
|
544
|
+
`maxTextureDimension2D` and to a texture whose zero-fill staging fits `maxBufferSize` (a point light's 6 faces count),
|
|
545
|
+
warned once; a 4096 point map asked for 805 MB.
|
|
546
|
+
- Core (K6.10a): replaced textures and buffers (the frame renderer, the level-set and point passes, `vdbSparseSource`,
|
|
547
|
+
`vdbDenseSource.replace` with a new size) are destroyed in a later task, so several updates recorded into one encoder
|
|
548
|
+
before its submit no longer submit a destroyed texture. `vdbDenseSource.replace` destroyed the old textures at once.
|
|
549
|
+
- Tools: the unknown-codec error names the real `nanovdb_convert` flags (`-z/--zip`, `-b/--blosc`); it suggested
|
|
550
|
+
`--codec=zip`, which doesn't exist.
|
|
551
|
+
- Three: volume shadows of spot and point lights on meshes (`frameRenderer.settings.castShadows`) read each map with
|
|
552
|
+
the light state it was drawn with, not three's current shadow coordinates, so a map that waits for
|
|
553
|
+
`castShadowUpdatesPerFrame` no longer slides off its shadow when the light moves (mjurczyk/openvdb 62a6e3e). The
|
|
554
|
+
update budget now counts only shadow lights in the scene being rendered; a light of another scene, or one removed
|
|
555
|
+
mid-frame, no longer delays the rendered scene's maps (c13f2d5) (K7.1).
|
|
556
|
+
|
|
557
|
+
### Internal (not public API)
|
|
558
|
+
|
|
559
|
+
Settings and options behind `src/{core,tools,three}/internal.ts`. They are not exported by the package, default to
|
|
560
|
+
the behaviour described above and may change or go in any release. Listed for people who build from the repository.
|
|
561
|
+
|
|
562
|
+
- Core (K7.4c, internal A/B setting, default off): `msExit: 'isotropic' | 'dipole' | 'hg'` (`VDBFrameInternalSettings`,
|
|
563
|
+
`core/internal`) weights the scattered part of a scene light (total − direct, every multiple-scattering mode but octaves,
|
|
564
|
+
both lightings, grey and spectral) by its exit toward the camera: a small-angle estimate of the scattered light's mean
|
|
565
|
+
cosine along the light, then the K6.Q1c dipole form or the HG convolution. Default `'isotropic'` is his isotropic exit;
|
|
566
|
+
frames do not move. The reference A/B (K7-4bc handoff) keeps it off by default.
|
|
567
|
+
- Core (K7.4a-2, internal, default off): `msExit: 'hg-chroma'` applies only the chromatic part of the `'hg'` exit (each
|
|
568
|
+
channel's factor over the green channel's), for spectral media whose phase g differs per channel; grey media and the
|
|
569
|
+
green channel exit as before. Frames do not move by default (K7-4a-2 handoff).
|
|
570
|
+
- Core (K3.2f, internal): the sparse source takes an internal `brickCache: 'f32' | 'f16'` option (`core/internal`
|
|
571
|
+
`VDBSparseSourceInternalOptions`; `./three` passes it through): level-0 density samples read a dense atlas of the
|
|
572
|
+
8³ blocks the frames touch (9³ bricks with the +x/+y/+z apron, a page table, least recently used bricks evicted)
|
|
573
|
+
instead of walking the tree. `'f32'` is bit-identical to the tree sampler; `'f16'` is one hardware-filtered fetch
|
|
574
|
+
within `vdbBrickHalfBound` of it. Off by default (it waits for the K6.T timing A/B); off, the WGSL and the frames are
|
|
575
|
+
unchanged.
|
|
576
|
+
- Core (K3.2f-e, internal): two more internal brick-cache options. `brickKernels: 'all' | 'gather-marks' | 'gather-only'`
|
|
577
|
+
picks which frame kernels read and mark the cache (default `'all'`, the K3.2f behaviour and WGSL byte for byte; the
|
|
578
|
+
others leave the grid density and emission direction passes reading through without marking, or on the tree).
|
|
579
|
+
`brickMarkStats` gives every kernel its own section of the marks buffer and counts the marks per kernel
|
|
580
|
+
(`vdbSparseBrickCacheInfo(source).kernelMarks`) without changing the residency or the images. The frame kernels name
|
|
581
|
+
themselves to the source (`source.wgsl({ brickKernel })`, internal). Off, nothing changes.
|
|
582
|
+
- Core (K7.4d-a, internal A/B setting, default off): `mlpFeatures: 'voxel' | 'cubic'` (`VDBFrameInternalSettings`,
|
|
583
|
+
`core/internal`). The inputs of `multipleScattering: 'neural'` / `'mlp'` are box means at one length per level (h 2^k,
|
|
584
|
+
h the largest voxel side of the last shadow-grid cascade), but the boxes were 2^k voxels per axis, and the cascade's
|
|
585
|
+
voxels are not cubes when the casters' box is not (each axis snaps to its own power of two). `'cubic'` starts the
|
|
586
|
+
feature chain with an anisotropic step, so every level is a cube of side h 2^k, and reads level 0 from the chain too
|
|
587
|
+
(grey and spectral, both evaluators). Default `'voxel'` is the former chain: frames do not move. With cubic voxels the
|
|
588
|
+
two are the same chain (K7-4d-a handoff).
|
|
589
|
+
- Internal, no API change (K6.R2): the K6.R reference renderer (`core/internal`) samples an equirect environment map by
|
|
590
|
+
next-event estimation combined with the phase-sampled escape (multiple importance sampling; setting
|
|
591
|
+
`environmentSampling`, default `'mis'`): his sky-midday reference converges ~600–2000× faster per sample. The
|
|
592
|
+
reference report (repo script) adds LDR-FLIP, ported from NVIDIA's reference and checked against their published test.
|
|
593
|
+
|
|
594
|
+
### Documentation
|
|
595
|
+
|
|
596
|
+
- JSDoc on every public export of `core`, `tools` and `three`: a summary line on each export, a doc on each option,
|
|
597
|
+
prop and member, and `@param` tags on functions, methods and constructors. No signature changed.
|
|
598
|
+
- Installation: how each bundler loads `@pmndrs/vdb/pnanovdb.wgsl`. New page on level sets (shadow-map cost) and points.
|
|
599
|
+
- Docs link the live examples, and the examples link back. `THIRD_PARTY_NOTICES.md` now credits three.js and `@webgpu/types`.
|
|
600
|
+
|
|
601
|
+
## [0.1.0] - 2026-11-24
|
|
602
|
+
|
|
603
|
+
First public release (0.1.0). Our earlier v1 unscoped packages were never published (the npm `webvdb` package is mjurczyk's, not ours);
|
|
604
|
+
`@pmndrs/vdb` is the first published name. MIT licensed. Peer: `three` r187 (optional, only for `@pmndrs/vdb/three`).
|
|
605
|
+
The renderer, `.wvdb` format and level-set and point code derive from
|
|
606
|
+
[mjurczyk/openvdb](https://github.com/mjurczyk/openvdb) (MIT); the WGSL traversal derives from
|
|
607
|
+
emcfarlane/webgpu-nanovdb (Apache-2.0). See `THIRD_PARTY_NOTICES.md`.
|
|
608
|
+
|
|
609
|
+
### Added
|
|
610
|
+
|
|
611
|
+
One package with three entry points plus `@pmndrs/vdb/pnanovdb.wgsl`: `@pmndrs/vdb` (engine-free WebGPU core),
|
|
612
|
+
`@pmndrs/vdb/tools` (pure-TS CPU tools, no GPU, no `three`) and `@pmndrs/vdb/three` (three.js adapter).
|
|
613
|
+
|
|
614
|
+
**Core (`@pmndrs/vdb`)**
|
|
615
|
+
|
|
616
|
+
- `VDBGridPool`: one storage buffer holding a grid table and any number of NanoVDB grid images (add, replace,
|
|
617
|
+
remove, setTransform, grow, version and revision counters, host-buffer mode, dispose) with a versioned GPU layout.
|
|
618
|
+
- Generated WGSL modules (`vdbModuleWgsl`, `vdbModuleEntries`, `vdbCheckModule`) per profile (`read`, `sample`,
|
|
619
|
+
`march`) for Float, Fp4, Fp8, Fp16 and FpN grids, every symbol prefixed `vdb`, slot and buffer binding modes, with
|
|
620
|
+
a size budget guarded in CI. Opt-in helpers: `fastTrilinear`, `levelSet`, `cellBoundTrilinear`, `hddaCellEnd`,
|
|
621
|
+
`rayClipSupport`, `nodeAverage`.
|
|
622
|
+
- GPU compute: `vdbGridStatsGpu`, `vdbDecodeToAtlasGpu`, the box pyramid `vdbCreateBoxPyramid`, and
|
|
623
|
+
`vdbApplyValueTransform`; `vdbDenseSource` for dense volume sources.
|
|
624
|
+
- `VDBError` with stable `code`s.
|
|
625
|
+
|
|
626
|
+
**Tools (`@pmndrs/vdb/tools`)**
|
|
627
|
+
|
|
628
|
+
- `parseVdb`: OpenVDB `.vdb` files including Blosc and zlib compression, active tiles, vector grids, point grids
|
|
629
|
+
and half-float storage.
|
|
630
|
+
- Build and quantize: `vdbBuildFromDense`, `buildFromVdb`, `vdbBuildFromLeavesDetailed`, `vdbQuantize` to Fp4, Fp8,
|
|
631
|
+
Fp16 and FpN; `vdbResampleGrid`, `vdbCollapseGrid`, `vdbTransform`, `vdbInspect`. `vdbBuildFromDense` and
|
|
632
|
+
`vdbBuildFromLeavesDetailed` take `voxelSize` as a number or `[x, y, z]` (an anisotropic, diagonal Map; G15a).
|
|
633
|
+
- `.nvdb`: `NvdbFile` (NONE and ZIP codecs), `NvdbStreamReader` / `readNvdbStream` (emits each grid as it
|
|
634
|
+
completes), `writeNvdb` (with the ZIP codec), and coarse-first baking with `vdbBakeCoarseFirst`.
|
|
635
|
+
- `.wvdb` (mjurczyk/openvdb spec): `readWvdb`, `writeWvdb`, `WvdbStreamReader`, `bakeWvdb`, and converters
|
|
636
|
+
(`vdbToWvdb`, `nvdbToWvdb`, `wvdbDenseToNvdb`).
|
|
637
|
+
- CPU reads, samplers, stats and atlas: `vdbReadValueCpu`, `vdbReadValueF32`, `vdbSampleTrilinear`,
|
|
638
|
+
`vdbSampleNearest`, `vdbGridStatsCpu`, `vdbDecodeToAtlasCpu`.
|
|
639
|
+
- Medium presets (`vdbFrameMediumPresets`, `vdbFrameMediumFromMeasurements`) and blackbody colours from an analytic
|
|
640
|
+
CIE 1931 fit (`vdbFrameBlackbodyColor`, `vdbCie1931Fit`).
|
|
641
|
+
- One error hierarchy: `VDBToolsError` with `VdbFormatError`, `NvdbFormatError`, `WvdbFormatError` and
|
|
642
|
+
`VDBUnsupportedError`.
|
|
643
|
+
|
|
644
|
+
**three.js adapter (`@pmndrs/vdb/three`)**
|
|
645
|
+
|
|
646
|
+
- `getDevice(renderer)` and `getGPUTexture` so tools share one GPU device; `VDBGridNode` with the `vdbSample` and
|
|
647
|
+
`vdbReadValue` TSL helpers.
|
|
648
|
+
- `VDBVolumeMaterial` (with `vdbProxyGeometry`), `VDBSequence` (frame playback on `pool.replace`), and compute
|
|
649
|
+
wrappers (`vdbGridStats`, `vdbDecodeToAtlas`).
|
|
650
|
+
- Coarse-first streaming: `vdbStreamCoarseFirst` and `vdbCoarseFirstApply`, with `bind` to update material, mesh and
|
|
651
|
+
node after each swap.
|
|
652
|
+
- Coarse-first into the froxel renderer without a rebuild (G16a): `vdbSparseSource(..., { followImage: true })`
|
|
653
|
+
re-reads its boxes and rebuilds its pyramid after a `pool.replace` changes the grid's box (boxes, sizes and LOD levels
|
|
654
|
+
are uniforms then), and a `VDBFrameVolume` whose box is the source's follows it. `VDBCoarseFirstEvent.types` lists
|
|
655
|
+
the family's grid types for `new VDBGridNode(renderer, pool, { types })`, so one node, source and volume take the
|
|
656
|
+
preview and the full grid with no shader or pipeline built at the swap.
|
|
657
|
+
- The froxel renderer, ported from mjurczyk/openvdb and re-based on the sparse pool: `VDBFrameVolume` and
|
|
658
|
+
`VDBFrameRenderer` (`vdbFrameRenderer`) with `'volume'` and `'frame'` lighting, temporal accumulation, phase
|
|
659
|
+
functions including Lorenz-Mie, multiple scattering (two-sided, octaves, neural), spectral media and measured
|
|
660
|
+
presets (`vdbFrameMedium`), mesh shadows, and emission light (`VDBFrameEmissionLight`, blackbody).
|
|
661
|
+
- Volume sources with LOD: `vdbDenseSource` / `vdbDenseTextures` (dense) and `vdbSparseSource` (coarse pyramid,
|
|
662
|
+
node-average LOD, optional HDDA empty-space skipping).
|
|
663
|
+
- `VDBLevelSetMaterial` (sphere-traced level-set surfaces lit by three's lights and shadows) and `VDBPoints`.
|
|
664
|
+
- Froxel renderer API (K5.9): one place for the phase (the renderer's `settings.phase*` is every volume's; a volume's
|
|
665
|
+
`phase*` props are optional `'volume'`-lighting overrides, `volume.getPhase()`); `volume.setMedium(name | props |
|
|
666
|
+
null)` applies a measured medium in one call (albedo, extinction spectrum, the renderer's phase, spectral on);
|
|
667
|
+
`densityMean` fixes the mean `normalizeDensity` divides by (one mean for a sequence); `volume.bbox` is the resolved
|
|
668
|
+
box; the volume follows a `source.replace()` by itself (`syncSource`, per draw).
|
|
669
|
+
- `VDBSequence<TFrame>` plays any frame type; `start({ source })` swaps dense `.wvdb` frames into a
|
|
670
|
+
`vdbDenseTextures` source. A dense `replace` reads a channel the frame lacks as its absent value (emission 0, mask
|
|
671
|
+
and albedo 1) and ignores a channel the source lacks. A `seek` while stopped shows the frame once decoded.
|
|
672
|
+
- `VDBSequence` frame range and ping-pong: `range: [start, end]` (inclusive; default all frames) limits playback, and
|
|
673
|
+
`loopMode: 'once' | 'repeat' | 'pingpong'` (default `'repeat'`) holds, wraps or turns around at the range end (each
|
|
674
|
+
end frame shown once per turn). `setRange()` / `setLoopMode()` change them while playing; the prefetch ring follows
|
|
675
|
+
the playback order. New types `VDBSequenceRange`, `VDBSequenceLoopMode`.
|
|
676
|
+
- `wvdbDenseToNvdb(...).sparseSourceOptions` (`@pmndrs/vdb/tools`): the index box, dense stats and box that line a
|
|
677
|
+
sparse copy of a `.wvdb` level up with the dense source, spread into `vdbSparseSource`.
|
|
678
|
+
|
|
679
|
+
### Changed
|
|
680
|
+
|
|
681
|
+
- `vdbDecodeToAtlasGpu` / `vdbDecodeToAtlas` / `vdbDecodeToAtlasCpu` sample voxel centres: cell `i` reads index
|
|
682
|
+
position `min + (i + 0.5) * (max - min + 1) / n - 0.5`, so at full resolution it is voxel `min + i` (v1 sampled
|
|
683
|
+
half a voxel past, and the last cell read the background). Atlases span the box `[min - 0.5, max + 0.5]` instead
|
|
684
|
+
of `[min, max + 1]`.
|
|
685
|
+
- `VDBSequence` has one loop knob: the `loop: boolean` option and getter are gone; `loopMode: 'once' | 'repeat' |
|
|
686
|
+
'pingpong'` (default `'repeat'`, as `loop: true` was; `'once'` is the old `loop: false`, holding at the range end)
|
|
687
|
+
is settable while playing with `setLoopMode()`. A ping-pong keeps its direction across `stop()` / `resume()`,
|
|
688
|
+
`seek()` and `setRange()` (RV).
|
|
689
|
+
|
|
690
|
+
### Fixed
|
|
691
|
+
|
|
692
|
+
- `VDBSequence` ping-pong paused on the way back resumed forward, onto a frame its prefetch ring had evicted (a
|
|
693
|
+
stall and a dropped frame); it now resumes on the way back (RV).
|
|
694
|
+
- `VDBSequence`: a frame the clock made due, still decoding at `stop()`, was shown when its decode landed; now only a
|
|
695
|
+
frame asked for (`start`, `seek`, `setRange`, `setLoopMode`) lands while stopped (RV).
|
|
696
|
+
- `vdbSparseSource` with `followImage`: a new image whose grid type the `VDBGridNode` does not compile read 0 silently;
|
|
697
|
+
it now throws `VDB_TYPE_NOT_COMPILED` naming `VDBCoarseFirstEvent.types` as the fix (as does making a source over
|
|
698
|
+
such a grid) (RV).
|
|
699
|
+
- `vdbSparseSource` kept a stats listener (and, with `followImage`, a layout listener) for every `VDBFrameVolume` made
|
|
700
|
+
over it, for the source's lifetime (RV).
|
|
701
|
+
- `vdbSparseSource` with `followImage` destroyed the old pyramid textures at once on a swap (three r187's
|
|
702
|
+
`texture.dispose()` destroys the GPU texture), though a pass recorded in the same render could still bind them; they
|
|
703
|
+
are now destroyed once the queue's submitted work is done (RV).
|
|
704
|
+
- A `VDBFrameVolume` over a dense source kept the first frame's box: a `VDBSequence` frame with another `.wvdb` box was
|
|
705
|
+
stretched into it. The box now follows the frame's box unless the volume was given a `bbox`, as mjurczyk's WVDB
|
|
706
|
+
sequences give each frame its own box (RV).
|
|
707
|
+
- `wvdbDenseToNvdb` gave the grid one voxel size (the x side's), so a `.wvdb` level with non-cubic voxels (any
|
|
708
|
+
default bake: each side's texel count rounds on its own) read back shifted and stretched in world space. Each axis
|
|
709
|
+
now gets its own voxel size; smoke.vdb's default 128 bake measures 42.3% with `vdbResampleError` (was 45.4%; a
|
|
710
|
+
`dimensions: [128, 128, 128]` bake 37.4%, was 92.4%) (G15a).
|
|
711
|
+
- `VDBFrameVolume.densityScale` had no effect on a sparse source: the density uniform's per-render stats refresh
|
|
712
|
+
overwrote the per-draw value. A new mean from a replaced image is now applied once, when its readback lands (K5.9a).
|
|
713
|
+
- Mesh shadows with `multipleScattering: 'neural'` and temporal/jitter in `'frame'` lighting failed WGSL validation
|
|
714
|
+
in `VDBFrameTransmittanceMaterial` ("unresolved value 'nodeUniform0'"): the network's layout function is now built
|
|
715
|
+
per material build (K5.9b).
|
|
716
|
+
|
|
717
|
+
### Notes
|
|
718
|
+
|
|
719
|
+
- `vdbReadValueCpu` returns the exact f64 decode; `vdbReadValueF32` matches the GPU evaluation order. The two can
|
|
720
|
+
differ by 1 ulp on Fp grids.
|
|
721
|
+
- Public names follow D32: library API is `VDB*` / `VDB_*` / `vdb*`; anything bound to one file format keeps its
|
|
722
|
+
prefix (`Vdb*` for `.vdb`, `Nvdb*` for `.nvdb`, `Wvdb*` for `.wvdb`). Each entry point exports only the
|
|
723
|
+
user-facing API.
|
|
724
|
+
- The `majorant` WGSL profile is not in 0.1 (`VDB_BAD_OPTION`).
|
|
725
|
+
- `@webgpu/types` is a dependency so the shipped declarations type-check in your project.
|
|
726
|
+
- The vendored `pnanovdb.wgsl` keeps its Apache-2.0 licence and NOTICE, shipped in the package, as does
|
|
727
|
+
`THIRD_PARTY_NOTICES.md`.
|