Files
Syoyo Fujita 3c1b1735b7 raise C++ version requirement from C++14 to C++17
Update all CMakeLists.txt, Makefiles, meson.build, setup.py,
and documentation files to use C++17 standard.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-08 03:39:41 +09:00
..
2022-09-09 01:47:21 +09:00
2022-09-09 01:47:21 +09:00
2024-08-04 04:41:49 +09:00
2024-08-07 06:04:00 +09:00
2024-08-07 06:04:00 +09:00
2020-08-20 00:22:35 +09:00

Simple viewer with SDL2

This viewer uses NanoRT(SW ray tracer) to render the model and display it using SDL2 (So no OpenGL dependency)

Status

W.I.P.

Requirements

  • C++14 compiler
    • external library imgui_sdl requires C++14
  • cmake
  • X11 related package(Linux only)
  • SDL2

Setup

You may use system installed SDL2, but we recommend to build SDL2 from source codes. Please download SDL2 source package and unpack it to ../common/ See ../common/README.sdl2 for details.

Build

$ mkdir build
$ cd build
$ cmake ..
$ make

Run

$ ./usdz_view <input.usdz>

WebAssembly demo

Setup emcc, then

$ ./bootstrap-emscripten-linux.sh
$ cd build_emcc/
$ make

Then run http server(e.g. python -m http.server) and open usdz_view.html.

TODO

  • Subdivision surface

Third party libraries

  • imgui : MIT license.
  • SDL2 : zlib license.
  • nativefiledialog-extended : zlib license.