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

How to create a href? #7

Open
JonHe2002 opened this issue Apr 22, 2024 · 1 comment
Open

How to create a href? #7

JonHe2002 opened this issue Apr 22, 2024 · 1 comment

Comments

@JonHe2002
Copy link

JonHe2002 commented Apr 22, 2024

Dear:
I'm a undergraduate from China,recently,my mates and I want to create a href like the following one for our own point_clouds.ply and cameras.json files?

href="https://keksboter.github.io/web-splat?file=./scenes/bicycle/point_cloud/iteration_35000/ point_cloud.npz&scene=./scenes/bicycle/cameras.json">

We want to show this following scene in chrome instead of showing by cargo run --release --bin viewer point_cloud.ply cameras.json
Could you give us some suggestions.

bb1609afd1bd63e1d37f28d144be818d.mp4
                                                                                                                                                                                             Sincerely.
@JonHe2002 JonHe2002 changed the title How to create a herf? How to create a href? Apr 23, 2024
@KeKsBoTer
Copy link
Owner

You have to upload the file somewhere first and then pass the URL to the viewer via the file parameter.
It is important that the viewer and files use the same host (e.g. domain).
Or the web server for the files has to allow CORS (https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS).
Otherwise the brower will not allow the viewer to read the file ( for security reasons)

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

No branches or pull requests

2 participants