WorldView is moved 90 ° to the right



I'm developping a Windows 8.1 application with GART. But I have a problem, if I create a simple projet with this configuration :
    <gart:ARDisplay x:Name="ARDisplayView" MovementThreshold="0">
        <gart:VideoPreview />
                    <Rectangle Width="100"
                               Fill="Red" />
And I specify an one ARItem list with a point just front of me. When I start the application, the point is visible at 90° on my right instead of front of me.

Have you a solution for this ?



piotrw wrote Sep 19, 2013 at 9:49 PM

Hi,I am looking into this right now. In my test, while keeping the device in landscape (default) orientation, I seem to be getting correct reading after replacing the piece of code in ARDisplay::OnOrinetationChanged(DependencyPropertyChangedEventArgs e) starting at line 1016, with the following:``` #if WIN_RT VideoRotation orientationRotation = VideoRotation.None; switch (newOrientation) { case ControlOrientation.Default: orientationRotation = VideoRotation.Clockwise90Degrees; break; case ControlOrientation.Clockwise90Degrees: orientationRotation = VideoRotation.Clockwise180Degrees; break; case ControlOrientation.Clockwise180Degrees: orientationRotation = VideoRotation.Clockwise270Degrees; break; case ControlOrientation.Clockwise270Degrees: orientationRotation = VideoRotation.None ; break; } // end switch
        if (VideoSource != null)            {                VideoSource.SetPreviewRotation(orientationRotation);            }#endif
```Can you check if this fixes your issue?

piotrw wrote Sep 24, 2013 at 9:04 PM

Resolved with changeset 73737: Win8: Fix for issue 10288: WolrdView is moved 90 ° to the right

piotrw wrote Sep 24, 2013 at 10:47 PM

Associated with changeset 73740: Rolling back changeset: 73737

piotrw wrote Sep 24, 2013 at 10:50 PM

** Closed by piotrw 24/09/2013 14:04

piotrw wrote Sep 24, 2013 at 10:50 PM

Fix wasn't correct. Rolled back change and re-opened issue