Author Topic: Re: OpenGL matrix to Camera  (Read 2957 times)

Offline Altarfinch

  • byte
  • *
  • Posts: 4
    • View Profile
Re: OpenGL matrix to Camera
« on: March 08, 2012, 12:15:55 pm »
Dear sir,

I am currently integrating Vuforia (formerly QCAR) with jPCT but 3D objects are not well aligned in the corners of the screen.
For the moment I am only using the modelview matrix. I think I should use the projection matrix, but since it's not possible I have to configure the camera instead. Problem is : There is no function to set the distortion... I think it's not taken into account in the projection matrix calculation of jPCT.

Any clue ?

Yours faithfully,
Paul George.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: OpenGL matrix to Camera
« Reply #1 on: March 08, 2012, 08:40:40 pm »
There is no "distortion" when talking about the camera. I guess that you are talking about perspective projection and maybe about setting the field of view. You can do this for the camera by using the set?Fov-methods.

Offline Vi_O

  • byte
  • *
  • Posts: 17
    • View Profile
Re: OpenGL matrix to Camera
« Reply #2 on: March 09, 2012, 11:12:07 am »
If that's still distortion you are after, I think that it is your hardware camera distortion parameters that are inadequate. Try to see if Vuforia lets you change it and calibrate your camera.