dinsdag 23 januari 2018

Turning Monster Girls & Sorcery into a VR game

Lately I've been working on VR! I now have an oculus rift, which I can use for testing whether the VR works properly, and maybe indulge in a little bit of VR porn myself from time to time. Mostly working, I promise! ;) I had dabbled in adding VR support before I had the oculus, but there wasn't much I could do without the ability to test it. I did mean however, that the most basic support already worked, so that was nice to start with.

Monster Girls & Sorcery wasn't designed with VR in mind at the start, but since it's mostly a fantasy hentai monster girl fucking experience where you watch a guy getting dominated by monster girls in first person, most of it works quite well.

When in VR the anti-aliasing did cause visual artifacts. That was an easy fix, just turn off anti-aliasing whenever VR is on, then whenever VR is turned off, set it back to the saved setting.

Another important thing, since this is a seated experience, is recentering the camera. This wasn't too difficult to implement, as it can just be done through a function in scripting. I later heard that it didn't work on the Vive though. When trying to fix this I could find surprisingly little documentation on it. I eventually figured out that the recentering function only works when the VR is set to be a seated experience. Interestingly enough the oculus rift is set to that. While figuring it out was hard, because of the lack of documentation, The fix was easy, as I just had to tell the Vive to track differently. Luckily some patrons were willing to test for me, so they very quickly told me it worked, since I couldn't test if it worked on the Oculus rift. xD

Something I didn't keep in mind when adding the VR support is the problem with the user interface. Having a UI in VR that is attached to your screen, so it just follows the direction you look in, is very weird. So I had to change the UI. Rather than attaching it to the screen, when VR is turned on, the UI is put somewhere in the world. So the play can just look at the dialogue boxes.

Having the UI in the world means the UI can be behind other objects, not to mention the problems with render order on particles and other effects. So first I made sure the UI always renders in front of everything. I did this by making an extra camera that renders nothing but the dialogue. This camera always follows the normal camera. I made some mistakes at first, causing it to move too much, I first had to gain more understanding of the VR camera in unity to know how to fix it, but it works now, so it's all good! x) The UI now renders in front of everything.

Of course when the UI renders in front of everything, we don't want it to cover up all the sexy monster girl parts. So I set up a system to move the UI somewhere different for every scene fairly easily. I now found a good spot in every scene. At the moment it does move with the camera's base position. I might look into moving it with the rotation as well, to have a different place for every sex position you do per monster girl.

There was a problem with the Arachne hentai scene, where the camera would be backwards. This was a pretty easy fix, changing a few setting. So now it's also possible to do the Arachne scene normally.

Most issues are fixed, the next problem I will tackle is the Slime girl scene. I most likely will have to make the Slime girl non-transparent for VR, as that is most likely the issue. There are some rendering tricks that have to be done for their material, which apparently really mess up in VR.

This was a big dev blog update. I'm having a lot of fun implementing VR support, but as you can see it has been keeping me busy. Finally I will say, VR is supercool, not just for the VR porn. However! VR porn is also great. Basically VR hentai is the closest one can get to having sex with monster girls and anime girls for that matter. Just all the weird stuff that seemed so far away before. I really didn't expect to be this impressed by it before I bought the rift. I just thought I'd buy the rift as an investment to hopefully gain some patrons, but now I feel this is the future of gaming. Maybe one day there'll be something like touchable holograms, but for now, VR hentai all the way! Have a good one!

Geen opmerkingen:

Een reactie posten