Change default FOV to look more natural

master
daid 2012-04-17 13:29:16 +02:00
parent ddaca56c89
commit aea30f1e0b
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ def InitGL(window, view3D, zoom):
glLoadIdentity()
aspect = float(size.GetWidth()) / float(size.GetHeight())
if view3D:
gluPerspective(90.0, aspect, 1.0, 1000.0)
gluPerspective(45.0, aspect, 1.0, 1000.0)
else:
glOrtho(-aspect, aspect, -1, 1, -1000.0, 1000.0)

View File

@ -380,7 +380,7 @@ class PreviewGLCanvas(glcanvas.GLCanvas):
wx.EVT_MOUSEWHEEL(self, self.OnMouseWheel)
self.yaw = 30
self.pitch = 60
self.zoom = 150
self.zoom = 300
self.offsetX = 0
self.offsetY = 0
self.view3D = True