[Download link at the bottom]
Important point:
To start in VR you need to go into desktop mode, go to settings, enable VR, and then restart the game. You have to have your headset on beforehand; otherwise OpenXR will fail to detect your devices at the start and the game will not launch.
You can use 7zip to unpack the gameI finally implemented VR on this project...
Here’s a list of what happened this month:
Worked on a sound system to place sound effects into different animations/conditions. Its bare bones and I moved into the next topics as soon as I could. I don't know anything about SFX but I found a book about it. Eventually will flesh out more in this topic.
I wrote code to import textures I made for Unreal into Godot. I added the textures for all the characters except one: Lucy. Blender gave me issues with the model’s export for some reason. I spent hours looking for a polygon, UV, or artifact that could lead me to a solution. None. But it’s a special case—all the other characters got their textures.
I wrote a custom inverse kinematics solver for 3D transforms. This is a biggie for me, since I’m on my journey to learn maths and mechanics. Because it’s custom-made, I know where I can implement it and how. Aside from that, Godot didn’t come with an inverse kinematics solver for global use, and pretty much all games make use of it. Procedural animations use it, VR systems use it, interactions rely on them to be realistic, and attaching custom characters in games also makes heavy use of it. I went through the paper and implemented it from what was there; so far, it works like a charm.
I made a camera system that allows players to position themselves in the world with one hand. It’s not the first time I’ve heard about playing games with one hand, but most of the time it was a joke—until most of the messages I got from all of you were about that, and I came to agree. VR video players also have this, but I find the orientation there quite limited, and I never knew why. This time Godot came with an integrated system, but it didn’t allow me to move like this and I didn’t know how it worked either, so I made one from scratch using OpenXR (which came with Godot, of course). I don’t know much about motion sickness either; I don’t suffer from it much, and when I did, it was years ago and I have no memory of that.
I implemented a menu that allows players to tweak their altitude. Sometimes you want to see from up there, others like to get in corners, others like to get stomped on… I’m all of them, but a single controller doesn’t come with that many buttons, so I wrote a menu to condense that functionality into something manageable.
More menus, for actions. Again, there aren’t enough buttons per controller, so it had to be condensed into a menu. So there you go—all the PC functionalities condensed there. There will be more in the future, which will come in the form of more menus, curves, and lasers to point directions. Also, the menus had to be coded; I had my peanut brain working overtime figuring out how projections in space worked and getting a VR controller to do all of it, lol.
VR switch in the main menu. The game uses Vulkan, which is a mystery to me and, apparently, a mystery to most, since it’s considered one of those copy-paste types of code where you just do Legos, because it’s illegible and poor as learning material—but I’m taking tangents there. According to mux213 on the Godot forums: “OpenXR takes ownership of Vulkan and has to be set up first before Vulkan can be set up. That creates an either/or situation where your game either starts in VR or in pancake mode.” So there’s no way for me to make this a simpler process.
To start in VR you need to go into desktop mode, go to settings, enable VR, and then restart the game. You have to have your headset on beforehand; otherwise OpenXR will fail to detect your devices at the start and the game will not launch.Lastly, more menus that allow you to select characters and change their speeds and sizes.
Sidenote:
Game crashes when I press the "main menu" button, noticed it by the time I was writing this and I already tested the game in 2 different computers to make sure it works, made sure it was encrypted so people dont steal everything, and I'm WASTED. game ran quite fast on both and had no problems besides what I already mentioned. A quick restart wont hurt right?
Oh, an expensive computer failed and I had to recover data... Lucky me.
https://mega.nz/folder/8zAHQboR#Q18wZglrI_zc3iAEoEDLyA