Repository navigation
Depth map, hit-test fix, Quest recording, image targets and room in captures - #478
Open
doranteseduardo wants to merge 5 commits into
Open
doranteseduardo wants to merge 5 commits into
doranteseduardo wants to merge 5 commits into
Conversation
…ead at each frame
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
A hit-test crash fix, CPU access to the depth map, and three Quest features built on the passthrough camera (session recording, image targets, and the real room under video captures).
Changes
Hit test
VRONode::hitTestGeometryandVROGeometryUtilSplitNodeByGeometryElementsno longer crash on a geometry without a vertex source; such a geometry is simply not hit.Depth map access
VROARFrame::getDepthMap(VROARDepthMap *): a CPU copy of the whole depth map in metres, its confidence in [0, 1], intrinsics scaled to the depth image, and the camera pose of the frame it belongs to.nativeGetDepthMappacks everything into one float array;ARScene.getDepthMap()returnsARScene.DepthMap.Quest: session recording from the passthrough camera
VROSceneRendererOpenXRenablesXR_KHR_convert_timespec_timeand can locate the head at a camera frame's CLOCK_MONOTONIC time.PassthroughCameraFeed(new) owns the left passthrough camera (Camera2, Horizon OS v74+) and shares it between listeners.PassthroughRecordingSourcefeedsARSessionRecorder: each frame posed with head × lens pose, intrinsics from the camera's calibration. Same video.mp4 + session.jsonl as phones; the header also carries the raw lens pose.ARScene.startRecordingtakes this path on an OpenXR session;isRecordingSupported/getRecordingStatusanswer for it.Quest: image targets
VROImageTrackerORB(new, no dependencies): FAST on a pyramid, ORB descriptors, ratio-test matching, RANSAC homography, pose from the homography and the target's physical width. Host test inViroRenderer/test/imagetracker.VROARSessionOpenXRimplementsaddARImageTarget/removeARImageTarget, searches passthrough frames a few times a second and publishesVROARImageAnchors through the delegate (ARCore's augmented-image axis convention), so image markers work unchanged.ARScenestarts the search when a headset scene gets image targets;ViroViewOpenXRhands the scene its context.Quest: the room under video captures
VROAVRecorderAndroiddraws the latest camera frame beneath the scene in the record pass (YUV → RGB in a small GLES3 shader); the scene blends over it where it is transparent. The driver's GL state cache is invalidated after the raw draw.ViroMediaRecorderlistens to the camera feed while a headset recording runs.Notes
LENS_POSE_ROTATION× 180° about X (optical → GL axes). This is the Camera2 convention as documented; the recording header keeps the raw lens pose so it can be recomposed if the headset reports it differently.CAMERA,horizonos.permission.HEADSET_CAMERA) each Quest feature reports it and does nothing; video captures stay scene-only.Testing
:viroreact:assembleReleaseand iOS ViroKit (device + simulator) build.libviro_renderer.so.