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

Optimization Loader for GlTF SubAsset #1071

Closed
gz65555 opened this issue Sep 22, 2022 · 1 comment
Closed

Optimization Loader for GlTF SubAsset #1071

gz65555 opened this issue Sep 22, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request glTF low priority Low priority issue
Milestone

Comments

@gz65555
Copy link
Collaborator

gz65555 commented Sep 22, 2022

Is your feature request related to a problem? Please describe.
I have a material only need a texture of glTF asset, but I don't want to parse all the glTF Asset.

Describe the solution you'd like
Use q as query param. If the param is textures[0] which to get glTFResource.textures[0].

engine.resourceManager.load('.glTF?q=textures[0]');
engine.resourceManager.load('.glTF?q=materials[0]');
engine.resourceManager.load('.glTF?q=animations[0]');
engine.resourceManager.load('.glTF?q=meshes[0][0]');
engine.resourceManager.load('.glTF?q=defaultSceneRoot');

Additional context
Support the project of Digital technology. @jeasonstudio

@zhuxudong zhuxudong self-assigned this Sep 22, 2022
@GuoLei1990 GuoLei1990 added the enhancement New feature or request label Sep 22, 2022
@GuoLei1990 GuoLei1990 added this to the 0.9 milestone Sep 22, 2022
zhuxudong added a commit to zhuxudong/engine that referenced this issue Sep 23, 2022
GuoLei1990 pushed a commit that referenced this issue Oct 17, 2022
*feat: add loader for gltf subasset
@GuoLei1990 GuoLei1990 modified the milestones: 0.9, 1.0 Nov 14, 2022
@GuoLei1990 GuoLei1990 changed the title Add Loader for GlTF SubAsset Optimization Loader for GlTF SubAsset Nov 14, 2022
@GuoLei1990
Copy link
Member

Optimize PR: #1299

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request glTF low priority Low priority issue
Projects
None yet
Development

No branches or pull requests

3 participants