meshcat-dev / meshcat

Remotely-controllable 3D viewer, built on top of three.js
MIT License
250 stars 44 forks source link

Fix loading glTF meshes with unbundled resources #171

Closed jwnimmer-tri closed 7 months ago

jwnimmer-tri commented 7 months ago

With Meshcat, the word 'path' can mean two different kinds of thing:

When passing 'path' to GLTFLoader.parse, the argument is of the second kind (a URL) but we were giving it a value of the first kind.

This didn't matter when the glTF only contains embedded assets, but causes trouble when it uses relative URIs: they end up being polluted by the SceneTree path and the web server has no idea what files the loader is asking for.


Drake bump: https://github.com/RobotLocomotion/drake/pull/20876


This change is Reviewable