Skip to content

Conversation

keyboardspecialist
Copy link

Summary

With the SPZ 2.0.0 release they added new functionality for handling coordinate systems. Previously this was just hardcoded, and the spz-loader library enforced a rotation about the X axis.

This PR adds support for this allowing the user to specify exactly how they want the coordinates handled upon unpacking.

New

  • CoordinateSystem type - Strongly typed to reflect C++ enum
  • UnpackOptions type - Reflects new C++ struct for unpacking options. Only contains CoordinateSystem currently

Fixes

  • Explicitly exports HEAPU8 and HEAPF32 in the emscripten build. The release NPM has all types exported, but the build as it was on main did not export anything. This is restricted to types actually used

This PR is identical to drumath2237#71 with the exception that it renames the scope to @cesium-spz-loader and removes build/publish scripts for BabylonJS and Playcanvas.

Scope renamed to cesium-spz-loader. If not appropriate, subject to change.

This fork focuses on core only. Babylon and Playcanvas not guaranteed to work.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant