autodesk-forks / USD

Universal Scene Description
http://www.openusd.org
Other
136 stars 22 forks source link

Fix: Allow passing in absolute URL for file= parameter #4

Closed hybridherbst closed 2 years ago

hybridherbst commented 2 years ago

Description of Change(s)

This PR adds support for viewing external files with the demo viewer. It will allow URLs like this to function:

which makes it useful as a quick way to preview files.

Fixes Issue(s)

Unable to quickly view other files and test the viewer's capabilities.

kaischroeder commented 2 years ago

Awesome. It's unfortunate that CORS prevents us from loading from arbitrary URLs - such as https://developer.apple.com/augmented-reality/quick-look/models/biplane/toy_biplane.usdz

hybridherbst commented 2 years ago

Yep, for these it will need to be downloaded from the source and then drag-dropped in.

Alternative (but out of scope for a test viewer such as here) would be to fetch them on a server (e.g. a Glitch instance) and then forward them.