以下内容引用自README.md ,大家请首先参照这个配置
convert-to-threejs
Utility for converting model files to the Three.js JSON format
Supported Formats
- Fbx (.fbx)
- Collada (.dae)
- Wavefront/Alias (.obj)
- 3D Studio Max (.3ds)
Usage
convert_to_threejs.py [source_file] [output_file] [options]
Options:
-t, --triangulate force non-triangle geometry into triangles
-x, --ignore-textures don't include texture references in output file
-u, --force-prefix prefix all object names in output file to ensure uniqueness
-f, --flatten-scene merge all geometries and app