Comments (5)
Many formats include sub-resources of some kind. glTF files cannot reference other glTF files, but might reference:
External textures — textures shared by many models can be requested and cached independently. Or the model might contain KTX2 or WebP textures, with fallback to PNG or JPEG if the better formats are not supported.
External binary buffers — a user might separate the binary resources for animations into separate .bin files so they are not downloading more than they need up front, among other use cases.
That said, we could prohibit external resources. Most formats are also able to embed everything in a single binary file if desired. OBJ+MTL is the only exception I'm aware of that cannot be packaged as a single file.
from model-element.
Would this attribute also define loading
for the poster
?
from model-element.
Maybe... I guess that would make sense. At least, we could say, "lazy load the poster first when in view, then the model".
from model-element.
Are there other formats that loads subresources? (SVG images?)
Since rendering and parsing happens outside the UA, it seems the loading of subresources is complicated.
from model-element.
Many formats include sub-resources of some kind.
I meant in a regular browser :-)
There's HTML using an iframe which is very complex. I believe SVG images don't allow subresources.
That said, we could prohibit external resources. Most formats are also able to embed everything in a single binary file if desired. OBJ+MTL is the only exception I'm aware of that cannot be packaged as a single file.
+1
from model-element.
Related Issues (20)
- Reseting the camera? HOT 2
- Adding "controls" HOT 10
- An "ar" link relationship? HOT 1
- Exit interaction event (with data?) HOT 11
- Setting the image-based lighting (IBL) HOT 5
- Means of controlling the shadow HOT 4
- Is media= enough for LOD handling? (or do we need srcset?) HOT 8
- Accessibility of model HOT 4
- Default width/height HOT 3
- Constrains on rotation HOT 1
- Background color of model HOT 3
- Describe what is in scope HOT 1
- Is it time for browsers to standardize 3D rendering? HOT 10
- Require CORS for all <model>-initiated fetches HOT 31
- A Prototype Would Help with Incubation HOT 1
- Interactions with HTMLCanvasElement HOT 3
- models must not be allowed to download external content HOT 5
- filter CSS property HOT 1
- polyfill
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from model-element.