Closed akssieg closed 12 months ago
Hi Akssieg,
I just learnt that it is possible right now!!
If you try out the "AR Depth Sensing" demos on this page they seem to work correctly: https://storage.googleapis.com/chromium-webxr-test/r991081/proposals/index.html
Then you may combine this with three.js and translate our C# code into JavaScript, maybe it's high time to make a JS library for DepthLab and I always welcome PRs!
Cheers, Ruofei
Hi Ruofeidu,
Thanks for providing the pointer to the WebXR proposals.
Regards, AK
@ruofeidu I am following your suggestion on code translation from C# to JavaScript but how to estimate DepthSource.FocalLength.x ? I don't see any intrinsic matrix in the data structure of https://www.w3.org/TR/webxr-depth-sensing-1/#xr-cpu-depth-info-section for WebXR.
Is Depthinfo.normDepthBufferFromNormView a projection matrix? Can I use it to estimate focal length?
Great discussion here!
I honestly have little experience with WebXR depth but three.js.
Intrinsic matrix is not that important, you may run DepthLab to obtain it and copy focal length etc. to a web demo - it should roughly align with other mobile phones... I don't see intrinsics being exposed by quickly reading https://www.w3.org/TR/webxr-ar-module-1/
Also check out my recent 3D photo demo in TF.js using the DepthLab 3D photo algorithm: https://storage.googleapis.com/tfjs-models/demos/3dphoto/index.html
The intrinsics are heuristic but work well.
Can we use arcore-depth-lab with WebXR? I want to try 3d cursor which uses arcore-depth-lab for accurate placement and orientation of the raticle.