Desktop visualization and export tooling for simulation outputs.
Built for research workflows that need inspection, validation, and presentation of time-varying results without coupling the viewer to the simulation code itself.
Preview • Highlights • Quick Start • Data Format • Docs
Animation previews:
| Clip 1 | Clip 2 |
|---|---|
![]() |
![]() |
The README uses GIF previews for stable inline rendering on GitHub.
SimViewer is a modern C++ and OpenGL desktop application for browsing animated simulation results in 2D and 3D. It is designed as a research tool: load a result directory, inspect scene objects, step through frames, tune appearance parameters, and export screenshots, meshes, or MP4 videos for debugging, evaluation, papers, and demos.
The repository is intentionally split into two layers:
engine/contains reusable application, rendering, GUI, and utility codeviewer/contains simulation-specific loading, object handling, viewer panels, and export workflows
SimViewer is not a simulation framework, solver, or benchmark suite. It is the viewing and presentation layer around simulation data.
- Interactive 2D and 3D visualization for time-varying simulation scenes
- Frame-by-frame playback with asynchronous background loading
- Per-object visibility, material, and shading controls
- Screenshot capture from the current viewport
- Mesh export for the current frame or all loaded frames
- MP4 animation export through
ffmpeg - Lightweight desktop UI built with ImGui
- a C++ compiler with modern C++ support
- OpenGL support on the target machine
- xmake
ffmpegfor MP4 export
Third-party dependencies are resolved through xmake packages:
cxxoptseigengladglfwglmimguinativefiledialog-extendedspdlogstbtinyplyyaml-cpp
xmake f -m release
xmakexmake run viewer -- --dirname path/to/simulation_outputIf no directory is provided, the application defaults to output.
SimViewer opens a directory-based dataset and exposes viewer controls through the menu bar, side panels, mouse interaction, and keyboard shortcuts.
Keyboard shortcuts:
Left/Right: step frames while playback is pausedCtrl+P: play or stop animationCtrl+R: reset animation stateCtrl+S: save screenshotCtrl+N: export animationCtrl+M: export modelsCtrl+Backspace: reset camera
Mouse interaction:
- 3D mode: left drag rotates, right drag translates, mouse wheel zooms
- 2D mode: right drag pans, mouse wheel zooms
Main panels:
- Animation: frame navigation and playback settings
- Appearance: background, shading, lighting, and renderer options
- Camera: current view parameters and interaction hints
- Objects: visibility, metadata, and material controls for each object
The dataset contract lives in docs/data-format.md.
That document covers:
- directory layout
description.yamlschema- object metadata fields
- supported public binary payload layouts
- frame semantics and naming rules
Use Ctrl+S or File > Save Screenshot to save the current viewport as an image.
Use Ctrl+M or File > Export > Models to export selected objects from the current frame or all loaded frames.
Use Ctrl+N or File > Export > Animation to export an MP4.
SimViewer searches for ffmpeg in either of these locations:
- on your system
PATH - as
ffmpeg.exenext to the viewer executable
engine/: core application, input, windowing, rendering, shader, GUI, and utility codeviewer/: dataset loading, scene objects, viewer UI, and export logicassets/: built-in shaders and fonts copied next to the executable during the builddocs/: public-facing documentation and GitHub media assetsxmake.lua: build configuration and dependencies
- Dependencies are declared in
xmake.luaand resolved through xmake packages. - Assets under
assets/are copied into the output directory automatically. - The viewer assumes a directory-based dataset with
description.yamlplus per-frame binary files.
Issues and pull requests are welcome. If you want to contribute a new data layout, renderer feature, or export path, opening an issue first will help keep the viewer contract clear and avoid accidental format drift.
This project is licensed under the MIT License. See LICENSE for details.


