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

Add viewer app export #244

Merged
merged 3 commits into from
Oct 29, 2024
Merged

Add viewer app export #244

merged 3 commits into from
Oct 29, 2024

Conversation

slimbuck
Copy link
Member

This PR:

  • adds an export option for generating a simple web viewer using https://github.com/playcanvas/web-components
  • the app comprises 3 files (html, camera controller, splat) which are zipped using jszip
  • the splat is exported in compressed ply format
  • the viewer's background color is taken from the editor's current background color
Screenshot 2024-10-29 at 11 09 21

Notes:

  • We will likely add lots of export options in future for things like:
    • compressed or uncompressed ply
    • camera types: 1st person, orbit camera, camera path
    • support for AR mode
  • I couldn't get JSZip to import correctly into typescript so it's loaded as an external script for now

@slimbuck slimbuck added the enhancement New feature label Oct 29, 2024
@slimbuck slimbuck requested a review from a team October 29, 2024 11:16
@slimbuck slimbuck self-assigned this Oct 29, 2024
@slimbuck slimbuck merged commit 8328bb8 into playcanvas:main Oct 29, 2024
2 checks passed
@slimbuck slimbuck deleted the viewer-export branch October 29, 2024 11:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants