Preloading .glb models with asset system
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 17.6k
- Forks
- 4.4k
- PR merge metrics
- No merged PRs in 30d
Description
Description:
a-asset-item is for preloading and caching assets.
But glTF data consists of glTF file and other files specified in the glTF file, like
.bin, .glsl, image(texture) files.
<a-asset-item id="model" src="something.gltf"></a-asset-item> preloads only .glTF file.
How can we preload all the involved files?
Do we make glTF special a-asset-item in which it loads glTF with THREE.GLTFLoader ?
- A-Frame Version: 0.5.0
- Platform / Device: Any
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the a-asset-item asset system and review the proposed THREE.GLTFLoader integration. Trace how a .gltf or .glb model references its additional files, then define completion as preloading and caching the complete set of involved assets rather than only the model file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, three.js
- Domain
- frontend, web-dev
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100