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

Basic assets preview and preview caching #151

Draft
wants to merge 11 commits into
base: main
Choose a base branch
from

Conversation

443eb9
Copy link

@443eb9 443eb9 commented Nov 21, 2024

Preview assets that marked AssetPreview. (might change in the future)

For 2d sprites, this should be a simple sprite 2d.
For meshes, we will render this asset at a low resolution, store the result and display it once needed.
For fonts, render some characters with that font.

TODOs

  • Generate preview image for 3d models.
  • Cache preview image.
  • Regenerate when asset changes, including change during hot reloading.
  • Automatically adjust the distance between camera and model according to model scale.

@443eb9 443eb9 changed the title Assets previewer. Assets preview and preview caching Nov 23, 2024
@443eb9 443eb9 changed the title Assets preview and preview caching Basic assets preview and preview caching Nov 23, 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 this pull request may close these issues.

1 participant