Topic locked

Renders incorrectly in all device orientations except landcapeRight (ios native demo app)

July 27, 2021 - 9:23pm #1

We've been working with iOS native SDK 9.8.5 and the corresponding sample/demo app.

The demo app is locked to landscapeRight orientation -- that is, the landscape orientation where the charging port is to the right.

In our app, we want the user to be able to generally use the device in portrait orientation.  We were having trouble with Vuforia rendering correctly, so we want back to the demo app to try it out there.

For example:

We modified the demo app to allow any orientation.  Then we launch the app while holding the phone in portrait orientation.  When the Vuforia window opens, the camera/video background image is rendered completely upside-down.  Other orientations have other issues -- the only one that works correctly is landscapeRight.  

The configureVuforia() function in VuforiaView.swift has some code to adjust for the device orientation, but it does not work -- as I described above.

What do we need to do to fix this?  Even if we don't allow rotation, but lock everything to portrait orientation (not ideal), the video is rendered upside-down, but the red highlighting of the image target and the robot model are rendered in what looks to be the correct position.

If anyone has run into this and has a solid fix, it would be greatly appreciated. 

Can someone at Vuforia take a look into this?  This is a pretty basic use case that should really "just work".

Thanks again!

Renders incorrectly in all device orientations except landcapeRight (ios native demo app)

August 2, 2021 - 8:22am #3

Hello @LocalProjects,

Per the team, the device orientation limitation was addressed in the 10.0 sample code.

https://developer.vuforia.com/downloads/samples

Thanks,

Vuforia Engine Support

Renders incorrectly in all device orientations except landcapeRight (ios native demo app)

July 29, 2021 - 9:41am #2

Hello,

Unfortunately, our native samples have been explicitly designed to handle limited use cases, such as a locked screen orientation. They are not developed, nor tested, for modifications to rendering or app lifecycle code as that is beyond Vuforia Engine APIs.

Thus, the sample is not intended to be used as a basis for a commercial app. They have only been defined to show best practices for how Vuforia Engine APIs are to be used.

That being said, I'll escalate a ticket internally to evaluate if our 10.0 samples should be modified to handle this use case.

Thanks,

Vuforia Engine Support

Topic locked