【问题标题】:The latest Draco 1.5.0 and GLTF on the client side客户端最新的 Draco 1.5.0 和 GLTF
【发布时间】:2022-01-20 00:31:14
【问题描述】:

在最新版本的 Draco 1.5.0 中,这两个文件是什么? draco_decoder_gltf.js 和 draco_encoder_gltf.js。这是否意味着我们不再需要 draco_encoder 和 draco_decoder 文件?以及我们如何在不需要 MeshBuilder 的情况下调用转码器接口。一个更简单的 API 会更容易。如:

var encodedGlb = Transcode( glb );
var glb = Transcode( encodedGlb );

谢谢。

【问题讨论】:

    标签: javascript client gltf


    【解决方案1】:

    Draco 库不直接读取或写入 glTF 文件,因此使用它需要低级网格接口。 _gltf.js 文件是完整 Draco 库的较小 版本,仅包含 glTF 格式所需的功能,但它们仍然不读取/写入 glTF 文件。您可以为此使用更高级别的库,例如 glTF-Transform,请参阅https://stackoverflow.com/a/66978236/1314762 - 不过,我还没有为 Draco 1.5.0 更新这个。

    【讨论】:

      猜你喜欢
      • 2019-11-25
      • 2020-12-18
      • 2015-04-26
      • 1970-01-01
      • 2018-10-01
      • 1970-01-01
      • 2018-11-04
      • 1970-01-01
      • 2019-10-08
      相关资源
      最近更新 更多