Scroll to navigation

OSGCONV(1) User Commands OSGCONV(1)

NAME

osgconv - Convert between file formats parsed by OSG.

DESCRIPTION

usage:

obj-x86_64-linux-gnu/bin/osgconv [options] infile1 [infile2 ...] outfile

environment:

Set whether PixelBufferObjects should be assigned to Images to aid download to the GPU.
Set the hint for the size of the vertex buffer object pool to manage.
Enable/disable the automatic building of KdTrees for each loaded Geometry.
OFF | ON Disable/enable the use of background compiled contexts and threads.
DO_NOT_COMPUTE_NEAR_FAR | COMPUTE_NEAR_FAR_USING_BOUNDING_VOLUMES | COMPUTE_NEAR_FAR_USING_PRIMITIVES
Specify a viewer configuration file to load by default.
Set the drawable policy for setting of loaded drawable to specified type. mode can be one of DoNotModify, DisplayList, VBO or VertexArrays>.
Set the thread priority to DEFAULT, MIN, LOW, NOMINAL, HIGH or MAX.
SORT_BY_STATE | SORT_BY_STATE_THEN_FRONT_TO_BACK | SORT_FRONT_TO_BACK | SORT_BACK_TO_FRONT
MONITOR | POWERWALL | REALITY_CENTER | HEAD_MOUNTED_DISPLAY
Switch on or off the pre compile of OpenGL object database pager.
Physical distance between eyes.
Set the hint for the size of the frame buffer object pool to manage.
Paths for locating datafiles
should the texture compiles be forced to download using a dummy Geometry.
Set the hint for the GL context flags to use when creating contexts.
Set the hint for the GL context profile mask to use when creating contexts.
Set the hint for the GL version to create contexts for.
ONCE_PER_ATTRIBUTE | ON | on enables fine grained checking, ONCE_PER_FRAME enables coarse grained checking
Use space deliminarted list of GL extensions to disable associated GL extensions
ON|OFF or ENABLE|DISABLE, Enables/disables usage of glTexStorage for textures where supported, default is ENABLED.
OFF | DEFAULT | [~]COLOR | [~]DEPTH | [~]STENCIL. Substitute missing buffer attachments for render FBO.
OFF | DEFAULT | [~]COLOR | [~]DEPTH | [~]STENCIL. Substitute missing buffer attachments for resolve FBO.
Specify the hint to whether the viewer should set up keystone correction.
Specify filenames of keystone parameter files. Under Windows use ; to deliminate files, otherwise use :
Paths for locating libraries/ plugins
maximum number of OpenGL objects to compile per frame in database pager.
Maximum number of graphics contexts to be used with applications.
Set the target maximum number of PagedLOD to maintain.
Set the maximum size of textures.
OSG_MAX_TEXTURE_SIZE <value>
Clamp the maximum GL texture size to specified value.
OSX Only : Specify the behavior of the menubar (AUTO_HIDE, FORCE_HIDE, FORCE_SHOW)
minimum compile time alloted to compiling OpenGL objects per frame in database pager.
Set the hint for the number of samples to use when multi-sampling.
Set the ratio between near and far planes - must greater than 0.0 but less than 1.0.
FATAL | WARN | NOTICE | DEBUG_INFO | DEBUG_FP | DEBUG | INFO | ALWAYS
Set the hint for the total number of threads to set up in the DatabasePager.
Set the hint for the total number of threads dedicated to http requests to set up in the DatabasePager.
Set the hint to NvOptimus of whether to enable it or not, set 1 to enable, 0 to disable
OFF | DEFAULT | FLATTEN_STATIC_TRANSFORMS | FLATTEN_STATIC_TRANSFORMS_DUPLICATING_SHARED_SUBGRAPHS | REMOVE_REDUNDANT_NODES | COMBINE_ADJACENT_LODS | SHARE_DUPLICATE_STATE | MERGE_GEOMETRY | MERGE_GEODES | SPATIALIZE_GROUPS | COPY_SHARED_NODES | OPTIMIZE_TEXTURE_SETTINGS | REMOVE_LOADED_PROXY_NODES | TESSELLATE_GEOMETRY | CHECK_GEOMETRY | FLATTEN_BILLBOARDS | TEXTURE_ATLAS_BUILDER | STATIC_OBJECT_DETECTION | INDEX_MESH | VERTEX_POSTTRANSFORM | VERTEX_PRETRANSFORM | BUFFER_OBJECT_SETTINGS
Set the maximum number of frames to run the viewer run method.
Frame rate manage scheme that viewer run should use, ON_DEMAND or CONTINUOUS (default).
Set the maximum number of frame as second that viewer run. 0.0 is default and disables an frame rate capping.
Set the default screen that windows should open up on.
Physical distance between eyes and screen.
Physical screen height.
Physical screen width.
OFF | ON Disable/enable the use of a mutex to serialize the draw dispatch when there are multiple graphics threads.
OFF | ON Default to OFF 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.
LEFT_EYE_LEFT_VIEWPORT | LEFT_EYE_RIGHT_VIEWPORT
Number of pixels between viewports.
LEFT_EYE_TOP_VIEWPORT | LEFT_EYE_BOTTOM_VIEWPORT
Number of pixels between viewports.
OSG_STEREO <mode> OFF | ON OSG_STEREO_MODE <mode>
| LEFT_EYE | RIGHT_EYE | VERTICAL_INTERLACE | HORIZONTAL_INTERLACE
DEFAULT | EXCHANGE | COPY | UNDEFINED. Select preferred swap method.
Set the hint for the size of the texture pool to manage.
Set the defafult osgText::ShaderTechnique. ALL_FEATURES | ALL | GREYSCALE | SIGNED_DISTANCE_FIELD | SDF | NO_TEXT_SHADER | NONE
Set the threading model using by Viewer, <value> can be SingleThreaded, CullDrawThreadPerContext, DrawThreadPerContext or CullThreadPerCameraDrawThreadPerContext.
OFF | ON Disable/enable the hint to use osgUtil::SceneView to implement stereo when required..
Set the hint to what backend osg::Geometry implementation to use. NO_PREFERENCE | VERTEX_BUFFER_OBJECT | VERTEX_ARRAY_OBJECT
Set the default window dimensions that windows should open up on.
ON | OFF

options:

-O option - ReaderWriter option

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

declared as transparent, but should be opaque. Defaults to using the fixTranspancyMode MAKE_OPAQUE_TEXTURE_STATESET_OPAQUE.
declared as transparent but should be opaque. The mode_string determines which algorithm is used to fix the transparency, options are:
MAKE_ALL_STATESET_OPAQUE.
i.e. -l osgdb_pfb Useful for loading reader/writers which can load other file formats in addition to its 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.
Format of orientation argument must be the following:
or
degrees-A0,A1,A2
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
Format of translation argument must be the following :
X,Y,Z
absolute position in world space
than relative to the center of the bounding sphere.
normalized value for the resultant percentage reduction. Example: --simplify .5
will produce a 50% reduced model.
Scale argument must be the following :
SX,SY,SZ
Caution: Scaling is done in destination orientation
all geometry nodes
that don't have their own color values (--addMissingColours also accepted).

--overallNormal - Replace normals with a single overall normal.

--enable-object-cache - Enable caching of objects, images, etc.

--formats - List all supported formats and their supported options.

where <format> is the file extension, such as "flt".

--plugins - List all supported plugin files.

where <plugin> is the plugin's full path and file name.
September 2019 OpenSceneGraph