Author Topic: Model is shrinking  (Read 2143 times)

Offline penprakash

  • byte
  • *
  • Posts: 26
    • View Profile
Model is shrinking
« on: August 05, 2013, 07:02:52 pm »
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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Model is shrinking
« Reply #1 on: August 06, 2013, 07:33:43 am »
Can you post the rotation matrix that you are using (The jPCT-AE version, not the one obtained from Vuforia)?

Offline penprakash

  • byte
  • *
  • Posts: 26
    • View Profile
Re: Model is shrinking
« Reply #2 on: August 06, 2013, 04:22:01 pm »
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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Model is shrinking
« Reply #3 on: August 07, 2013, 07:29:42 am »
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())

Offline penprakash

  • byte
  • *
  • Posts: 26
    • View Profile
Re: Model is shrinking
« Reply #4 on: August 07, 2013, 07:37:22 am »
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

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Model is shrinking
« Reply #5 on: August 07, 2013, 09:13:32 am »
Again, that's not exactly what i wanted. I would like to see the camera.getBack().toString();