Log in or register to post comments

Unity secondary camera has inverted normals on UWP after using ARCamera

April 4, 2018 - 2:33am #1

Vuforia SDK Version: 7.1 (And 6) -

Description with steps to reproduce:

(Follow the tutorial steps to create a basic Vuforia scene. Steps 1 -2)

  1. Create a new unity project
  2. Add a ARCamera & Image target, configure vuforia
  3. Leave the DefaultCamera in the scene
  4. Disable both the ARCamera & DefaultCamera
  5. Create buttons to disable/enable the ARCamera & DefaultCamera
  6. Create an UWP .NET build, Package the build, Install & run the build
  7. Enable the DefaultCamera, the DefaultCamera renders correctly
  8. Enable the ARCamera, the ARCamera renders correctly
  9. Disable the ARCamera, the DefaultCamera will now render with what seems to be inverted normals and will remain doing so Disabling the DefaultCamera before enabling the ARCamera does not seem to fix this problem.

I also tested using two regular camera's and this bug does not happen. Sample code is online at: https://github.com/Jeroenimoo0/UWPVuforiaSecondCameraBug -

Development OS (Mac OS X, Windows, Linux): Windows -



Mobile OS and Version: UWP Version 10.0.16299 Build 16299 -



Mobile Device Manufacturer and Model name: PC (Clevo P65xRP) -



Do the Vuforia Sample Applications show the same behavior?: I was not able to test this as I can't print targets right now and the samples are for Unity 2017.3. I believe it will however since the application is very basic.

Unity secondary camera has inverted normals on UWP after using ARCamera

April 6, 2018 - 8:48am #4

Hello Jeroenimoo0,

Which devices are you deploying to?

Thanks,

Vuforia Support

Unity secondary camera has inverted normals on UWP after using ARCamera

April 6, 2018 - 1:09am #3

So far I've tested this on 3 devices. On 2 laptop's I used, both different brands and different kind of laptops (gaming vs regular laptop), this bug occurred. However I also tested this on a Microsoft Surface 2, on which this bug did not happen.

Unity secondary camera has inverted normals on UWP after using ARCamera

April 4, 2018 - 2:50am #2

Before enabling the ARCamera the DefaultCamera renders correctly

 

Enabling the ARCamera renders the cubes correctly using the ARCamera

 

After disabling the ARCamera (And enabling the DefaultCamera if it was disabled) the DefaultCamera will now render with what seems to be inverted normals.

 

This happens only on UWP.

AttachmentSize
Image icon Before.png40.96 KB
Image icon AR.png697.68 KB
Image icon After.png35.66 KB
Log in or register to post comments