Developers want camera access on the Meta Quest. Meta hasn't let us have it yet. The next best thing is display access. Thanks to Android's MediaProjector API, you can copy the display image to a texture in your Unity project in 'near realtime' (several frames of latency) as demonstrated in this horribly architected Unity project. No PC, embedded browser, or dev mode required
UnityPlayerActivityWithMediaProjector
activity. To set this up you need to modify your AndroidManifest
file. For more info, see this page.
- This project contains a modified version of Keijiro Takahashi's AprilTag package to not vertically flip the incoming texture (as it is already 'flipped' ).
- Only works with
tagStandard41h12
tag set. - Set up in project to work with 12cm tags (measuring the inner white square) which is about what you'd get if you printed a tag on 8.5" by 11" letter paper
- The captured view is ~82 degrees in horizontal and vertical FOV on Quest 3
- The capture texture is 1024x1024, at least on Quest 3
- The left eye buffer is where captured frames come from
- Quest system camera settings do not affect the capture resolution, framerate, or eye side