I am new to OpenGL android, but know some basic concepts like projection and camera views. we can change the position and orientation of camera. But,when i move camera more away from an object the object disappears . For example: Below is my camera view and the co-ordinates of rectangle.
Matrix.setLookAtM(mViewMatrix, 0, 0, 0, -7, 0f, 0f, 0f, 0f, 1.0f, 0.0f);
float rectCoords[] = {
-0.5f, 0.5f, 0.0f,
-0.5f, -0.5f, 0.0f,
0.5f, 0.5f, 0.0f,
0.5f, -0.5f, 0.0f,
};
if I am correct the camera is 7 units away from the rectangle which is on XY plane and camera is 7 units away from rectangle on negative z axis looking towards the origin whose top is pointing towards positive y-axis.
When I change -7.0f i.e the z coordinate of the camera, to -7.1f(i.e i am moving the camera away from the rectangle) the rectangle disappears, that means the maximum distance the camera can see is 7 units from it. Correct me if i am wrong, if not then how can i make to see the object more than 7 units visible from camera