VR Support For Games

To preview the game, you could export to development build, then view it on a supported VR device. To export it, you could export to a HTML file and then publish it to Itch.io or something and then you can play it in browser!

2 Likes

Ok, I finally got Quest 3S after my Quest 2 broke a couple of years ago and decided to try this out myself. Here are some of the things I did or learned:

  • after hours of trying (to make my own extension) and debugging, I was able to start immersive-vr session from within web (browser) preview without any errors in the console, but everything was pitch black. Not sure how to tell WebXR camera to render my GDevelop scene
  • finally I bought VR extension by @arthuro555 and was able to get my scene rendered, but as he mentions multiple times - it’s an early access (preview) and while you can get into VR, I don’t think controller support is there - other than the controllers are there, you can move your hands and controllers will move, but I wasn’t able to do that either (it was late last night, I will keep trying)
  • it seems you can’t have a native VR experience by building an apk from GDevelop, but it can work with Quest browser if you export for web
  • you can test from Chrome by using this extension (maybe this for Firefox) on your PC, without having to always test in your headset
  • by looking at GDevelop documentation, I found renderForVR() function in RuntimeScenePixiRenderer, but it doesn’t seem to exist yet as I was getting error when trying to use it. Are we going to get VR support in GDevelop soon? :thinking: :smiley: Also, the docs page says “Unless you know what you are doing, use the VR extension instead of this function directly.” - which extension? :thinking: :smiley:

And finally, while @arielVRplayer said they won’t be working on their extension yet, I hope @arthuro555 will continue working on his extension: By looking at your ko-fi shop page, the VR extension seems to be the most popular! It even has :fire: icon next to it. :slight_smile: If anyone can do this in GDevelop, it’s you!

It has been in GDevelop since before I released the first versions of the extension. It is as of today still in the codebase too as far as I can tell. Maybe you need to update your GDevelop installation?

I’m the one who coded this renderForVR function, and the extension it refers to is mine :sweat_smile:

Yeah the extension is in a bad state :sweat: I dont even really earn any money through the paywall (the payment processor takes a big cut :skull:), it’s mosty there to limit the reach of the extension so less people will bug me about it being incomplete :innocent:

Although I haven’t tried, you should be able to make a native experience using Meta’s bubblewrap tool: PWA Tools and Packaging

My mental health is in shambles, I haven’t been functional yet alone able to work on extensions seriously in two years at this point, and I wouldn’t get my hopes up that this’d change anytime soon :pensive:

So sorry to hear that. I hope you’ll get better, we’ll be waiting here. :heart:

I will keep trying to push with my extension, but I’m just a PHP developer who used to work with JS back when jQuery was popular, so I wouldn’t trust in myself too much :smiley:

I hope your mental health gets better! It’s nice to see you in the threads again!

Hello All! I was just wondering if there was any traction on the VR extensions. I love this engine but I am using Godot currently since it has VR functionality. Its a powerful engine but Gdevelop is defiantly friendlier. I do miss using Gdevelop.

Nope. No updates released or announced by the contributors for the main extension or any of the alternatives from over the years.

1 Like