By Macsrok
on Wed, 06/20/2012 - 17:09
Vuforia 1.5 supports Automatic Orientation Rotation in unity 3.5. I need to rotate my application, however I don't want to support automatic rotation. I have two AR scenes, one landscape (game play) and one portrait (photo capture). Currently the application is a landscare only application. We have rotated all of our GUI so that way it appears the to be in portrait in the photo capture scene. Unfortunately when we capture and save out the photo the photo is the wrong orientation (landscape) which makes sense because the app is still in landscape orientation. When I manually set the orientation in code
[CODE]Screen.orientation = ScreenOrientation.Portrait;[/CODE]
the application rotates but Vuforia and the camera feed do not([URL=http://cdn.ad-dispatch.com/vuforia-wrong-rotation.PNG]see linked photo[/URL]). When I exit and relaunch the app Vuforia redraws the camera feed to fill the entire screen but the feed is WONKY. It appears as if it is streching the feed to fit the new orientation but still has not rotated to the correct orientation([URL=http://cdn.ad-dispatch.com/vuforia-stretched.PNG]see linked photo[/URL]). To support auto rotation I assume Vuforia is listening for a rotation event. What method or methods are called when the rotation event is triggered? Can I call these methods manually myself?
Re: Unity 3.5 + Vuforia 1.5 Orientation Rotation