Files
osim-magnum-viewer/README.md
T

33 lines
789 B
Markdown

# osim-magnum-viewer
Read-only OpenSim viewer built with OpenSim, Magnum, SDL2, and ImGui.
## Build
```bash
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
```