cesium项目用到了一些三维模型,模型略大,加载很慢,想着怎么压缩一下。不过本人对三维模型软件操作不熟(装了个blender但是不咋会用 ╮(╯_╰)╭),搜了一下就找到这个Draco(https://github.com/google/draco),简单测试,效果还行。
安装过程参考这篇文章
https://blog.csdn.net/qq_28907595/article/details/121631498
亲测可用,虽然很麻烦(draco的github页面上已经有人吐槽过了–Make Draco packaging friendly when DRACO_TRANSCODER_SUPPORTED is enabled)
最终生成了这些程序
压缩命令
draco_transcoder.exe -i "D:\glbs\trap.glb" -o "D:\glbs\trap_draco.glb"
有时间了还是要学习一下各种三维模型结构