Running

 

Running

The viewer will generally be run by double-clicking its program icon. Once the viewer has started, all the important options can be configured from within the program itself.

It's also possible to run the viewer from a command line. This method is detailed below.

Command Line Options

The general form for running the viewer from the command line is: OgreMaxWinViewer.exe options FileName where the case-insensitive options are optional and FileName is the name of your scene or mesh file.

Options

Example Usage

OgreMaxWinViewer.exe -Width 1024 -Height 768 -VSync -D3D -LockViewCamera -ScreenshotBaseName MyScreenshot -ScreenshotExtension .bmp "c:\My Directory\My Scene.scene"

Scripting

You may write a Lua script file to control the viewer. Such a file is typically in the same directory as the viewed file, and must be named FileName.lua, where FileName is the file name (including the extension). If present, this file will automatically be loaded. The following script functions will be called if they are defined: For a working demonstration of how to use a Lua scene script file see the MeshAnimation sample.

Drag-and-Drop

The OgreMax WinViewer supports drag and drop of scene and mesh files.