google-ar / arcore-unity-sdk

ARCore SDK for Unity
https://developers.google.com/ar
Other
1.4k stars 402 forks source link

Camera ProjectionMatrix breaks Screen Space - Camera canvas rendering #649

Open dnnkeeper opened 4 years ago

dnnkeeper commented 4 years ago

I noticed that screen-space canvases don't display correctly due to some non-default values in the camera projection matrix that is set by ARCoreBackgroundRenderer. Specifically, it is m02 and m12 values of the projection matrix. As I discovered these values are responsible for yaw and pitch (thanks to xdpixel article 'decoding-a-projection-matrix' ). I could zero them to fix this issue without any noticeable difference. But I'm asking myself why are these values present in the projection matrix? Is it safe to zero them?

Zumbalamambo commented 4 years ago

+1