Skip to content

Conversation

@alexchuber
Copy link
Contributor

@alexchuber alexchuber commented Dec 18, 2025

This PR adds the remaining glTF configuration tools (Extensions config, loader plugin config, and validator) to the Inspector v2 Tools pane.|

Default view:
image

After loading new file and editing loader settings:
image

Changes

New Components:

  • GLTFLoaderOptions - Main configuration UI with loader settings and extension options bundled together
  • GLTFValidationTools - Displays glTF validation results (errors, warnings, hints)

New Service:

  • GLTFLoaderService - Manages loader configuration, extension states, and validation results. Can probably be abstracted more into a broader SceneLoaderService.

Features:

  • Configure all loader settings (bounding boxes, animations, materials, etc.)
  • Enable/disable glTF extensions and configure extension-specific properties
  • Smart change detection - only shows reload prompt when settings differ from initial state
  • Real-time validation feedback with detailed report viewer
  • Animation import with merge mode configuration

⚠️ I also need to do a pass over this, since a lot of it-- at least, towards the end-- was AI-generated.

@alexchuber alexchuber requested a review from ryantrem December 18, 2025 22:33
@bjsplat
Copy link
Collaborator

bjsplat commented Dec 18, 2025

Please make sure to label your PR with "bug", "new feature" or "breaking change" label(s).
To prevent this PR from going to the changelog marked it with the "skip changelog" label.

@bjsplat
Copy link
Collaborator

bjsplat commented Dec 18, 2025

Snapshot stored with reference name:
refs/pull/17580/merge

Test environment:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/17580/merge/index.html

To test a playground add it to the URL, for example:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/refs/pull/17580/merge/index.html#WGZLGJ#4600

Links to test your changes to core in the published versions of the Babylon tools (does not contain changes you made to the tools themselves):

https://playground.babylonjs.com/?snapshot=refs/pull/17580/merge
https://sandbox.babylonjs.com/?snapshot=refs/pull/17580/merge
https://gui.babylonjs.com/?snapshot=refs/pull/17580/merge
https://nme.babylonjs.com/?snapshot=refs/pull/17580/merge

To test the snapshot in the playground with a playground ID add it after the snapshot query string:

https://playground.babylonjs.com/?snapshot=refs/pull/17580/merge#BCU1XR#0

If you made changes to the sandbox or playground in this PR, additional comments will be generated soon containing links to the dev versions of those tools.

@bjsplat
Copy link
Collaborator

bjsplat commented Dec 18, 2025

You have made possible changes to the playground.
You can test the snapshot here:

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/17580/merge/

The snapshot playground with the CDN snapshot (only when available):

https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/PLAYGROUND/refs/pull/17580/merge/?snapshot=refs/pull/17580/merge

Note that neither Babylon scenes nor textures are uploaded to the snapshot directory, so some playgrounds won't work correctly.

@bjsplat
Copy link
Collaborator

bjsplat commented Dec 18, 2025

Building or testing the sandbox has failed.

If the tests failed, results can be found here:
https://snapshots-cvgtc2eugrd3cgfd.z01.azurefd.net/SANDBOX/refs/pull/17580/merge/testResults/

@bjsplat
Copy link
Collaborator

bjsplat commented Dec 18, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Dec 18, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Dec 18, 2025

@bjsplat
Copy link
Collaborator

bjsplat commented Dec 18, 2025

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.

2 participants