OSGVIEWER(1)
π osgviewer(1) β 3D viewer for multiple file formats π
okay bestie, welcome to the osgviewer manual page, straight out of User Commands territory. this is the OpenSceneGraph viewer, and it's about to be your new main character. it opens 3D stuff. lots of 3D stuff. many formats. one icon. β¨
β¨ NAME β¨
osgviewer β 3D viewer for multiple file formats.
like. it views 3D. multiple file formats. that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
osgviewer [options] filename ...
you give it some options if you're feeling fancy, and then one or more *filename*s, and it does the thing. periodt.
π OPTIONS π
so here's the whole menu, no skips, no skimming, we are doing this properly π
--COMPUTE_NEAR_FAR_MODE <mode>β pick how the viewer figures out near and far planes. your choices areDO_NOT_COMPUTE_NEAR_FAR,COMPUTE_NEAR_FAR_USING_BOUNDING_VOLUMES, orCOMPUTE_NEAR_FAR_USING_PRIMITIVES.--CullDrawThreadPerContextβ selects theCullDrawThreadPerContextthreading model for the viewer. that's the model's name, take it or leave it π§--CullThreadPerCameraDrawThreadPerContextβ selects theCullThreadPerCameraDrawThreadPerContextthreading model for the viewer. yes it's a long one. it ate. π--DrawThreadPerContextβ selects theDrawThreadPerContextthreading model for the viewer.--NEAR_FAR_RATIO <float>β sets the ratio between the near and far planes. it must be greater than0.0but less than1.0. that's a hard rule, not a suggestion. π¨--SingleThreadedβ selects theSingleThreadedthreading model for the viewer. one thread, one dream.--accum-rgbβ request a rgb accumulator buffer visual.--accum-rgbaβ request a rgb accumulator buffer visual. (yes, it saysrgbhere too, notrgbaβ that's literally what the page says, bestie, i'm not fixing it π)--borderless-window <x y w h>β set the position (x,y) and size (w,h) of a borderless viewer window. borderless = no chrome = pure vibes.--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.--device <device-name>β add a named device to the viewer.--display <type>β one ofMONITOR,POWERWALL,REALITY_CENTER, orHEAD_MOUNTED_DISPLAY.--enable-object-cacheβ enable caching of objects, images, etc.--gl-flags <mask>β set the hint of which GL flags projfile mask to use when creating graphics contexts.--gl-profile-mask <mask>β set the hint of which GL context profile mask to use when creating graphics contexts.--gl-version <major.minor>β set the hint of which GL version to use when creating graphics contexts.--help-allβ display all command line, env vars and keyboard & mouse bindings. the whole lore drop π--help-envβ display environmental variables available.--help-keysβ display keyboard & mouse bindings available.--image <filename>β load an image and render it on a quad.--implicit-buffer-attachment-render-maskβOFF|DEFAULT|[~]COLOR|[~]DEPTH|[~]STENCIL. substitutes missing buffer attachments for the render FBO.--implicit-buffer-attachment-resolve-maskβOFF|DEFAULT|[~]COLOR|[~]DEPTH|[~]STENCIL. substitutes missing buffer attachments for the resolve FBO.--keystone <filename>β specify a keystone file to be used by the viewer for keystone correction.--keystone-offβ set the keystone hint tofalse.--keystone-onβ set the keystone hint totrueto tell the viewer to do keystone correction.--login <url> <username> <password>β provide authentication information for http file access. three whole arguments, no cap π--menubar-behavior <behavior>β set the menubar behavior, one ofAUTO_HIDE,FORCE_HIDE, orFORCE_SHOW.--rgbaβ request a RGBA color buffer visual.--run-continuousβ set the run method's frame rate management to rendering frames continuously. go go go π₯--run-max-frame-rateβ set the run method's maximum permissible frame rate.0.0is the default, and it switches frame rate capping off.--run-on-demandβ set the run method's frame rate management to only rendering frames when required. chill mode πΈ--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.--speed <factor>β speed factor for animation playing (1== normal speed).--statsβ print out load and compile timing stats.--stencilβ request a stencil buffer visual.--stereoβ use the default stereo mode, which isANAGLYPHICif it isn't overridden by an environmental variable.--stereo <mode>β pick your stereo mode:ANAGLYPHIC|QUAD_BUFFER|HORIZONTAL_SPLIT|VERTICAL_SPLIT|LEFT_EYE|RIGHT_EYE|HORIZONTAL_INTERLACE|VERTICAL_INTERLACE|CHECKERBOARD|ON|OFF. the way there are so many optionsβ¦ obsessed π--swap-method <method>βDEFAULT|EXCHANGE|COPY|UNDEFINED. select the preferred swap method.--syncβ enable sync of swap buffers.--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 the specified extension.-hor--helpβ display command line parameters.-l <library>β load the plugin.-p <filename>β play the specified camera path animation file, previously saved with the'z'key.
and that's the whole page, start to finish, nothing left behind π«Ά
little reminder: this page is from OpenSceneGraph, dated September 2019. keep it close, bestie, it's iconic. π
β¨ go view some 3D, you absolute legend β¨
π¦ where this page comes from
- debian bookworm: openscenegraph 3.6.5+dfsg1-8+b2 Β· OSGPL
- debian trixie: openscenegraph 3.6.5+dfsg1-9 Β· OSGPL
- ubuntu jammy: openscenegraph 3.6.5+dfsg1-7build3 Β· OSGPL
- ubuntu noble: openscenegraph 3.6.5+dfsg1-8build10 Β· OSGPL
- ubuntu questing: openscenegraph 3.6.5+dfsg1-9
- ubuntu resolute: openscenegraph 3.6.5+dfsg1-11build3 Β· OSGPL
- ubuntu stonking: openscenegraph 3.6.5+dfsg1-11build4 Β· OSGPL
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms