Log in or register to post comments

convertPerspectiveProjection2GLMatrix

February 12, 2018 - 12:26am #1

I'm trying to adapt the object recognition and the object target renderer from the example project to build our own Android App.

But I'm faced with some wired values from the Tool.convertPerspectiveProjection2GLMatrix(...) function.

The values for rawProjectionMatrixGL are for example: [0.0, -1.7733898, 0.0, 0.0, -3.260047, 0.0, 0.0, 0.0, 0.09440833, -0.01812973, 1.004008, 1.0, 0.0, 0.0, -20.040081, 0.0]

I think the second last value is to high since the modelViewProjection results in : [-0.16215868, -0.0012081946, -0.006690955, -0.006664244, 0.013510264, -0.06363265, -0.03421062, -0.03407405, 0.010680841, 0.061745673, -0.03612403, -0.03597982, -0.012251351, -0.022947459, -19.669355, 0.36924577]

Where the second last value isn't in the scope of the OpenGL range anymore.

 

Does someone has any idea what's going wrong?

Log in or register to post comments