Cobry
January 14, 2020, 4:19pm
1
Hello,
I have a program in which I can create 3D models and then export them as xml files. Now I would like to load these 3D models using three.js. Therefore I want to write my own Loader.
Do you have any tipps and tricks how to start?
I’d start with the existing loaders … KMZLoader might be a good place to look, as it’s (1) pretty simple, and (2) already parses XML.
The loader internally uses ColladaLoader
so I guess it’s better to study how this loader works. 3MFLoader
is also a good choice. Also check out the following code template for a loader:
opened 11:36PM - 27 Oct 14 UTC
Enhancement
Loaders
List of loaders that would be nice to have:
## 3D
- [x] 3DMLoader
- https:/… /www.rhino3d.com/opennurbs
- [x] 3DSLoader
- http://en.wikipedia.org/wiki/.3ds
- http://dzzd.net/3DSChunkDefinitions.html
- http://k3d.ivank.net/demos/parsing3DS.html
- [x] 3MFLoader
- [x] AMFLoader
- http://en.wikipedia.org/wiki/Additive_Manufacturing_File_Format
- [ ] BREPLoader
- https://en.wikipedia.org/wiki/Boundary_representation
- [x] BVHLoader
- https://sites.google.com/a/cgspeed.com/cgspeed/motion-capture/cmu-bvh-conversion
- [x] ColladaLoader
- [ ] DXFLoader
- http://en.wikipedia.org/wiki/AutoCAD_DXF
- https://github.com/gdsestimating/dxf-parser
- [x] FBXLoader
- https://banexdevblog.wordpress.com/2014/06/23/a-quick-tutorial-about-the-fbx-ascii-format/
- http://code.blender.org/2013/08/fbx-binary-file-format-specification/
- https://github.com/hamish-milne/FbxWriter
- http://wiki.blender.org/index.php/User:Mont29/Foundation/FBX_File_Structure
- https://github.com/dobkeratops/openfbx
- [x] GLTFLoader
- [x] IFCLoader
- [ ] IGESLoader
- http://en.wikipedia.org/wiki/IGES
- [x] KMZLoader
- https://3dwarehouse.sketchup.com/model.html?id=907f1fa5805282f8630a81e41b3b6ffd
- [x] LWOLoader
- http://static.lightwave3d.com/sdk/2018/html/filefmts/lwo3.html
- https://github.com/marcbizal/lwo-parser
- [x] M2Loader
- https://wowdev.wiki/M2
- https://github.com/Dramacydal/M2Lib https://github.com/Koward/M2Lib
- [x] MD2Loader
- [x] MDDLoader
- [x] MMDLoader
- http://mikumikudance.wikia.com/wiki/MMD:Polygon_Model_Data
- [x] MTLLoader (needs refactoring)
- [x] NRRDLoader
- http://lessons.goxtk.com/10/
- [x] OBJLoader
- [x] PDBLoader
- [x] PCDLLoader
- [x] PLYLoader
- [x] PVRLoader
- [ ] QuakeBSPLoader
- https://github.com/mrdoob/three.js/issues/11604
- [ ] STEPLoader
- https://github.com/mrdoob/three.js/issues/7125#issuecomment-308232748
- [x] STLLoader
- [x] TILTLoader
- https://github.com/benfoxall/tiltbrush/blob/master/lib/Sketch.js
- https://github.com/googlevr/tilt-brush-toolkit
- https://docs.google.com/document/d/11ZsHozYn9FnWG7y3s3WAyKIACfbfwb4PbaS8cZ_xjvo/preview
- [x] URDFLoader
- #13768
- [x] USDLoader
- #14219
- https://graphics.pixar.com/usd/docs/Usdz-File-Format-Specification.html
- https://fereria.github.io/reincarnation_tech/05_DCCTool/10_Houdini/11_SOLARIS/12_usd_preview_surface/
- https://github.com/usd-wg/assets
- https://github.com/erich666/McUsd
- https://github.com/syoyo/tinyusdz
- [ ] VDBLoader
- https://www.openvdb.org/
- [x] VRMLLoader
- [x] VTKLoader
- [ ] X3DLoader
## Bitmap
- [x] DDSLoader
- [x] HDRLoader
- [x] TGALoader
- [x] TIFFLoader
## Vector
- [ ] IVGLoader
- https://github.com/google/iconvg/blob/main/spec/iconvg-spec.md
- [x] SVGLoader
- [x] TTFLoader
1 Like