Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Voyager 3D support for *glb files #77

Merged
merged 5 commits into from
Aug 12, 2024
Merged

Voyager 3D support for *glb files #77

merged 5 commits into from
Aug 12, 2024

Conversation

qqmyers
Copy link
Member

@qqmyers qqmyers commented Aug 8, 2024

Adds the Smithsonian Voyager app as a previewer.

Closes #57

Note: to accomplish this I had to edit the Voyager minimized js. Specifically, the app appeared to try to retrieve the *.glb file as text/plain and our code considers that request un-supportable. For now, I change the Accept header to "text/plain, *". It is possible that Voyager could/should fix this. (I haven't yet submitted any issue to their repo).

Also note that the Smithsonian Voyager viewer can view other file types and some of those will be more difficult to support. For example, there is one type where the viewer reads a json file that is expected to have relative paths to other required files. In Dataverse, these relative paths are wrong, aren't signed, etc. so dynamically rewriting that file or adapting the app (it's open source) might be needed.

qqmyers added 3 commits August 8, 2024 14:17
For pre-Dataverse 6.4 (which doesn't recognize the *.glb files, one can
edit the Accept header in the voyager-explorer.min.js script to accept *
in addition to text/plain (there is only one place this happens in their
current script so easy to find). 6.4, in addition to adding the
mimetype, changes the file download api to @produce */* (making
text/plain an OK request rather than a 406 error).
@qqmyers
Copy link
Member Author

qqmyers commented Aug 12, 2024

Merging to support testing with github.io version

@qqmyers qqmyers merged commit 23df48d into develop Aug 12, 2024
1 check passed
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.

Support for: Voyager 3D viewer: https://smithsonian.github.io/dpo-voyager/
1 participant