question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

gltf-pipeline 2.0 creating empty models from gltf2 files

See original GitHub issue

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:

"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:closed
  • Created 6 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lilleysecommented, Nov 27, 2017

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.

0reactions
DJviolincommented, Nov 27, 2017

Thank You, I will check it out!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found