Skip to content

Feat/depth mesh normview transform#204

Merged
dli7319 merged 9 commits intogoogle:mainfrom
salmanmkc:feat/depth-mesh-normview-transform
Mar 27, 2026
Merged

Feat/depth mesh normview transform#204
dli7319 merged 9 commits intogoogle:mainfrom
salmanmkc:feat/depth-mesh-normview-transform

Conversation

@salmanmkc
Copy link
Copy Markdown
Contributor

@salmanmkc salmanmkc commented Mar 22, 2026

Fixes #93

Three changes: applies normDepthBufferFromNormView in getDepth() and getVertex() so view-space coordinates map correctly to depth buffer space, adds depthMeshUpdateFps to decouple geometry rebuild rate from the render loop, and exposes the transform matrices for external use.

Again, same as #203 and #202 I have added a test harness, which we can rebase off of later.

Test harness issue: #205

Fixes google#93. Three changes:

1. Apply normDepthBufferFromNormView transform in getDepth() and
   getVertex() so view-space coordinates map correctly to depth
   buffer coordinates when matchDepthView is false.

2. Add depthMeshUpdateFps option to allow the expensive geometry
   rebuild to run at a lower frame rate than the depth data. The
   pose is still updated every frame for smooth tracking.

3. Expose normDepthBufferFromNormViewMatrices for external code
   that needs the view-to-depth coordinate mapping.
Adds vitest + jsdom as test infrastructure. Includes tests for the
normDepthBufferFromNormView coordinate transform in getDepth() and
getVertex(), and for the depthMeshUpdateFps throttling behaviour.
@salmanmkc salmanmkc force-pushed the feat/depth-mesh-normview-transform branch from 7172bc5 to 0828659 Compare March 26, 2026 22:28
@salmanmkc salmanmkc force-pushed the feat/depth-mesh-normview-transform branch from dc97309 to c366040 Compare March 26, 2026 22:32
@salmanmkc salmanmkc force-pushed the feat/depth-mesh-normview-transform branch from cd785e8 to 7931718 Compare March 26, 2026 22:37
@salmanmkc
Copy link
Copy Markdown
Contributor Author

the latest dependabot packages, mixed with needing rebase, redid npm install but too many package lock json files, seems to be fine now using main's changes after rebase

@dli7319 dli7319 merged commit c2d0cb7 into google:main Mar 27, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update depth mesh to work with matchDepthView = false.

2 participants