0

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 appreciated!

Fract
  • 323
  • 1
  • 6
  • 22

1 Answers1

2

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

Gero3
  • 2,817
  • 1
  • 22
  • 21