Checked GLUS return values across all examples (316 call sites).
Replaced deprecated FetchContent_Populate in root CMakeLists.txt.
Requires GLUS v1.1.1.
v3.2.0
Migrated the glTF examples (48-52) onto the GLUS glTF 2.0 loader (glusGltfLoadScene / glusGltfGetCgltfData). GLUS now provides cgltf + stb_image and exposes GLUS_SHADER_DIR; the copied OpenGL/GLUS/ folder is gone.
Requires GLUS v1.1.0. GLUS is taken from the sibling local checkout ../GLUS when present, otherwise fetched from McNopper/GLUS.
Refreshed screenshots.
v3.1.1
Added Example52 – 3D Gaussian Splatting with view-direction SH rotation.
Example51: corrected spherical-harmonics handling for rotated splat nodes
(Wigner-D bridged to the glTF/3DGS SH sign convention via the Condon-Shortley phase).
Both splatting examples: auto-rotation is off by default and toggles with Space.
Requires GLUS v1.0.1 (band-3 SH rotation fix).
License
The project is distributed under the MIT License — see LICENSE.
These examples are built on GLUS (MIT), which
bundles glfw, glew, cgltf and stb — their notices live in the
GLUS third-party file.
The dependencies and bundled assets added by this repository — McNopper/EGL
(MIT) and the Einstein / phoenix 3D models (CC-BY-4.0) — are documented in
THIRD-PARTY.md; per-example attributions are noted in each
example's section below.
Dependencies (GLUS, GLFW and GLEW) are automatically downloaded and built via CMake FetchContent. GLUS is taken from the sibling local checkout ../GLUS when present (multi-repo development layout), and otherwise fetched from its own repository at github.com/McNopper/GLUS. GLUS in turn provides cgltf and stb_image, and exposes its shader directory through the GLUS_SHADER_DIR compile definition.
Windows (Visual Studio):
bash
mkdir build && cd build
cmake ..
cmake --build .
Linux / macOS:
bash
mkdir build && cd build
cmake ..
make
Executables will be in the Binaries/ directory.
Dependencies
All dependencies are automatically fetched and built:
GLFW 3.4 - Windowing and input
GLEW 2.2.0 - OpenGL Extension Wrangler
OpenGL 3.2+ - System graphics library
Examples
All examples demonstrate various OpenGL 3.x and 4.x features with GLSL shaders.