- OpenSceneGraph 3.0: Beginner's Guide
- Rui Wang Xuelei Qian
- 185字
- 2021-03-27 00:35:37
Running utilities
OSG comes with a few command-line tools that can be used to quickly view models and images, and convert them into other file formats. Run the command prompt first:
- On Windows platforms, you can access the command prompt simply by going to the Start Menu and typing in the command
cmd
in the Run command box. - For a Mac OS X system, open the Terminal application, which is located by default inside the Applications | Utilities folder
- On a Linux console, type the commands directly and see the output results
Now enter the following command at the prompt:
# osgversion
Here, the pound sign (#) is used to indicate the prompt itself. Other kinds of user prompts may include the current directory, the username, and the printing time. You shall also explicitly provide a path in the command line for your executables on a UNIX shell.
The osgversion
application will output the working OSG version, for example:
OpenSceneGraph Library 3.0.0
Moreover, OSG provides a flexible and powerful model and image viewing tool—osgviewer, as well as a model format converter—osgconv
.