jPCT-AE - a 3d engine for Android > Support

Model is shrinking

(1/2) > >>

penprakash:
Hi,

 I have integrated the vuforia with jpct and applied the modelview matrix from vuforia to jpct camera. When i tilt the camera to 45 degree or 60 degree to the target image, the model is getting shrink little bit. Why this is happening and how should i fix this issue.

Thanks & Regards,
Prakash V

EgonOlsen:
Can you post the rotation matrix that you are using (The jPCT-AE version, not the one obtained from Vuforia)?

penprakash:
I haven't set any rotation matrix to the model object,  and below value was present in the rotation matrix
rotationMatrix[0] = 1.0
rotationMatrix[1] = 0.0
rotationMatrix[2] = 0.0
rotationMatrix[3] = 0.0
rotationMatrix[4] = 0.0
rotationMatrix[5] = 1.0
rotationMatrix[6] = 0.0
rotationMatrix[7] = 0.0
rotationMatrix[8] = 0.0
rotationMatrix[9] = 0.0
rotationMatrix[10] = 1.0
rotationMatrix[11] = 0.0
rotationMatrix[12] = 0.0
rotationMatrix[13] = 0.0
rotationMatrix[14] = 0.0
rotationMatrix[15] = 1.0

is this you mean?

Prakash V

EgonOlsen:
No, i was actually taking about the rotation matrix of the camera (http://www.jpct.net/jpct-ae/doc/com/threed/jpct/Camera.html#getBack())

penprakash:
This is the model view matrix

modelViewMat[0] = -0.067105055
modelViewMat[1] = -0.99767137
modelViewMat[2] = -0.01219984
modelViewMat[3] = 0.0
modelViewMat[4] = 0.48932555
modelViewMat[5] = -0.02225201
modelViewMat[6] = -0.87181735
modelViewMat[7] = 0.0
modelViewMat[8] = -0.06447304
modelViewMat[9] = 0.86951566
modelViewMat[10] = 0.48967934
modelViewMat[11] = 0.0
modelViewMat[12] = -59.461468
modelViewMat[13] = 115.306206
modelViewMat[14] = 748.9304
modelViewMat[15] = 1.0

Navigation

[0] Message Index

[#] Next page

Go to full version