Hello everyone.

We have decided to phase out the Mixed Reality Forums over the next few months in favor of other ways to connect with us.

The first way we want to connect with you is our mixed reality developer program, which you can sign up for at https://aka.ms/IWantMR.

The plan between now and the beginning of May is to clean up old, unanswered questions that are no longer relevant. The forums will remain open and usable.

On May 1st we will be locking the forums to new posts and replies. They will remain available for another three months for the purposes of searching them, and then they will be closed altogether on August 1st.

So, where does that leave our awesome community to ask questions? Well, there are a few places we want to engage with you. For technical questions, please use Stack Overflow, and tag your questions using either hololens or windows-mixed-reality. If you want to join in discussions, please do so in the HoloDevelopers Slack, which you can join by going to https://aka.ms/holodevelopers. And always feel free to hit us up on Twitter @MxdRealityDev.

Cannot set field of view on this camera while VR is enabled.

Dear HoloLens Community!

I´m currently developing an application with Unity and Vuforia for the HoloLens. The application is working in the Unity Editor just as I expected, nevertheless, the app is not working after deploying it on the HoloLens.

In Visual Studio, I get the error "Cannot set field of view on this camera while VR is enabled." multiple times until I stop the app again. The FOV which is set int the Inspector of the ARCamera is 60 and Near is 0.3 and Far is 1000. I am not trying to set the field of view directly in my code so this error confuses me. Furthermore, the HoloLens seems to recognize the Vuforia Image Target but no objects are shown (not even simple 3D objects which I have put as children into the Image Target). The HoloLens only renders a grid (similar to the grid in the Unity Scene mode) which should not be there either.

An earlier version of my project is still working fine on the HoloLens and I already compared all settings I could think of (Build and Player Settings, ARCamera, Image Target, Vuforia Configuration) of the earlier working version with my current not working version and they are the same.

I am struggling now for plenty of time with this error and unfortunately, I can´t wrap my head around it. I am not sure if the problem has got something to do with Vuforia and Unity or with the HoloLens

I would be really grateful if anybody could give me advice on how to proceed now and if further information is needed to solve this problem, I will of course try to provide it!

Best regards~

P.S.: The following is a snippet of the output in my Visual Studio Console when running the broken application.

UnloadTime: 5.496400 ms

Compiled for WSA

(Filename: C:\buildslave\unity\build\artifacts/generated/Metro/runtime/DebugBindings.gen.cpp Line: 51)

Detected WindowsMR device present

(Filename: C:\buildslave\unity\build\artifacts/generated/Metro/runtime/DebugBindings.gen.cpp Line: 51)

Cannot set field of view on this camera while VR is enabled.

(Filename: C:\buildslave\unity\build\Runtime/Camera/Camera.cpp Line: 3719)

On_Open: WebSocket connection established.

(Filename: C:\buildslave\unity\build\artifacts/generated/Metro/runtime/DebugBindings.gen.cpp Line: 51)

Vuforia initialization successful

(Filename: C:\buildslave\unity\build\artifacts/generated/Metro/runtime/DebugBindings.gen.cpp Line: 51)

Found Trackable named chips with id 1

(Filename: C:\buildslave\unity\build\artifacts/generated/Metro/runtime/DebugBindings.gen.cpp Line: 51)

StartVuforia

(Filename: C:\buildslave\unity\build\artifacts/generated/Metro/runtime/DebugBindings.gen.cpp Line: 51)

Setting frame rate to 29fps

(Filename: C:\buildslave\unity\build\artifacts/generated/Metro/runtime/DebugBindings.gen.cpp Line: 51)

Cannot set field of view on this camera while VR is enabled.

(Filename: C:\buildslave\unity\build\Runtime/Camera/Camera.cpp Line: 3719)

Setting up 1 worker threads for Enlighten.

Thread -> id: 1b4 -> priority: 1

StopVuforia

(Filename: C:\buildslave\unity\build\artifacts/generated/Metro/runtime/DebugBindings.gen.cpp Line: 51)

The thread 0x10ac has exited with code 0 (0x0).
StartVuforia

(Filename: C:\buildslave\unity\build\artifacts/generated/Metro/runtime/DebugBindings.gen.cpp Line: 51)

StopVuforia

(Filename: C:\buildslave\unity\build\artifacts/generated/Metro/runtime/DebugBindings.gen.cpp Line: 51)

StartVuforia

(Filename: C:\buildslave\unity\build\artifacts/generated/Metro/runtime/DebugBindings.gen.cpp Line: 51)

Cannot set field of view on this camera while VR is enabled.

(Filename: C:\buildslave\unity\build\Runtime/Camera/Camera.cpp Line: 3719)

Cannot set field of view on this camera while VR is enabled.

(Filename: C:\buildslave\unity\build\Runtime/Camera/Camera.cpp Line: 3719)

Cannot set field of view on this camera while VR is enabled.

(Filename: C:\buildslave\unity\build\Runtime/Camera/Camera.cpp Line: 3719)

Cannot set field of view on this camera while VR is enabled.

(Filename: C:\buildslave\unity\build\Runtime/Camera/Camera.cpp Line: 3719)

Tagged:
Sign In or Register to comment.