์ต๊ทผ GLFTLoader (https://github.com/mrdoob/three.js/pull/19518)์ BitmapLoader ์ฌ์ฉ์ด ์ถ๊ฐ ๋์๊ธฐ ๋๋ฌธ์ ํน์ ํ์ผ ํ์์ ๋ํ ์ฒ๋ฆฌ๊ธฐ๋ฅผ ์ฌ์ฉํ๋ฉด BitmapLoader์์ ๋ฎ์ด ์ฐ๊ธฐ๋ฉ๋๋ค.
r117์์ gltf ํ์ผ์ ๋ํ ๊ธฐ๋ณธ ํ ์ค์ฒ๋ฅผ ์ง์ํ๋ ค๋ฉด ๋ค์์ ์ถ๊ฐํ๊ธฐ ๋งํ๋ฉด๋ฉ๋๋ค.
var basisLoader = new BasisTextureLoader();
basisLoader.setTranscoderPath( 'js/libs/basis/' );
basisLoader.detectSupport( renderer );
THREE.DefaultLoadingManager.addHandler( /\.basis$/, basisLoader );
https://github.com/mrdoob/three.js/blob/7df06a0e4054247f87a7b5aa555ca97cd6b15662/examples/jsm/loaders/GLTFLoader.js#L2077-L2093์์ ํด๊ฒฐ์ ๋ฎ์ด ์ฐ๋ฏ๋ก ๋ ์ด์ ๋ถ๊ฐ๋ฅ
๋ค์๊ณผ ๊ฐ์ ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค.
THREE.WebGLState: TypeError: Failed to execute 'texImage2D' on 'WebGL2RenderingContext': No function was found that matched the signature provided.
at Object.texImage2D (three.module.js:21828)
at uploadTexture (three.module.js:22749)
at setTexture2D (three.module.js:22274)
at WebGLTextures.safeSetTexture2D (three.module.js:23169)
at SingleUniform.setValueT1 [as setValue] (three.module.js:17755)
at Function.WebGLUniforms.upload (three.module.js:18260)
at setProgram (three.module.js:26406)
at WebGLRenderer.renderBufferDirect (three.module.js:25441)
at renderObject (three.module.js:25994)
at renderObjects (three.module.js:25966)
glTF-dds
ํ์ฅ์ ์ฌ์ฉํ ๋ ๊ณต์ ์์ ์ค ํ๋์์ ๋์ผํ ์ค๋ฅ๊ฐ ๋ฐ์ํฉ๋๋ค.
@JohannesDeml ์ฐ๊ฒฐ๋ PR์ด ๋ฌธ์ ๋ฅผ ํด๊ฒฐํ๋์ง ํ์ธํด ์ฃผ์๊ฒ ์ต๋๊น? ์ ์ด๋ ๋๋ ๊ทธ๊ฒ์ผ๋ก DDS ์์ ๋ฅผ ๊ณ ์น ์ ์์ต๋๋ค ^^.
@ Mugen87 ์, ์ ์๊ฒ ๋ฌธ์ ๊ฐ ํด๊ฒฐ๋ฉ๋๋ค. ๋ฒ๊ทธ๋ฅผ ๋๋ฌด ๋นจ๋ฆฌ ์ฒ๋ฆฌ ํด์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค!
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
@ Mugen87 ์, ์ ์๊ฒ ๋ฌธ์ ๊ฐ ํด๊ฒฐ๋ฉ๋๋ค. ๋ฒ๊ทธ๋ฅผ ๋๋ฌด ๋นจ๋ฆฌ ์ฒ๋ฆฌ ํด์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค!