Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / OpenXR VR with AppGameKit Studio

Author
Message
Parry
AGK Developer
14
Years of Service
User Offline
Joined: 16th Dec 2009
Location: Swampstone
Posted: 8th Aug 2024 09:44
I need to read these forums more often to keep up with everything. Its like I live under a rock while I am programming. Since the VR plugin is no longer available, several people may find my project interesting.

The game creators has released the source code on GitHub allowing us to offer updates to AGK. I have been working to integrate OpenXR (https://www.khronos.org/openxr/) with AppGameKit (Android) for a few months now.

I do have a working Tier 2 template in Android that runs really well on the Meta Quest 2. Its not perfect though, I am getting double vision on the Meta Quest 3. Here is a link to my AppGameKit GitHub fork:

https://github.com/CounterParry/AGKRepo

In order to get this working, I had to add one command to the AppGameKit that would allow OpenXR access to the memory location of the base renderer. I am using OpenGL because I am not familiar with Vulkan. I will eventually offer this command to The Game Creators in hope that they will
add it to their source. If this command could be added, I should be able to create a VR extension that will work with AppGameKit Studio Tier 1.

Before I try to push any updates to The Game Creators, everything must work. So I need to find out what is causing the double vision on the Meta Quest 3. I am sure it had to do with "m_FOVAdjustment". The camera bound values OpenXR creates for AppGameKit don't work correctly
without multiplying them by "m_FOVAdjustment". I thinking that "m_FOVAdjustment" has to be a different value on the Meta Quest 3. Of course "m_FOVAdjustment" shouldn't need to be used at all.



Android is difficult to work with. Building and pushing to the VR headset with Android Studio is slow and clumsy. I think my next step to
create a PCVR version and get it working there.
Counterparry
DarkDIRE RPG a roguelike game build with AppGameKit Tier 2
Parry
AGK Developer
14
Years of Service
User Offline
Joined: 16th Dec 2009
Location: Swampstone
Posted: 14th Aug 2024 08:24 Edited at: 14th Aug 2024 08:26
Update: I now have OpenXR working on PCVR with AppGameKit Tier 2. Only took one and a half nights of work. The android version took 3 months.

Once I got that done, it was easy to fix the "m_FOVAdjustment" problem. The PCVR version is now working without using "m_FOVAdjustment". I still need to test it on android though.



Once I get these uploaded to my Github and everything tests out good, I will start working on a Tier 1 extension. Then submit all my updates to The Game Creators.
Counterparry
DarkDIRE RPG a roguelike game build with AppGameKit Tier 2

Login to post a reply

Server time is: 2024-11-17 22:31:21
Your offset time is: 2024-11-17 22:31:21