Support format 99 float3 meshlet positions #13

Closed
github-bot wants to merge 2 commits from gh-pr/13/head into gh-pr/13/base
Owner

@⁠techfoundrynz on GitHub · 2026-11-21 13:09 UTC · original
techfoundrynz:fix/meshlet-float3-positions → main · +295 −59 · 2 files · 2 commits · closed without merging

Meshlets using position format 99 store raw float3 positions. The packed-position-only decoder skips these resources, leaving geometry missing from model previews.

Add a bounded vertex-stream decoder supporting format 99 alongside existing packed format 66. Attribute offsets retain their semantic slots, raw float3 streams do not require a quantization header, and malformed position streams are rejected before modifying the mesh builder. Existing packed axis transforms and UV decoding remain supported.

Validation: cargo test --offline --locked -- --nocapture passed (33 passed, 3 ignored). Tests cover packed positions, raw float3 positions, UVs, truncated and nonfinite data, and atomic rejection. With PERCYSTAR_LEVELS_RPF pointing to a local archive, three cable/water resources also decoded with expected triangle counts and positions within their declared bounds. No game assets are included.

The Cargo.lock package version is synchronized with the existing 1.3.6 manifest; dependencies are unchanged.

**@⁠techfoundrynz** on GitHub · 2026-11-21 13:09 UTC · [original](https://github.com/rpatty-dev/PercyStar/pull/13) `techfoundrynz:fix/meshlet-float3-positions` → `main` · +295 −59 · 2 files · 2 commits · closed without merging Meshlets using position format 99 store raw float3 positions. The packed-position-only decoder skips these resources, leaving geometry missing from model previews. Add a bounded vertex-stream decoder supporting format 99 alongside existing packed format 66. Attribute offsets retain their semantic slots, raw float3 streams do not require a quantization header, and malformed position streams are rejected before modifying the mesh builder. Existing packed axis transforms and UV decoding remain supported. Validation: `cargo test --offline --locked -- --nocapture` passed (33 passed, 3 ignored). Tests cover packed positions, raw float3 positions, UVs, truncated and nonfinite data, and atomic rejection. With `PERCYSTAR_LEVELS_RPF` pointing to a local archive, three cable/water resources also decoded with expected triangle counts and positions within their declared bounds. No game assets are included. The Cargo.lock package version is synchronized with the existing 1.3.6 manifest; dependencies are unchanged.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-27 02:31:03 +00:00
github-bot closed this pull request 2026-11-27 02:31:03 +00:00
Author
Owner

@⁠rpatty-dev on GitHub · 2026-11-21 13:19 UTC · original

Great work @⁠techfoundrynz! Integrated into main for v1.3.8 with full credit in README & release notes (format 99 float3 meshlets + signed format-40 / float format-66 UVs + atomic validation), plus optimized slice copies in append_meshlet_geom.

**@⁠rpatty-dev** on GitHub · 2026-11-21 13:19 UTC · [original](https://github.com/rpatty-dev/PercyStar/pull/13#issuecomment-7063191219) Great work @⁠techfoundrynz! Integrated into main for v1.3.8 with full credit in README & release notes (format 99 float3 meshlets + signed format-40 / float format-66 UVs + atomic validation), plus optimized slice copies in append_meshlet_geom.

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No description provided.