VR on windows phone?

I was wondering if anyone knew of a VR plug-in for windows phone so it can use something like Google cardboard?

Everything I’ve found so far only seems to work on android or iphone, but I’d love to try this out on my lumina 1520.

Hi Gnimmel - I just worked to add support for Windows Phone in the ALPS-VR framework. You can find out more info here - http://jasongfox.com/getting-started-with-vr-for-windows-phone/

Hello Jason,

That looks great, I’ll be trying this out very soon. Now I have to find a VR device that fits my 1520, but I have a 635 for testing too which should be a lot easier to get working.

Thanks for creating this.

Hi, i can’t seem to get this to work i’m using Unity 5 (free version) and every time i try to build out i get a bunch of errors, any clues?

What errors are you getting. I get the following:

Assets\ALPS\Scripts\ALPSController.cs(88,10): error CS1502: The best overloaded method match for ‘UnityEngine.GameObject.AddComponent(System.Type)’ has some invalid arguments

Assets\ALPS\Scripts\ALPSController.cs(88,28): error CS1503: Argument 1: cannot convert from ‘string’ to ‘System.Type’

This is the line:
head.AddComponent(“ALPSGyro”);

I think this one since Unity 5 should be like:
head.AddComponent();
or
head.AddComponent(typeof(ALPSGyro));

Hi,
Thanks for this it now compiles ok. Although it seems to run very slow on my lumia 1020.
I tried reducing the quality but then it displayed nothing and now reverting to what it was originally i still get nothing when we get past the unity splash screen on the phone.

I will try and do a complete fresh deployment to the phone. If you have any thoughts on the above please let know.

Ok, I can get this to run on my lumia 1020 but 2 things. Its very slow and the image is always in portrait mode even if i force this in unity to be landscape.
Can anyone tell me why this is?
Thanks

Any chance you’re running debug configuration?

Regarding rotation: are you building for windows phone 8.0 or 8.1?

Its 8.1 .
where will it tell me if im running in debug config?
I have ‘Unity C# Projects’ ticked in build settings under Debbuging for windows store. (sdk= phone 8.1)

When you export Visual Studio solution, it defaults to that. You have to change it in VS to Release or Master (later is for submission to store).

I will take a look at this and let you know. Many thanks

Making the build to release has made things a lot quicker, but it still needs to be rotated.

Any ideas how to solve this one?

my package.xappxmannfest looks like this:

  • if(gyroBool)
  • {
  • var camRot = gyro.attitude*rotFix;
  • transform.eulerAngles = initial;
  • transform.localRotation *= camRot;
  • }

I have set the playersettings in unity to start as leftLandscape and also tried right landscape. This nearly works but now the images are upside down.

Any ideas?

I believe you have to set that in the package.appxmanifest in Visual Studio, not Unity.

I have done both.
The code above is whats in Visual Studio, and i have set the properties in Unity as well.

The code you’ve wrote doesn’t really make sense… and package.appxmanifest is an XML file - you can’t write code in it. Here’s a screenshot from it:

Make sure you check to appropriate checkboxes for orientation and the app will force them.

Thanks for this. I have just tried changing these settings, they don’t seem to have any affect when i create my build onto the phone.
What to do?

Could you describe exactly what you’re seeing? You mean you rotate the phone and the application rotates with it?

I have uploaded a picture to show what i see on the phone in landscape mode:
The balls should be float above the ground at the top not as shown. As I rotate the phone so does the view.

I have developed before and pushed to the phone but not using the stereoscopic view and never had this problem.

If you like i could zip up the project and upload if anyone has a few mins to take a look. I haven’t edited any code its just straight from unity deployment.

Looks like the app is indeed in landspace rotation (note the “development build” label at bottom right). Whatever scripts are handling your rotation seem to be wrong.