gltf-pipeline 2.0 creating empty models from gltf2 files
See original GitHub issueI’m running on Windows 10 and I installed gltf-pipeline
locally in my project. I running the command with this line from package.json
:
"gltf-pipeline": "node ./node_modules/gltf-pipeline/bin/gltf-pipeline.js -i ./ar/models/photoscan/gltf/model.gltf -o ./ar/models/photoscan/glb/model.gltf --stats",
Which is generating the following gltf file:
{"accessors":{},"asset":{"generator":"Khronos Blender glTF 2.0 exporter","version":"2.0","premultipliedAlpha":false,"profile":{"api":"WebGL","version":"1.0.3"}},"bufferViews":{},"buffers":{},"images":{},"materials":{},"meshes":{},"nodes":{"rootNode":{"children":[],"meshes":[],"matrix":[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]}},"samplers":{},"scene":0,"scenes":[{"name":"Scene","nodes":["rootNode"]}],"textures":{},"animations":{},"cameras":{},"programs":{},"shaders":{},"skins":{},"techniques":{},"extensionsUsed":[]}
And this is my console output:
Statistics for ar\models\photoscan\gltf\model.gltf
------------------
Total size of all buffers: 81072 bytes
Images: 1
Draw calls: 1
Rendered primitives (e.g., triangles): 2000
Nodes: 1
Meshes: 1
Materials: 1
Animations: 0
External requests (not data uris): 2
Statistics for ar\models\photoscan\glb\model.gltf
------------------
Total size of all buffers: 0 bytes
Images: 0
Draw calls: 0
Rendered primitives (e.g., triangles): 0
Nodes: 1
Meshes: 0
Materials: 0
Animations: 0
External requests (not data uris): 0
optimize: 208.208ms
Thank You for your help!
Issue Analytics
- State:
- Created 6 years ago
- Comments:8 (4 by maintainers)
Top Results From Across the Web
gltf-pipeline 2.0 creating empty models from gltf2 files #337
I'm running on Windows 10 and I installed gltf-pipeline locally in my project. I running the command with this line from package.json: ...
Read more >Art Pipeline for glTF - Khronos Group
The tools that can export a model and textures into the glTF format at this point are 3ds Max, Blender, and Substance Painter...
Read more >pygltflib - PyPI
Python library for reading, writing and managing 3D objects in the Khronos Group gltf and gltf2 formats.
Read more >A-frame convert zip package into glb for sketch fab model
NOTICE: While it's technically possible to create a self-contained .gltf file, rather than .glb , don't do this.
Read more >glTF | glTF – Runtime 3D Asset Delivery
Blender exporter for creating and converting models with glTF 2.0. Preview tools: ... Export glTF files using BabylonJS plugin for 3DS Max 2015...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
That branch may have some issues as well. Since you are doing a straight gltf to glb conversion, I would recommend checking out the glTF VS Code extension: https://github.com/AnalyticalGraphicsInc/gltf-vscode, which can convert gltf + external resources to a glb.
Thank You, I will check it out!