Skip to content

how to get a thumbnail #547

Answered by donmccurdy
qiangwai asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! The gltf-transform library is for reading/editing/writing glTF files and doesn't really deal with rendering1. You'll need a renderer for that. Because node.js is a server-side platform it isn't particularly rich in rendering libraries, but you can spawn headless Blender instances or things like that if needed.

I'd start with this project: https://github.com/Shopify/screenshot-glb

1 There is also the @gltf-transform/view module, which could connect with three.js to render glTF files, but (1) running three.js in Node.js isn't trivial, and (2) three.js can already load glTF files so you don't really need gltf-transform for that workflow.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by donmccurdy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants