How to load compressed .dds images as collada textures?

前端 未结 1 1732
忘掉有多难
忘掉有多难 2020-12-22 07:22

Do you have any idea how could I use compressed .dds images as collada textures?

Which part of the library should be updated to do this?

Any help would be ap

相关标签:
1条回答
  • 2020-12-22 08:16

    DDS

    Three.js can already read in dds files.

    just call THREE.ImageUtils.loadCompressedTexture:

    https://github.com/mrdoob/three.js/blob/master/src/extras/ImageUtils.js#L39

    Collada

    This line needs to be updated to detect wether the the file is a dds file or a normal image and use the corresponding method to read that file.

    https://github.com/mrdoob/three.js/blob/master/examples/js/loaders/ColladaLoader.js#L3116

    0 讨论(0)
提交回复
热议问题