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!

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.

I made some progress with my extension :wink:

Moaaar updates:

6 Likes

Hi, when will the webVR extension be done, and also, how do you render the 3D viewport into two different split screens?

Project looks amazing by the way.

I haven’t checked this forum in a long time, thank you for working on this extension!

Sorry, my dad passed away 10 days ago so I took some time off… I will continue working on this once I regroup with myself.

As for rendering, there’s a renderForVr() function in GDevelop which was written by arthuro (he said it in this thread about a year ago).

Hi, I am so sorry to hear that, that must be hard, I hope you are doing fine. Thanks for the link, will check it out.

Also, it says ‘Unless you know what you are doing, use the VR extension instead of this function directly.’

What VR extension??

Read this very thread, just scroll up:

edit: Arthuro started working on VR extension, and it does work. but it just renders the viewport and tracks controllers. He said he doesn’t know when or if he’ll continue working on it, so I took it upon myself to make my own extension (with AI assisted coding).

Hello Avram

My deepest condolences on the passing of your father. :frowning:

Xierra

Sorry for your loss.

I’ve looked at that other extension and all I can do is get a camera to point at the ground. It is in VR (on my Quest 3) but I can’t figure out what to do with it from there, so I’ll patiently wait for your extension.

I just saw this, sorry for your loss. I hope you are doing ok!