.. % Viewer tool The interactive viewer tool =========================== The tool :file:`viewer.py` reads one or more files and displays the scene using a simple OpenGL renderer. It creates events such as keyboard, mouse or joystick events that can be used by the components in the scene. If the environment variable :envvar:`VIEWER_DEFAULT_OPTIONS` exists, it is read and parsed to set the default options. After that the options in the command line are parsed. **Usage:** :: viewer.py [options] inputfiles To exit the viewer press :kbd:`Escape` or close the window. How to navigate in the scene depends on the navigation mode (see option -N). **Options:** ``-f`` / ``--fps=`` Specifies the frame rate that should be tried to maintain while playing back the scene (default: 30). ``-h`` / ``--help`` Print a help message. ``-F`` / ``--full-screen`` Open a full screen display. ``-W`` / ``--width=`` Specify the width in pixels of the window/screen (default: 640). ``-H`` / ``--height=`` Specify the height in pixels of the window/screen (default: 480). If no height is specified it is computed based on the width and an aspect ratio of 4/3. ``-v`` / ``--verbose`` Output info messages. ``-p`` / ``--plugin=`` If the argument specifies a file this file is loaded as a plugin, if it is a directory, all files in this directory are loaded. You can specify this option more than once or you can use a comma separated list of names. You can also set files and paths via the environment variable :envvar:`CGKIT_PLUGIN_PATH`. The files/paths have to be separated either by ':' or ';'. ``-c`` / ``--camera=`` Select the camera that should be used to view the scene. The argument is the name of the camera. If no camera is specified the first camera found in the scene is used. ``-b