Log in or register to post comments

Projection Matrix Problems

June 15, 2012 - 2:34pm #1

I don't know what I've done, but I've just come back to my Vuforia Unity project and suddenly the camera is having its projection matrix messed up when I run on the device. The camera is stretching horizontally in a very unpleasant way :)

I can't for the life of me figure out what I must have done. If I comment out the update of the projection matrix in UpdateProjection then it's fine - but clearly that's not something I should be doing.

What might I have done?

Update

It appears that screen width and height weren't the right way around on initialization, but if I wait a bit then they are - however, this doesn't fix the problem. I'm getting a 480 x 360 back from the camera and 960x640 from the screen which maybe something to do with it. Given that the camera is 360 high not 320 as I would expect.

Re: Projection Matrix Problems

June 16, 2012 - 9:12am #5

Thank you David, that is exactly it. I clearly need to improve my Google and search skills :)

Re: Projection Matrix Problems

June 16, 2012 - 8:26am #4

There's a known issue w/ 3.5.2 and iOS concerning the screen orientation definition. See: http://ar.qualcomm.at/node/2002210

Is that what you're seeing?

Re: Projection Matrix Problems

June 16, 2012 - 7:25am #3

Vuforia 1.5.9 on IOS (iPhone 4).

Unity 3.5.2

As I say it used to work fine on the same device. Though I have upgraded to 3.5.2 from 3.5.1 in the interim.

Re: Projection Matrix Problems

June 15, 2012 - 7:03pm #2

Which SDK and version are you using, and which device(s) are you seeing this on?

If you're using Unity, which Unity version and Extension version are you using?

Log in or register to post comments