Repository navigation
v2026.10
This release adds authored skies to vk_gltf_renderer: the glTF OMI_environment_sky extension with a plain / gradient / panorama / physical sky, a Bruneton physical atmosphere with shadowed aerial perspective, and a placeable sun driven by real solar position. It also unifies environment rotation and brings a set of large-scene performance and correctness fixes.
Sky & Environment
- OMI_environment_sky authored skies (plain, gradient, panorama, physical). An authored sky is baked to the same lat-long image and GPU alias table a loaded HDR would produce (EnvBaker), so the rasterizer and path tracer light from one mechanism. Preview while a slider moves, commit on settle.
- Physical atmosphere using precomputed Bruneton (2008) scattering. The background is evaluated per-ray from the LUTs, so the horizon stays sharp independent of bake resolution; the solar disk is added with MIS weighting and shows on glass, mirrors, and the blurred background.
- Placeable sun via NOAA solar position (location, date, clock → bearing/altitude), driving the Time of Day slider, Jump To moments, city list, and North Offset.
- .sky.json presets — loadable from the panel, a viewport drop,
--loadSkyPreset/--saveSkyPreset, benchmark sequences, and MCP. - Unified environment rotation: OMI_environment_sky's quaternion
rotationis now the renderer's orientation, replacing the HDR yaw (hdrEnvRotation/--hdrRotation) and Time of Day's North Offset (todNorthOffset). It is applied and saved exactly, tilt included, viaSceneFrameInfo::envRotation. - Physical-sky parameters OMI does not model (star spectrum, planet radius, scale heights, ozone) live in a sibling
NV_environment_sky_atmosphereblock, so OMI-only readers still get a coherent sky. - Removed the MDL sky; the Bruneton bake is now the procedural sky for both paths.
Path Tracer
- Shadowed aerial perspective: the atmospheric march returns the sun's single scattering with one importance-picked point and a
TraceShadowray, giving an unbiased estimate that converges with the image and forms light shafts. Multiple scattering stays unshadowed. Measured ~2 ms on FlightHelmet at 1080p, 1 spp. - Direct lighting now weighs each next-event technique only against the BSDF technique that can produce the same radiance; punctual lights stay Dirac at weight 1.
- Add a toggle for biased shadow transmission.
safeOffsetRayscales its offset by the largest world coordinate, preventing self-intersection artifacts on distant, flat geometry at large scene scale.
Performance & Large Scenes
- Fill GPU instance-local matrices in linear time (was quadratic) — a 1M-instance
EXT_mesh_gpu_instancingscene (3M render nodes) now loads. - Count scene triangles in 64-bit (an 18.1-billion-triangle scene no longer wraps) and group digits in the Statistics window.
- Chunk large staging-buffer uploads (TLAS instances, render nodes) to stay within the frame uploader block size.
- Share allocation-free number formatters across UI panels.
Fixed
- Fix URI decoding of stored filesystem paths in glTF
.urifields. - Fix a staging assertion when uploading oversized texture mip levels.
- Sky preset / sun-light / OMI save fixes: resolve panorama preset URIs against the
.sky.json, correct start-up preset ordering, ignore malformedsunRotation, match the marked sun by node, and stop preset-only keys leaking into saved glTF.
Documentation
- New
docs/sky.md(including "What is not implemented"); updateddocs/developer.md,docs/user-guide.md, and README glTF-extension support. Removed the user guide's table of--sky*flags left over from the deleted MDL sky.
Note: requires the matching nvpro_core2 (quaternion IBL / HdrEnvDome::draw overloads, vec4 settings persistence), already published.
Full Changelog: v2026.9.1...v2026.10
