Hi all, A short non jogl specific question (HELP!!).
I have a raster map that I want to display (by default in what appears to be a 2D view). I am thefore going to position my camera’s eye directly above thge center of the map image that I’m looking at. The image represents coordinate bounds of 300000(w), 600000(e), 400000(s) and 700000(n). In the display method I set the projection using gluPerspective(fov_y, aspect, near_z, far_z). The near_z and far_z are calculated from the coordinate bounds and the fov_y (field of view angle 45 degrees) such that the eye is directly above the center of the coordinate space at such a height that I can see all of the region with a given fov angle. I then use the gluLookAt function, setting the eye at the positon (west + east) / 2, height, (north + south) / 2; the lookat position (west+east)/2, 1, (north+south)/2; and the up vector to (0,1,0).
My problem is that I see nothing. If I add 1 to the z coordinate of the lookat point It seems to work but the x direction seems to be reversed (right to left). What am I missing here.
Can anybody help me, point me where I can get some help.
Thanks