Change default FOV to look more natural
This commit is contained in:
parent
ddaca56c89
commit
aea30f1e0b
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue