svelthree
svelthree copied to clipboard
Loaders
- [ ] What to do with Loaders?
At the moment we only have the LoadedGLTF component. Strongly tending to just leave the rest vanilla three.js, but need to check dx in order to be sure it's a right decision.
Check Priority:
All three.js Loader Classes extending the Loader Class (incl. ones used internally):
-
AnimationLoader Class for loading AnimationClips in JSON format. This uses the FileLoader internally for loading files.
-
AudioLoader Class for loading an AudioBuffer. This uses the FileLoader internally for loading files.
-
BufferGeometryLoader A loader for loading a BufferGeometry. This uses the FileLoader internally for loading files.
-
CompressedTextureLoader Abstract base class for block based textures loader (dds, pvr, ...). This uses the FileLoader internally for loading files.
-
CubeTextureLoader Class for loading a CubeTexture. This uses the ImageLoader internally for loading files.
-
DataTextureLoader Abstract base class to load generic binary textures formats (rgbe, hdr, ...). This uses the FileLoader internally for loading files, and creates a new DataTexture.
-
FileLoader A low level class for loading resources with XMLHttpRequest, used internaly by most loaders. It can also be used directly to load any file type that does not have a loader.
-
FontLoader Class for loading a font in JSON format. Returns a Font, which is an array of Shapes representing the font. This uses the FileLoader internally for loading files.
-
ImageBitmapLoader A loader for loading an Image as an ImageBitmap. An ImageBitmap provides an asynchronous and resource efficient pathway to prepare textures for rendering in WebGL. Unlike FileLoader, ImageBitmapLoader does not avoid multiple concurrent requests to the same URL.
-
ImageLoader A loader for loading an Image. This is used internally by the CubeTextureLoader, ObjectLoader and TextureLoader.
-
MaterialLoader A loader for loading a Material in JSON format. This uses the FileLoader internally for loading files.
-
ObjectLoader A loader for loading a JSON resource in the JSON Object/Scene format.
-
TextureLoader Class for loading a texture. This uses the ImageLoader internally for loading files.
Instead of using a file loader, let the user pass in objects manually by importing then, it that possible?
- What to do with Loaders?
see #33 : Loaders could be used vanilla style.