09 April 2009

Virtual Planet Builder - vpbmaster.exe

Virtual Planet Builder is a project based upon OpenSceneGraph. VPB was still in beta as of April 2009. It's described as:
A terrain database creation tool that is able to read a wide range of geospatial imagery and elevation data and build from small area terrain database to massive whole planet paged databases. These databases can then be uploaded onto the internet and provide online Google Earth style roaming of whole planet databases, or kept on local disks for high speed access such as required for professional flight simulators.
A sample build process by J. P. Delport shows a setup and procedure used to generated a large terrain database on a cluster of 8 nodes. The author notes "this is definitely not the only way to use VirtualPlanetBuilder, but serves as a specific example."

Delport's sample build script follows. I haven't found a command reference per se.



vpbmaster --machines machinepool.txt                // Use the machine pool file described earlier
--geocentric // I want a geocentric database
-d /glusterfs/DTED // My elevation data can be found here (the directory contains only tifs)
--layer 0 -t /glusterfs/BMNG // On texture layer 0 I want the BMNG data
--layer 0 -t /glusterfs/SPOT_reproj // as well as some nice satellite photos
--layer 1 -t /glusterfs/Maps_reproj // On Layer 1 I want some 1:50000 scale maps
--terrain --compressed // Use the new terrain format and compress the texture data
-o spot_maps/terrain.ive // Put the output files under this directory

osgArchive Command Reference

Note: the OpenSceneGraph command line options on this blog were taken from version 2.8.0.

References
- An unofficial OSG FAQ is maintained by Gordon Tomlinson at 3drealtimesimulation.com. As of this posting, there are 96 FAQ's available.

osgArchive
The utility osgArchive creates and reads OpenSceneGraph database archives. These archives can then be used at runtime with standard OpenSceneGraph applications such as Osgviewer.

The osgDB library allows applications to load, use, and write 3D databases. The osgDB plugin architecture provides support for a variety of common 2D image and 3Dmodel file formats. The osgDB maintains a registry of and oversees access to the loaded OSG plugins.

OSG supports its own file formats. .osg is a plain ASCII text description of a scene graph, and .osga is an archive (or group) of osg files created by osgArchive. The osgDB library contains support code for these file formats. (OSG also supports a binary .ive format). Large 3D terrain databases are often created in sections that tile together. In this case, applications require that portions of the database load from file in a background thread without interrupting rendering. The osgDB::DatabasePager provides this functionality.

There is an OpenSceneGraph Quick Start Guide.

1. Creating a new archive
To create an archive you have to specify the archive filename, including extension, via the -a switch, and the insert 3d database and imagery files into the archive via the -i [ ..] syntax such as:

osgarchive -a archive.osga -i cow.osg glider.osg

You may also insert the contents of whole directories using the same syntax.

osgarchive -a archive.osga -i mydirectory

The .osga format also has support for a master file, which is set to the first file inserted into the archive.

2. Listing files contained in the archive
To list all the files contained specify the archive, then use the -l switch:

osgarchive -a archive.osga -l

This will print out the list of files contained within the archive.

3. Extracting files from an archive
To extract files from the archive specify the archive, then use the -e [...] syntax:

osgarchive -a archive.osga -e cow.osg

osgDem Command Reference

