A 3d model viewer for the terminal
preview.mp4
q- Quitm- Toggle wireframe- Animation controls:
p- Play/Pause animation1- Previous animation2- Next animation
- When FPS controls are enabled:
w/a/s/d- Move forward/left/backward/righti/j/k/l- Look aroundSpace- Move upShift- Move downv- Slow downb- Speed up
- When FPS controls are disabled
w/a/s/d- Rotate the camera around the modele/r- Zoom in and out
--hash-charactersmakes character modes (--truecolor-characters,--palette-characters,--block-characters) render with#instead of half-block glyphs.- In this mode, vertical detail is halved (one source pixel row per terminal row).
Linux/macOS:
cmake -S . -B build -G Ninja -D CMAKE_BUILD_TYPE=Release -D USE_BUNDLED=OFF -D USE_SANITIZERS=OFF
cmake --build build --config ReleaseDebug build with sanitizers:
cmake -S . -B build-debug -G Ninja -D CMAKE_BUILD_TYPE=Debug -D USE_BUNDLED=OFF -D USE_SANITIZERS=ON
cmake --build build-debug --config DebugWindows (MSVC, recommended):
# Run these in a Visual Studio Developer PowerShell (x64)
cmake -S cmake.deps -B .deps -G Ninja -D CMAKE_BUILD_TYPE=Release -D DCAT_VCPKG_TRIPLET=x64-windows
cmake --build .deps --config Release
cmake -S . -B build -G Ninja -D CMAKE_BUILD_TYPE=Release -D USE_BUNDLED=ON -D DEPS_PREFIX="$PWD\.deps\vcpkg_installed\x64-windows" -D USE_SANITIZERS=OFF
cmake --build build --config Releasecmake -S cmake.deps -B .deps -G Ninja -D CMAKE_BUILD_TYPE=Release -D DCAT_VCPKG_TRIPLET=x64-windows
cmake --build .deps --config ReleaseIf your vcpkg revision does not provide a vips/libvips port, cmake.deps automatically downloads the official
vips-dev-x64-all bundle from libvips/build-win64-mxe and places it under .deps\vcpkg_installed\x64-windows.
Then configure the main project with:
cmake -S . -B build -G Ninja -D CMAKE_BUILD_TYPE=Release -D USE_BUNDLED=ON -D DEPS_PREFIX="$PWD\.deps\vcpkg_installed\x64-windows"
cmake --build build --config ReleaseWindows notes:
--kitty,--kitty-direct, and--sixelare not supported in native Windows mode.- Auto output mode falls back to character rendering modes on Windows.
glslcmust still be available onPATH(for example from the Vulkan SDK).
Install:
cmake --install build