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 embed a Viser visualization in another HTML page? #220

Open
Daniil-KR opened this issue Jun 3, 2024 · 1 comment
Open

How to embed a Viser visualization in another HTML page? #220

Daniil-KR opened this issue Jun 3, 2024 · 1 comment

Comments

@Daniil-KR
Copy link

There is a nice embedded 3D demonstration in https://lerftogo.github.io/desktop.html

It seems like they are running Viser demos on GitHub Pages somehow.

Can you please advise me on how I can do the same thing? Is it possible to host the visualization through GitHub Pages, or can I save it in some intermediate format that can later be rendered in three.js?

@brentyi
Copy link
Collaborator

brentyi commented Jun 4, 2024

Hi!

We're planning on it, but unfortunately this functionality hasn't been cleaned up / documented / supported. If it's important to you and you want to figure it out, you can reference the implementation that still lives in this branch: https://github.com/nerfstudio-project/viser/tree/brent/record

The most relevant class is RecordHandle. Combined with the client built from that branch, RecordHandle can be used to produce a .viser file that can be optionally gzipped and loaded in a URL like:

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