Skip to content

Conversation

@alexchuber
Copy link
Contributor

@alexchuber alexchuber commented Nov 4, 2025

This PR adds a quick test for the glTF serializer in the Playground, updating BJS along the way.

  • Upgrade BJS to latest (8.36.1)
  • Fix installation test failure introduced in NativeEncoding: Use ArrayBufferView input and return Blob #1564
  • Add the Blob polyfill, NativeEncoding plugin, and babylonjs-serializers package throughout the Playground app
  • Port a visualization test for the glTF serializer from BJS
    • Note: I would port over more, but the rest happen to use the File API, which is not yet supported in Native.

@alexchuber alexchuber marked this pull request as ready for review November 6, 2025 18:10
@alexchuber
Copy link
Contributor Author

alexchuber commented Nov 6, 2025

I think the test is failing because we're expecting the old Blob polyfill in this function
which is being called in this line

@alexchuber alexchuber changed the title Playground: Add glTF serializer test Playground: Upgrade BJS and add glTF serializer Nov 7, 2025
alexchuber added a commit to BabylonJS/Babylon.js that referenced this pull request Nov 7, 2025
This PR adds handling for a Blob object in createImageBitmap.

We should probably outright remove the Blob hack from here, but just to
quickly & safely unblock [these other
changes](BabylonJS/BabylonNative#1565), I hope
this is alright.
@alexchuber alexchuber force-pushed the native-encoding-tests branch from 3b71a9a to 6a1def2 Compare November 8, 2025 00:54
@alexchuber
Copy link
Contributor Author

@alexchuber alexchuber enabled auto-merge (squash) November 8, 2025 01:42
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.

4 participants