[libgis] Improve Z-range in OpenGL



commit ea8ac9ebb3309b84bed137bb3ff59926c23216ce
Author: Andy Spencer <andy753421 gmail com>
Date:   Mon Apr 26 04:52:47 2010 +0000

    Improve Z-range in OpenGL
    
    This keeps radars of interfering with each other quite so badly

 src/gis-opengl.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]