[Gear VR] Engine Changes Requested (for Mobile VR Jam)

Hey Peeps!

I’ve merged in the changes that JJ posted above into my 4.7.5 branch and I now have 0.5.0 SDK support and the Gear VR global menu working in my game. A couple of things to note when doing your own code merge:

  1. I had to manually merge all changes to Engine/Build/Commit.gitdeps.xml as there are a bunch of differences between the master and 4.7 branches that might mess things up.
  2. There is a subtle bug introduced in Engine/Plugins/Runtime/GearVR/Source/GearVR/Private/GearVR.cpp that I didn’t initially catch that prevents the GearVR module from compiling. JJ’s code from master uses FMemory::Memzero(VrModeParms); while in 4.7 we need to use FMemory::MemZero(VrModeParms);. See the case difference? Took me a bit to figure it out too (debugging at 2am Yay!).

So rather than put you all through that, I’ve made my changes public:

https://github.com/DavidWyand/UnrealEngine-Fork/tree/VRJam_4.7

You’ll still need to have a GitHub account that is part of the Epic Games organisation to see this, of course. I’ll make sure that this branch remains over the course of the Jam. Here is what it includes beyond the stock 4.7.5:

  • MSAA hack
  • 0.5.0 SDK support
  • Gear VR global menu fix
  • Virtual Head Model hack (added April 16)

Enjoy!