Closed SilasReinagel closed 2 years ago
The intention is to eventually end support for files with a .basis
extension. They're a non-standard container format, created only by the Basis Universal libraries — which can also export standard .ktx2
files now. The internal image compression data is identical, so there's no advantage to the .basis
container. KTX2 supports a wider variety of features, and will be more future-proof in other software. This should also allow us to eventually provide a much smaller WASM transcoder.
So, the warning message is meant to encourage people to produce .ktx2 files instead of .basis files, or at least to be aware that BasisTextureLoader will eventually be removed from a future release.
Interesting. That all makes good sense.
Then I have two thoughts:
When using BasisTextureLoader now, a more detailed warning is shown —
If there's anywhere else such warnings should appear, PRs would be welcome!
I'm not planning to maintain BasisTextureLoader.js further myself, but if someone wants to move it into a repository and update it with future three.js versions when needed, that's great. Beyond that it will remain accessible in GitHub under the tags for previous releases as well.
Version: ThreeJS v142
Reproduction Example: https://github.com/EnigmaDragons/ThreeJS-BasisLoadBug
Relevant ThreeJS Documentation: https://github.com/mrdoob/three.js/wiki/Migration-Guide#136--137 BasisTextureLoader has been deprecated. Please use KTX2Loader instead.
Issue: The deprecation of this feature seems to leave no way for ThreeJS to load straight standard Basis Supercompressed Textures, and the KTX2Loader seems to only work with KTX2 Textures (of which some may be Basis Textures, but it does not seem to open uncontainerized ones).
Error Message from Sample (See Reproduction Example):