简体   繁体   中英

How can I export a scene or a model to GLTF Format in Three.js?

我正在使用Meteor构建Web应用程序,将场景导出为GLTF格式到服务器,是否可能?

Possible, yes. Has someone written JavaScript code yet that makes exporting glTF easy from web apps created with Three.js? I'm not sure.

Web apps that generate glTF typically use a native component such as COLLADA2GLTF or FBX-glTF running as a server side process, like in this example: https://cesiumjs.org/convertmodel.html

I think what you are looking for is this example .

For the server side part, as long as you don't use elements that require a browser (eg THREE.WebGLRenderer() ) you should be able to run THREE on a server. This is a cool example of that using a Node server .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM