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!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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