From da140f2a05dca5e106766480572fdfef47d606d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9verin=20Lemaignan?= Date: Sun, 24 Mar 2013 00:12:02 +0100 Subject: [PATCH] [pyassimp] Minor tuning in 3d_viewer.py --- port/PyAssimp/scripts/3d_viewer.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/port/PyAssimp/scripts/3d_viewer.py b/port/PyAssimp/scripts/3d_viewer.py index 87dbaa01c..60170af4b 100755 --- a/port/PyAssimp/scripts/3d_viewer.py +++ b/port/PyAssimp/scripts/3d_viewer.py @@ -6,11 +6,13 @@ It make a large use of shaders to illustrate a 'modern' OpenGL pipeline. Based on: -- pygame + mouselook code from http://3dengine.org/Spectator_%28PyOpenGL%29 + - pygame + mouselook code from http://3dengine.org/Spectator_%28PyOpenGL%29 - http://www.lighthouse3d.com/tutorials - http://www.songho.ca/opengl/gl_transform.html - http://code.activestate.com/recipes/325391/ - ASSIMP's C++ SimpleOpenGL viewer + +Authors: Séverin Lemaignan, 2012-2013 """ import sys @@ -21,8 +23,8 @@ gllogger.setLevel(logging.WARNING) logging.basicConfig(level=logging.INFO) import OpenGL -#OpenGL.ERROR_CHECKING=False -#OpenGL.ERROR_LOGGING = False +OpenGL.ERROR_CHECKING=False +OpenGL.ERROR_LOGGING = False #OpenGL.ERROR_ON_COPY = True #OpenGL.FULL_LOGGING = True from OpenGL.GL import * @@ -403,8 +405,6 @@ if __name__ == '__main__': app.render() app.controls_3d(0) if pygame.K_f in app.keys: pygame.display.toggle_fullscreen() - if pygame.K_s in app.keys: app.screenshot() - if pygame.K_v in app.keys: app.check_visibility() if pygame.K_TAB in app.keys: app.cycle_cameras() if pygame.K_ESCAPE in app.keys: break