# osim-magnum-viewer Read-only OpenSim viewer built with OpenSim, Magnum, SDL2, and ImGui. ## Build ```bash git submodule update --init --recursive cmake -S . -B build -DOpenSim_DIR=/home/crosstyan/Code/opensim-core-build/install/lib/cmake/OpenSim cmake --build build -j ``` ## Run ```bash ./build/bin/osim-magnum-viewer /path/to/model.osim /path/to/motion.mot ``` Optional flags: ```bash ./build/bin/osim-magnum-viewer model.osim motion.mot --geometry-dir /path/to/Geometry --speed 0.5 --start-paused ``` The repo vendors a `Geometry/` directory and searches it automatically at runtime. Sample run: ```bash ./build/bin/osim-magnum-viewer \ /home/crosstyan/Code/opensim-core/OpenSim/Moco/Test/walk_gait1018_subject01.osim \ /home/crosstyan/Code/opensim-core/OpenSim/Moco/Test/walk_gait1018_state_reference.mot ``` ## Notes - Motion troubleshooting notes: [`docs/motion-troubleshooting.md`](docs/motion-troubleshooting.md)