Upbge +Xr_branch - test - update- game engine working in VR :D

upbge +Xr_branch - test - nothing really wrapped
win64

https://drive.google.com/file/d/17LhwCAf2mOG_iFJXQHlGPr5gbBVu47uF/view?usp=sharing

intially I get a crash on starting the engine, youle had me patch up some code -

engine runs on desktop - headset gives ‘balls spinning’ busy symbol

viewport vr stuff works like a charm though

it’s working !

new build incoming

https://drive.google.com/file/d/1DJowA9ASmD6jLEHWaqAOnOW59RVLq5a-/view?usp=sharing

2 Likes

Ø__Ò
Yes!!! This is the future I’ve been waiting for!
Which kinds of VR does this work with?

1 Like

XR - so SteamVR - Occulus - WMR - and more I think**!

I only have the WRM - Samsung Odyssey

Build incoming

https://www.youtube.com/channel/UCBmFB9pknFLUjtNgmlXbleQ
important setup info - and follow this youtube -peterK is the one adding XR

also thank Youle and Loki - they both got this working in the GE.

build - https://drive.google.com/file/d/1j97GWWaX5QMwHqNfWXYh_zPs5xZM_mQ_/view?usp=sharing

1 Like

ok so the camera in the scene is the center of the pose by default

swapped it dynamic and now I am running around

had to move lots of stuff into pre_draw callbacks so updates were all in sync (xr/logic/physics)

I notice that UPBGE Development of Facebook meta has been lock down or no long available. In addition, in two year were you able to document the buttons, accerlometer, and etc… for the occulus controller. Can you repost it on this site or facebook UPBGE File tab. I was researching the possibility of a RTS using blender for Meta like 3D Starcraft. However, some of the coding does not work because of configuration, version changes and controls. However, I did find a method that allow for spawning at the mouse position. The problem with this method is you can access the hud movement/activation. I already one or two working arounds from distributing activation to occulus buttons for everything on the single animation layer and scene. https://www.youtube.com/watch?v=Uf0SWJpgS-0&t=43s

OpenXr works in use viewport mode on upbge

Connect to the window, then when xr is started start upbge.

To poll controls use bpy.context.window_manager.xr_session_state

years and years ago I saw someone try to do something like this for like BGE 2.6. it’s still very impressive.

thanks !!

it should be working in current master but I have not tested beyond 3.6x

1 Like

xr_impulse_test2.blend (1.0 MB)
file for any interested parties*