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 are DO_NOT_COMPUTE_NEAR_FAR, COMPUTE_NEAR_FAR_USING_BOUNDING_VOLUMES, or COMPUTE_NEAR_FAR_USING_PRIMITIVES.
  • --CullDrawThreadPerContext β€” selects the CullDrawThreadPerContext threading model for the viewer. that's the model's name, take it or leave it 🧚
  • --CullThreadPerCameraDrawThreadPerContext β€” selects the CullThreadPerCameraDrawThreadPerContext threading model for the viewer. yes it's a long one. it ate. πŸ‘‘
  • --DrawThreadPerContext β€” selects the DrawThreadPerContext threading model for the viewer.
  • --NEAR_FAR_RATIO <float> β€” sets the ratio between the near and far planes. it must be greater than 0.0 but less than 1.0. that's a hard rule, not a suggestion. 🚨
  • --SingleThreaded β€” selects the SingleThreaded threading 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 says rgb here too, not rgba β€” 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 of MONITOR, POWERWALL, REALITY_CENTER, or HEAD_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 to false.
  • --keystone-on β€” set the keystone hint to true to 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 of AUTO_HIDE, FORCE_HIDE, or FORCE_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.0 is 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 is ANAGLYPHIC if 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.
  • -h or --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 ✨