The OpenSceneGraph utility osgDem is for reading geospatial imagery and digital elevation maps (DEM's) and generating large scale 3D terrain databases that OpenSceneGraph applications can load and browse in real-time.

Two example uses:

osgdem.exe --PagedLOD --compressed --mip-mapping-hardware --cs "+proj=UTM +datum=WGS84 +zone=43N" -t AVI\terrain\Oslo\Imagery\Oslo_Imagery_HiRes.tif -d AVI\terrain\Oslo\Elevation\Oslo_Elevation_HiRes2.tif -o AVI\terrain\Oslo\IVE4\output.ive -a AVI\terrain\Oslo\IVE3\Oslo_HiRes.osga

From the OSG SF page:

osgdem --xx 10 --yy 10 -t ../ps_texture.tif \
--xx 10 --yy 10 -d ../ps_height.tif \
-l 8 \
-v 0.1 \
-o pegout.ive


Usage: osgdem [options] filename ...
Options:
--BuildOverlays [True/False] Switch on/off the building of overlay
within the source imagery. Overlays
can help reduce texture aliasing
artifacts.
--GenerateTiles [True/False] Switch on/off the generation of the
output database tiles.
--HEIGHT_FIELD Create a height field database
--LOD Create a LOD'd database
--POLYGONAL Create a height field database
--PagedLOD Create a PagedLOD'd database
--RGB-16 Use 16bit RGB destination imagery
--RGB-24 Use 24bit RGB destination imagery
--RGBA Use 32bit RGBA destination imagery
--RGBA-16 Use 16bit RGBA destination imagery
--RGBA-compressed Use OpenGL compression on RGBA
destination imagery
--ReprojectSources [True/False] Switch on/off the reprojection of any
source imagery that aren't in the
correct projection for the database
build.
--TERRAIN Create a osgTerrain::Terrain database
--abort-run-on-error Hint to vpbmaster to abort the run
when any errors occur/tasks fail.
--abort-task-on-error Hint to osgdem to abort the build
when any errors occur (default.)
--bluemarble-east Set the coordinates system for next
texture or dem to represent the
eastern hemisphere of the earth.
--bluemarble-west Set the coordinates system for next
texture or dem to represent the
western hemisphere of the earth.
--build-options <string> Set build options string.
--building <filename> Specify building outlines using
shapefiles.
--cache <filename> Read the cache file to use a look up
for locally cached files.
--comment Added a comment/description string to
the top most node in the dataset
--compressed Use OpenGL compression on RGB
destination imagery
--cs <coordinates system string> Set the coordinates system of source
imagery, DEM or destination database.
The string may be any of the usual
GDAL/OGR forms, complete WKT, PROJ.4,
EPS
--default-color <r,g,b,a> Sets the default color of the
terrain.
--forest <filename> Specify forest outlines using
shapefiles
--formats List the supported source imagery and
DEM formats.
--geocentric Build a database in geocentric (i.e.
whole earth) database.
--height Set the height to use for asscociated
shapefiles.
--height-attribute Set the attribute name for height
attributes used in shapefile/dbase
files.
--ibn <buildname> Specify the intermediate build file
name
--image-ext <ext> Specify the Image format to output to
via its plugin name, i.e. rgb, dds,
jp2, jpeg.
--interpolate-imagery Enable the use of interpolation when
sampling data from source imagery.
--interpolate-terrain Enable the use of interpolation when
sampling data from source DEMs.
--layer <layer_num> Specify the layer that the next
source Texture will contribute to..
--layer-inheritance [Lowest/Nearest/No] Set the layer inheritance.
--levels <begin_level> <end_level> Specify the range of lavels that the
next source Texture or DEM will
contribute to.
--mask Set the mask to assign indivual
shapefile/model.
--max-anisotropy Max anisotropy level to use when
texturing, defaults to 1.0.
--max-visible-distance-of-top-level Set the maximum visible distance that
the top most tile can be viewed at
--mip-mapping-hardware Use mip mapped textures, and generate
the mipmaps in hardware when
available.
--mip-mapping-imagery Use mip mapped textures, and generate
the mipmaps in imagery.
--no-abort-run-on-error Hint to vpbmaster to disable abort of
the run when any errors occur
(default.)
--no-abort-task-on-error Hint to osgdem to disable abort of
the build when any errors occur.
--no-interpolate-imagery Disable the use of interpolation when
sampling data from source imagery.
--no-interpolate-terrain Disable the use of interpolation when
sampling data from source DEMs.
--no-mip-mapping Disable mip mapping of textures
--no-terrain-simplification Switch off terrain simplification.
--notify-level Set the notify level when logging
messages.
--optional-set <setname> Add setname to the list of optional
layers.
--radius-equator Set the polar radius of the ellipsoid
model when building a geocentric
database.
--radius-polar Set the polar radius of the ellipsoid
model when building a geocentric
database.
--radius-to-max-visible-distance-ratio Set the maximum visible distance
ratio for all tiles apart from the
top most tile. The maximum visuble
distance is computed from the ratio *
tile radius.
--range
--raster Interpret input as a raster data set
(default)
--read-threads-ratio <ratio> Set the ratio number of read threads
relative to number of cores to use.
--record-subtile-on-leaf-tiles Enable the setting of the subtile
file name of the leaf tiles.
--remove-optional-set <setname> Remove setname to the list of
optional layers.
--run-path Set the path that the build should be
run from.
--set <setname> Assign the set name of imagery/dem
data.
--skirt-ratio <float> Set the ratio of skirt height to tile
size
--spherical Set the polar and equator radius both
to the average of the two.
--split Set the distributed build split
level.
--splits Set the distributed build primary and
secondary split levels.
--subtile <LOD> <X> <Y> Set the subtile to begin the build
from.
--terrain-mask Set the overall mask to assign
terrain.
--tile-image-size Set the tile maximum image size
--tile-terrain-size Set the tile maximum terrain size
--type-attribute Set the type name which specify how
the shapes should be interpreted in
shapefile/dbase files.
--vector Interpret input as a vector data set
--version Print out version
--version-number Print out version number only.
--whole-globe Set the coordinates system for next
texture or dem to represent the whole
hemisphere of the earth.
--wkt <WKT string> Set the coordinates system of source
imagery, DEM or destination database
in WellKownText form.
--wkt-file <WKT file> Set the coordinates system of source
imagery, DEM or destination database
by as file containing WellKownText
definition.
--write-threads-ratio <ratio> Set the ratio number of write threads
relative to number of cores to use.
--xt
--xx
--yt
--yy
--zt
--zz
-O string option to pass to write
plugins, use " " for multiple options
-a <archivename> Specify the archive to place the
generated database
-d <filename> Specify the digital elevation map
input file to process
-e <x> <y> <w> <h> Extents of the model to generate
-h or --help Display this information
-l <numOfLevels> Specify the number of PagedLOD levels
to generate
-o <outputfile> Specify the output master file to
generate
-t <filename> Specify the texture map input file to
process
-v Set the vertical multiplier


osgConv Command Reference

The OpenSceneGraph utility osgConv reads 3D databases, applies basic operations to them, then writes them out as a single 3D database.


usage:
osgconv [options] infile1 [infile2 ...] outfile

environment:
OSG_BUILD_KDTREES on/off Enable/disable the
automatic building of
KdTrees for each loaded
Geometry.
OSG_COMPIlE_CONTEXTS <mode> OFF | ON Enable/disable
the use a backgrouind
compile contexts and
threads.
OSG_COMPUTE_NEAR_FAR_MODE <mode> DO_NOT_COMPUTE_NEAR_FAR |
COMPUTE_NEAR_FAR_USING_B-
OUNDING_VOLUMES |
COMPUTE_NEAR_FAR_USING_P-
RIMITIVES
OSG_CONFIG_FILE <filename> Specify a viewer
configuration file to
load by default.
OSG_DATABASE_PAGER_DRAWABLE <mode> Set the drawable policy
for setting of loaded
drawable to specified
type. mode can be one of
DoNotModify, DisplayList,
VBO or VertexArrays>.
OSG_DATABASE_PAGER_PRIORITY <mode> Set the thread priority
to DEFAULT, MIN, LOW,
NOMINAL, HIGH or MAX.
OSG_DEFAULT_BIN_SORT_MODE <type> SORT_BY_STATE |
SORT_BY_STATE_THEN_FRONT-
_TO_BACK |
SORT_FRONT_TO_BACK |
SORT_BACK_TO_FRONT
OSG_DISPLAY_TYPE <type> MONITOR | POWERWALL |
REALITY_CENTER |
HEAD_MOUNTED_DISPLAY
OSG_DO_PRE_COMPILE <ON/OFF> Switch on or off the pre
compile of OpenGL object
database pager.
OSG_EXPIRY_DELAY <float> Set the length of time a
PagedLOD child is kept in
memory, without being
used, before its tagged
as expired, and ear
marked to deletion.
OSG_EXPIRY_FRAMES <int> Set number of frames a
PagedLOD child is kept in
memory, without being
used, before its tagged
as expired, and ear
marked to deletion.
OSG_EYE_SEPARATION <float> physical distance between
eyes
OSG_FILE_PATH <path>[;path].. Paths for locating
datafiles
OSG_GL_ERROR_CHECKING <type> ONCE_PER_ATTRIBUTE | ON |
on enables fine grained
checking, ONCE_PER_FRAME
enables coarse grained
checking
OSG_LIBRARY_PATH <path>[;path].. Paths for locating
libraries/ plugins
OSG_MAXIMUM_OBJECTS_TO_COMPILE_PER_FRAME <int> maximum number of OpenGL
objects to compile per
frame in database pager.
OSG_MAX_NUMBER_OF_GRAPHICS_CONTEXTS <int> maximum number of
graphics contexts to be
used with applications.
OSG_MAX_PAGEDLOD <num> Set the target maximum
number of PagedLOD to
maintain.
OSG_MAX_TEXTURE_SIZE Set the maximum size of
textures.
OSG_MINIMUM_COMPILE_TIME_PER_FRAME <float> minimum compile time
alloted to compiling
OpenGL objects per frame
in database pager.
OSG_NEAR_FAR_RATIO <float> Set the ratio between
near and far planes -
must greater than 0.0 but
less than 1.0.
OSG_NUM_DATABASE_THREADS <int> Set the hint for the
total number of threads
to set up in the
DatabasePager.
OSG_NUM_HTTP_DATABASE_THREADS <int> Set the hint for the
total number of threads
dedicated to http
requests to set up in the
DatabasePager.
OSG_OPTIMIZER "<type> [<type>]" OFF | DEFAULT |
FLATTEN_STATIC_TRANSFORMS
|
FLATTEN_STATIC_TRANSFORM-
S_DUPLICATING_SHARED_SUB-
GRAPHS |
REMOVE_REDUNDANT_NODES |
COMBINE_ADJACENT_LODS |
SHARE_DUPLICATE_STATE |
MERGE_GEOMETRY |
MERGE_GEODES |
SPATIALIZE_GROUPS |
COPY_SHARED_NODES |
TRISTRIP_GEOMETRY |
OPTIMIZE_TEXTURE_SETTINGS
|
REMOVE_LOADED_PROXY_NODES
| TESSELLATE_GEOMETRY |
CHECK_GEOMETRY |
FLATTEN_BILLBOARDS |
TEXTURE_ATLAS_BUILDER |
STATIC_OBJECT_DETECTION
OSG_RELEASE_DELAY <float> Set the length of time a
PagedLOD child's OpenGL
objects are kept in
memory, without being
used, before be released
(setting to OFF disables
this feature.)
OSG_RELEASE_FRAMES <int> Set number of frames a
PagedLOD child's OpenGL
objects are kept in
memory, without being
used, before be released.
OSG_SCREEN <value> Set the default screen
that windows should open
up on.
OSG_SCREEN_DISTANCE <float> physical distance between
eyes and screen
OSG_SCREEN_HEIGHT <float> physical screen height
OSG_SCREEN_WIDTH <float> physical screen width
OSG_SERIALIZE_DRAW_DISPATCH <mode> OFF | ON Enable/disable
the use a muetx to
serialize the draw
dispatch when there are
multiple graphics
threads.
OSG_SPLIT_STEREO_AUTO_ADJUST_ASPECT_RATIO <mode> OFF | ON Default to ON
to compenstate for the
compression of the aspect
ratio when viewing in
split screen stereo.
Note, if you are setting
fovx and fovy explicityly
OFF should be used.
OSG_SPLIT_STEREO_HORIZONTAL_EYE_MAPPING <mode> LEFT_EYE_LEFT_VIEWPORT |
LEFT_EYE_RIGHT_VIEWPORT
OSG_SPLIT_STEREO_HORIZONTAL_SEPARATION <float> number of pixels between
viewports
OSG_SPLIT_STEREO_VERTICAL_EYE_MAPPING <mode> LEFT_EYE_TOP_VIEWPORT |
LEFT_EYE_BOTTOM_VIEWPORT
OSG_SPLIT_STEREO_VERTICAL_SEPARATION <float> number of pixels between
viewports
OSG_STEREO <mode> OFF | ON
OSG_STEREO_MODE <mode> QUAD_BUFFER | ANAGLYPHIC
| HORIZONTAL_SPLIT |
VERTICAL_SPLIT | LEFT_EYE
| RIGHT_EYE |
VERTICAL_INTERLACE |
HORIZONTAL_INTERLACE
OSG_TEXT_INCREMENTAL_SUBLOADING <type> ON | OFF
OSG_THREADING <value> Set the threading model
using by Viewer, <value>
can be SingleThreaded,
CullDrawThreadPerContext,
DrawThreadPerContext or
CullThreadPerCameraDrawT-
hreadPerContext.
OSG_THREAD_SAFE_REF_UNREF
OSG_WIN32_NV_MULTIMON_MULTITHREAD_WORKAROUND on/off Enable/disable duplicate
makeCurrentContext call
used as workaround for
WinXP/NVidia/MultiView/M-
ulitThread isues (pre
178.13 drivers).
OSG_WINDOW x y width height Set the default window
dimensions that windows
should open up on.
OSG_WRITE_OUT_DEFAULT_VALUES ON | OFF

options:
-O option - ReaderWriter option

--compressed - Enable the usage of compressed textures,
defaults to OpenGL ARB compressed textures.
--compressed-arb - Enable the usage of OpenGL ARB compressed textures
--compressed-dxt1 - Enable the usage of S3TC DXT1 compressed textures
--compressed-dxt3 - Enable the usage of S3TC DXT3 compressed textures
--compressed-dxt5 - Enable the usage of S3TC DXT5 compressed textures

--fix-transparency - fix stateset which are curerntly declared as transprent,
but should be opaque. Defaults to using the
fixTranspancyMode MAKE_OPAQUE_TEXTURE_STATESET_OPAQUE.
--fix-transparency-mode <mode_string> - fix stateset which are curerntly declared as
transprent but should be opaque. The mode_string determines
algorithm is used to fix the transparency, options are:
MAKE_OPAQUE_TEXTURE_STATESET_OPAQUE,
MAKE_ALL_STATESET_OPAQUE.

-l libraryName - load plugin of name libraryName
i.e. -l osgdb_pfb
Useful for loading reader/writers which can load
other file formats in addition to its extension.
-e extensionName - load reader/wrter plugin for file extension
i.e. -e pfb
Useful short hand for specifying full library name as
done with -l above, as it automatically expands to the
full library name appropriate for each platform.
-o orientation - Convert geometry from input files to output files.
Format of orientation argument must be the following:

X1,Y1,Z1-X2,Y2,Z2
or
degrees-A0,A1,A2

where X1,Y1,Z1 represent the UP vector in the input
files and X2,Y2,Z2 represent the UP vector of the
output file, or degrees is the rotation angle in degrees
around axis (A0,A1,A2). For example, to convert a model
built in a Y-Up coordinate system to a model with a Z-up
coordinate system, the argument may look like

0,1,0-0,0,1
or
-90-1,0,0


-t translation - Convert spatial position of output files. Format of
translation argument must be the following :

X,Y,Z

where X, Y, and Z represent the coordinates of the
absolute position in world space

--simplify n - Run simplifier on prior to output. Argument must be a
normalized value for the resultant percentage reduction.
Example: --simplify .5 will produce an 50 reduced model.

-s scale - Scale size of model. Scale argument must be the
following :

SX,SY,SZ

where SX, SY, and SZ represent the scale factors
Caution: Scaling will be done in destination orientation

--smooth - Smooth the surface by regenerating surface normals on
all geometry
--addMissingColors - Adding a white color value to all geometry that don't have
their own color values (--addMissingColours also accepted).
--overallNormal - Replace normals with a single overall normal.

--formats - Lists all supported formats and their supported options.
--format <format> - Displays information about the spefied <format>, where <format>
is the file extension, such as "flt".
--plugins - Lists all supported plugin files.
--plugin >plugin> - Displays information about the spefied <plugin>, where <plugin>
is the plugin's full path and file name.

osgViewer Command Reference

The utility osgViewer is the basic scene graph viewer distributed with OpenSceneGraph. Its primary purpose is as an example of how to write a simple viewer, but it is also functional enough to use as a basic 3D graphics viewer.

Usage: osgviewer [options] filename ...
Options:
--CullDrawThreadPerContext Select CullDrawThreadPerContext
threading model for viewer.
--CullThreadPerCameraDrawThreadPerContext Select
CullThreadPerCameraDrawThreadPerCo-
ntext threading model for viewer.
--DrawThreadPerContext Select DrawThreadPerContext
threading model for viewer.
--SingleThreaded Select SingleThreaded threading
model for viewer.
--accum-rgb Request a rgb accumulator buffer
visual
--accum-rgba Request a rgb accumulator buffer
visual
--cc Request use of compile contexts and
threads
--clear-color <color> Set the background color of the
viewer in the form "r,g,b[,a]".
--dem <filename> Load an image/DEM and render it on
a HeightField
--display <type> MONITOR | POWERWALL |
REALITY_CENTER |
HEAD_MOUNTED_DISPLAY
--help-all Display all command line, env vars
and keyboard & mouse bindings.
--help-env Display environmental variables
available
--help-keys Display keyboard & mouse bindings
available
--image <filename> Load an image and render it on a
quad
--login <url> <username> <password> Provide authentication information
for http file access.
--rgba Request a RGBA color buffer visual
--samples <num> Request a multisample visual
--screen <num> Set the screen to use when multiple
screens are present.
--serialize-draw <mode> OFF | ON - set the serialization of
draw dispatch
--stencil Request a stencil buffer visual
--stereo Use default stereo mode which is
ANAGLYPHIC if not overriden by
environmental variable
--stereo <mode> ANAGLYPHIC | QUAD_BUFFER |
HORIZONTAL_SPLIT | VERTICAL_SPLIT |
LEFT_EYE | RIGHT_EYE |
HORIZONTAL_INTERLACE |
VERTICAL_INTERLACE | CHECKERBOARD |
ON | OFF
--window <x y w h> Set the position (x,y) and size
(w,h) of the viewer window.
-O <option_string> Provide an option string to
reader/writers used to load
databases
-e <extension> Load the plugin associated with
handling files with specified
extension
-h or --help Display command line parameters
-l <library> Load the plugin


Environmental Variables:
OSG_BUILD_KDTREES on/off Enable/disable the
automatic building of
KdTrees for each loaded
Geometry.
OSG_COMPIlE_CONTEXTS <mode> OFF | ON Enable/disable
the use a backgrouind
compile contexts and
threads.
OSG_COMPUTE_NEAR_FAR_MODE <mode> DO_NOT_COMPUTE_NEAR_FAR |
COMPUTE_NEAR_FAR_USING_B-
OUNDING_VOLUMES |
COMPUTE_NEAR_FAR_USING_P-
RIMITIVES
OSG_CONFIG_FILE <filename> Specify a viewer
configuration file to
load by default.
OSG_DATABASE_PAGER_DRAWABLE <mode> Set the drawable policy
for setting of loaded
drawable to specified
type. mode can be one of
DoNotModify, DisplayList,
VBO or VertexArrays>.
OSG_DATABASE_PAGER_PRIORITY <mode> Set the thread priority
to DEFAULT, MIN, LOW,
NOMINAL, HIGH or MAX.
OSG_DEFAULT_BIN_SORT_MODE <type> SORT_BY_STATE |
SORT_BY_STATE_THEN_FRONT-
_TO_BACK |
SORT_FRONT_TO_BACK |
SORT_BACK_TO_FRONT
OSG_DISPLAY_TYPE <type> MONITOR | POWERWALL |
REALITY_CENTER |
HEAD_MOUNTED_DISPLAY
OSG_DO_PRE_COMPILE <ON/OFF> Switch on or off the pre
compile of OpenGL object
database pager.
OSG_EXPIRY_DELAY <float> Set the length of time a
PagedLOD child is kept in
memory, without being
used, before its tagged
as expired, and ear
marked to deletion.
OSG_EXPIRY_FRAMES <int> Set number of frames a
PagedLOD child is kept in
memory, without being
used, before its tagged
as expired, and ear
marked to deletion.
OSG_EYE_SEPARATION <float> physical distance between
eyes
OSG_FILE_PATH <path>[;path].. Paths for locating
datafiles
OSG_GL_ERROR_CHECKING <type> ONCE_PER_ATTRIBUTE | ON |
on enables fine grained
checking, ONCE_PER_FRAME
enables coarse grained
checking
OSG_LIBRARY_PATH <path>[;path].. Paths for locating
libraries/ plugins
OSG_MAXIMUM_OBJECTS_TO_COMPILE_PER_FRAME <int> maximum number of OpenGL
objects to compile per
frame in database pager.
OSG_MAX_NUMBER_OF_GRAPHICS_CONTEXTS <int> maximum number of
graphics contexts to be
used with applications.
OSG_MAX_PAGEDLOD <num> Set the target maximum
number of PagedLOD to
maintain.
OSG_MAX_TEXTURE_SIZE Set the maximum size of
textures.
OSG_MINIMUM_COMPILE_TIME_PER_FRAME <float> minimum compile time
alloted to compiling
OpenGL objects per frame
in database pager.
OSG_NEAR_FAR_RATIO <float> Set the ratio between
near and far planes -
must greater than 0.0 but
less than 1.0.
OSG_NUM_DATABASE_THREADS <int> Set the hint for the
total number of threads
to set up in the
DatabasePager.
OSG_NUM_HTTP_DATABASE_THREADS <int> Set the hint for the
total number of threads
dedicated to http
requests to set up in the
DatabasePager.
OSG_OPTIMIZER "<type> [<type>]" OFF | DEFAULT |
FLATTEN_STATIC_TRANSFORMS
|
FLATTEN_STATIC_TRANSFORM-
S_DUPLICATING_SHARED_SUB-
GRAPHS |
REMOVE_REDUNDANT_NODES |
COMBINE_ADJACENT_LODS |
SHARE_DUPLICATE_STATE |
MERGE_GEOMETRY |
MERGE_GEODES |
SPATIALIZE_GROUPS |
COPY_SHARED_NODES |
TRISTRIP_GEOMETRY |
OPTIMIZE_TEXTURE_SETTINGS
|
REMOVE_LOADED_PROXY_NODES
| TESSELLATE_GEOMETRY |
CHECK_GEOMETRY |
FLATTEN_BILLBOARDS |
TEXTURE_ATLAS_BUILDER |
STATIC_OBJECT_DETECTION
OSG_RELEASE_DELAY <float> Set the length of time a
PagedLOD child's OpenGL
objects are kept in
memory, without being
used, before be released
(setting to OFF disables
this feature.)
OSG_RELEASE_FRAMES <int> Set number of frames a
PagedLOD child's OpenGL
objects are kept in
memory, without being
used, before be released.
OSG_SCREEN <value> Set the default screen
that windows should open
up on.
OSG_SCREEN_DISTANCE <float> physical distance between
eyes and screen
OSG_SCREEN_HEIGHT <float> physical screen height
OSG_SCREEN_WIDTH <float> physical screen width
OSG_SERIALIZE_DRAW_DISPATCH <mode> OFF | ON Enable/disable
the use a muetx to
serialize the draw
dispatch when there are
multiple graphics
threads.
OSG_SPLIT_STEREO_AUTO_ADJUST_ASPECT_RATIO <mode> OFF | ON Default to ON
to compenstate for the
compression of the aspect
ratio when viewing in
split screen stereo.
Note, if you are setting
fovx and fovy explicityly
OFF should be used.
OSG_SPLIT_STEREO_HORIZONTAL_EYE_MAPPING <mode> LEFT_EYE_LEFT_VIEWPORT |
LEFT_EYE_RIGHT_VIEWPORT
OSG_SPLIT_STEREO_HORIZONTAL_SEPARATION <float> number of pixels between
viewports
OSG_SPLIT_STEREO_VERTICAL_EYE_MAPPING <mode> LEFT_EYE_TOP_VIEWPORT |
LEFT_EYE_BOTTOM_VIEWPORT
OSG_SPLIT_STEREO_VERTICAL_SEPARATION <float> number of pixels between
viewports
OSG_STEREO <mode> OFF | ON
OSG_STEREO_MODE <mode> QUAD_BUFFER | ANAGLYPHIC
| HORIZONTAL_SPLIT |
VERTICAL_SPLIT | LEFT_EYE
| RIGHT_EYE |
VERTICAL_INTERLACE |
HORIZONTAL_INTERLACE
OSG_TEXT_INCREMENTAL_SUBLOADING <type> ON | OFF
OSG_THREADING <value> Set the threading model
using by Viewer, <value>
can be SingleThreaded,
CullDrawThreadPerContext,
DrawThreadPerContext or
CullThreadPerCameraDrawT-
hreadPerContext.
OSG_THREAD_SAFE_REF_UNREF
OSG_WIN32_NV_MULTIMON_MULTITHREAD_WORKAROUND on/off Enable/disable duplicate
makeCurrentContext call
used as workaround for
WinXP/NVidia/MultiView/M-
ulitThread isues (pre
178.13 drivers).
OSG_WINDOW x y width height Set the default window
dimensions that windows
should open up on.
OSG_WRITE_OUT_DEFAULT_VALUES ON | OFF