Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Figure out how to capture images during replay #1836

Open
MarkY-LunarG opened this issue Oct 25, 2024 · 2 comments
Open

Figure out how to capture images during replay #1836

MarkY-LunarG opened this issue Oct 25, 2024 · 2 comments
Labels
openxr-experimental Related to OpenXR experimental support

Comments

@MarkY-LunarG
Copy link
Contributor

Figure out how to capture images on both Monado and Meta Quest headsets for OpenXR. This is required for CI support.

Concern: how accurate is the replay cube location? Can we compare results between runs? Probably if we record in a static position.

@MarkY-LunarG MarkY-LunarG added the openxr-experimental Related to OpenXR experimental support label Oct 25, 2024
@MarkY-LunarG
Copy link
Contributor Author

MarkY-LunarG commented Oct 28, 2024

Online says several different possibilities:

adb shell am startservice -n com.oculus.metacam/.capture.CaptureService
  -a TAKE_SCREENSHOT
  [--ei screenshot_height <screenshot_height>]
  [--ei screenshot_width <screenshot_width>]

We might be able to use:

adb exec-out screencap -p > screen.png

@MarkY-LunarG
Copy link
Contributor Author

Ok, using

adb shell am startservice -n com.oculus.metacam/.capture.CaptureService -a TAKE_SCREENSHOT --ei screenshot_width 1920 --ei screenshot_height 1080

Places the screenshot under

/storage/self/primary/Oculus/Screenshots

The files are prefixed with the application name: com.lunarg.gfxreconstruct.replay- and end with .jpg.

You can then pull them down like this:

adb pull /storage/self/primary/Oculus/Screenshots/com.lunarg.gfxreconstruct.replay-20241028-105602.jpg

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
openxr-experimental Related to OpenXR experimental support
Projects
None yet
Development

No branches or pull requests

1 participant