From ea8ac9ebb3309b84bed137bb3ff59926c23216ce Mon Sep 17 00:00:00 2001 From: Andy Spencer Date: Mon, 26 Apr 2010 04:52:47 +0000 Subject: [PATCH] Improve Z-range in OpenGL This keeps radars of interfering with each other quite so badly --- src/gis-opengl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gis-opengl.c b/src/gis-opengl.c index 694a33e..dc32fa8 100644 --- a/src/gis-opengl.c +++ b/src/gis-opengl.c @@ -375,7 +375,7 @@ static gboolean on_configure(GisOpenGL *opengl, GdkEventConfigure *event, gpoint glMatrixMode(GL_PROJECTION); glLoadIdentity(); double ang = atan(height/FOV_DIST); - gluPerspective(rad2deg(ang)*2, width/height, 1, 10*EARTH_R); + gluPerspective(rad2deg(ang)*2, width/height, 1000, 10*EARTH_R); #ifndef ROAM_DEBUG g_mutex_lock(opengl->sphere_lock); -- 2.43.2