Hello, this is less of an issue and more of a request for some information/assistance. I'd like to see if I can get the OpenXR loader working inside of GPAC's video player to allow a majority of the current VR runtimes (SteamVR, Monado, etc.) to work with GPAC so that non-mobile headsets can be used to watch 360 videos as well. There is also some coming support for standalone headsets such as the Quest 2, so it could also be a possible solution for this issue #1937. 

What I've done so far - 
Explored OpenXR Loader Structure
Explored GPAC source looking for render/frame update sections
Realized that I need to get the viewport frame(s) / frame buffer(s) instead of the full frame buffer(s)

My questions - 
1. Where are the buffers and frame update functions for the viewport in VR mode? (I've been looking in camera.c, visual_manager.c, visual_manager_3d.c, but haven't found anything specifically viewport, might just be missing them)
2. Is there an implementation somewhere for Z-axis rotation of the camera in VR mode? (I knew there is one for X and Y because the current 360 player exists, but tilting the viewport was something I wasn't able to find in camera.c or navigate.c)
3. I remember there was a section on viewport resizing, but is there anything dedicated to FOV based viewport size or is it resolution based only?

An answer to these three questions would be a great help thank you for your time!
 

Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!

- [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95

Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/

OpenXR Implementation for VR Mode (360Videos)
This is a GitHub Issue
repo:gpac
owner:gpac
Title : OpenXR Implementation for VR Mode (360Videos)
Issue date:

--- start body ---
Hello, this is less of an issue and more of a request for some information/assistance. I'd like to see if I can get the OpenXR loader working inside of GPAC's video player to allow a majority of the current VR runtimes (SteamVR, Monado, etc.) to work with GPAC so that non-mobile headsets can be used to watch 360 videos as well. There is also some coming support for standalone headsets such as the Quest 2, so it could also be a possible solution for this issue #1937. 

What I've done so far - 
Explored OpenXR Loader Structure
Explored GPAC source looking for render/frame update sections
Realized that I need to get the viewport frame(s) / frame buffer(s) instead of the full frame buffer(s)

My questions - 
1. Where are the buffers and frame update functions for the viewport in VR mode? (I've been looking in camera.c, visual_manager.c, visual_manager_3d.c, but haven't found anything specifically viewport, might just be missing them)
2. Is there an implementation somewhere for Z-axis rotation of the camera in VR mode? (I knew there is one for X and Y because the current 360 player exists, but tilting the viewport was something I wasn't able to find in camera.c or navigate.c)
3. I remember there was a section on viewport resizing, but is there anything dedicated to FOV based viewport size or is it resolution based only?

An answer to these three questions would be a great help thank you for your time!
 

Thanks for reporting your issue. Please make sure these boxes are checked before submitting your issue - thank you!

- [x] I looked for a similar issue and couldn't find any.
- [x] I tried with the latest version of GPAC. Installers available at http://gpac.io/downloads/gpac-nightly-builds/
- [x] I give enough information for contributors to reproduce my issue (meaningful title, github labels, platform and compiler, command-line ...). I can share files anonymously with this dropbox: https://www.mediafire.com/filedrop/filedrop_hosted.php?drop=eec9e058a9486fe4e99c33021481d9e1826ca9dbc242a6cfaab0fe95da5e5d95

Detailed guidelines: http://gpac.io/2013/07/16/how-to-file-a-bug-properly/

--- end body ---
