www.jpct.net

jPCT-AE - a 3d engine for Android => Support => Topic started by: Altarfinch on March 08, 2012, 12:15:55 pm

Title: Re: OpenGL matrix to Camera
Post by: Altarfinch 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.
Title: Re: OpenGL matrix to Camera
Post by: EgonOlsen 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.
Title: Re: OpenGL matrix to Camera
Post by: Vi_O 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.