aframevr / aframevr/aframe

Preloading .glb models with asset system

Open
#2,420 15 comments 2 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.