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

Is there a way we could render an image at a certain point view? #238

Closed
Deaddawn opened this issue Oct 26, 2024 · 15 comments · Fixed by #240
Closed

Is there a way we could render an image at a certain point view? #238

Deaddawn opened this issue Oct 26, 2024 · 15 comments · Fixed by #240

Comments

@Deaddawn
Copy link

No description provided.

@slimbuck
Copy link
Member

Hi @Deaddawn ,

Do you mean you want to download a PNG image of the current view or something else?

Downloading a png of the viewport would be easy to implement, though I guess we'd want to hide the grid/bounding box/selections etc.

Thanks

@Deaddawn
Copy link
Author

Hi @Deaddawn ,

Do you mean you want to download a PNG image of the current view or something else?

Downloading a png of the viewport would be easy to implement, though I guess we'd want to hide the grid/bounding box/selections etc.

Thanks

Yes, would that be possible to tell us how to do this?

@slimbuck
Copy link
Member

I will add that today 👍🏻 (but without automatically hiding bits).

@Deaddawn
Copy link
Author

Deaddawn commented Oct 27, 2024

I will add that today 👍🏻 (but without automatically hiding bits).

Thanks a lot! Does "hiding bits" means I can't hide grid or selections? If so, it will be a little inconvenience 😂

Is it possible that i can get a pure png without any grid under the condition i manually close it from interface

@slimbuck
Copy link
Member

Yes you'll just have to hide the grid yourself before taking the screenshot for now, that's all.

Otherwise we must add options to the UI to 'include grid in screenshot' etc, which I'd rather not do right now.

@slimbuck
Copy link
Member

Btw the png will have transparent background, is that ok?

@Deaddawn
Copy link
Author

Yes you'll just have to hide the grid yourself before taking the screenshot for now, that's all.

Otherwise we must add options to the UI to 'include grid in screenshot' etc, which I'd rather not do right now.

Understand, thanks.

@Deaddawn
Copy link
Author

Deaddawn commented Oct 27, 2024

Btw the png will have transparent background, is that ok?

white bg would be lovely if possible 😂

@Deaddawn
Copy link
Author

God speed! Master Jedi

@Deaddawn
Copy link
Author

Deaddawn commented Oct 28, 2024

Sry to ask, I didn't find the screen shot button in the live version, should I run this locally? @slimbuck

@slimbuck
Copy link
Member

Yes code is merged, but is still to be published on playcanvas.com. That'll happen today or tomorrow most likely.

Use local version if you need it now.

@Deaddawn
Copy link
Author

Deaddawn commented Oct 28, 2024

Yes code is merged, but is still to be published on playcanvas.com. That'll happen today or tomorrow most likely.

Use local version if you need it now.

I understand that background can not be adjusted in the current verson, would that be possible if you can tell me the code where i can just change the background into white. Thanks in advance. @slimbuck

@slimbuck
Copy link
Member

We will add background color picker real soon.

Till then change this constant to 255:

https://github.com/playcanvas/supersplat/blob/main/src/editor.ts#L554

@slimbuck
Copy link
Member

I did this one too @Deaddawn #243

@Deaddawn
Copy link
Author

I did this one too @Deaddawn #243

Got it, that helps a lot, thanks !

@Deaddawn Deaddawn changed the title Is there a way we could render an image with a certain view? Is there a way we could render an image at a certain point view? Oct 29, 2024
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 a pull request may close this issue.

2 participants