Log in or register to post comments

Obtaining Optical See-through Device Camera Matrix (Unity)

July 29, 2016 - 11:17am #1

Is it possible to get a projection matrix for the device camera (not eye cameras) in optical see through mode in Unity?

I can get the projection matrix for either eye through each of their Unity camera's projectionMatrix property.

However, in optical see through mode, no such Unity camera exists that models the actual device camera.

I have dug around the Vuforia API and cannot find any such property or method that returns a device camera projection matrix.

Am I missing something, or do I need to construct my own based on device properties?

Obtaining Optical See-through Device Camera Matrix (Unity)

August 12, 2016 - 5:13pm #3

Tool, Tool.getProjection and CameraDevice.getCameraCalibration are from the Java API.  Is there a Unity equivalent to those methods/class?

Obtaining Optical See-through Device Camera Matrix (Unity)

August 10, 2016 - 8:06am #2

Hello,

Assuming you just want the Camera projection matrix corrected for orientation and reflection then you can use Tool.getProjection() passing in the Camera calibration retrieved from CameraDevice.getCameraCalibration(). This will not adjust for eye/display position as the calibrated projection matrix does.

Thanks.

Log in or register to post comments