Three.js: GLTFLoader ImageBitmapLoader๊ฐ€ ์ฒ˜๋ฆฌ ํ•  ์ˆ˜์—†๋Š” ์œ ํ˜•์˜ ๋กœ๋”๋ฅผ ์žฌ์ •์˜ํ•ฉ๋‹ˆ๋‹ค.

์— ๋งŒ๋“  2020๋…„ 06์›” 25์ผ  ยท  3์ฝ”๋ฉ˜ํŠธ  ยท  ์ถœ์ฒ˜: mrdoob/three.js

๋ฌธ์ œ์— ๋Œ€ํ•œ ์„ค๋ช…

์ตœ๊ทผ 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)
Three.js ๋ฒ„์ „
  • [x] ๊ฐœ๋ฐœ์ž
  • [x] r118
  • [] r117
๋ธŒ๋ผ์šฐ์ €
  • [] ๋ชจ๋‘
  • [x] ํฌ๋กฌ
  • [] Firefox
  • [] ๊ฐ€์žฅ์ž๋ฆฌ
OS
  • [x] ๋ชจ๋‘
  • [] Windows
  • [ ] ๋งฅ OS
  • [] Linux
  • [] Android
  • [] iOS
ํ•˜๋“œ์›จ์–ด ์š”๊ตฌ ์‚ฌํ•ญ (๊ทธ๋ž˜ํ”ฝ ์นด๋“œ, VR ์žฅ์น˜ ๋“ฑ)
Bug Loaders

๊ฐ€์žฅ ์œ ์šฉํ•œ ๋Œ“๊ธ€

@ Mugen87 ์˜ˆ, ์ €์—๊ฒŒ ๋ฌธ์ œ๊ฐ€ ํ•ด๊ฒฐ๋ฉ๋‹ˆ๋‹ค. ๋ฒ„๊ทธ๋ฅผ ๋„ˆ๋ฌด ๋นจ๋ฆฌ ์ฒ˜๋ฆฌ ํ•ด์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค!

๋ชจ๋“  3 ๋Œ“๊ธ€

glTF-dds ํ™•์žฅ์„ ์‚ฌ์šฉํ•  ๋•Œ ๊ณต์‹ ์˜ˆ์ œ ์ค‘ ํ•˜๋‚˜์—์„œ ๋™์ผํ•œ ์˜ค๋ฅ˜๊ฐ€ ๋ฐœ์ƒํ•ฉ๋‹ˆ๋‹ค.

https://threejs.org/examples/webgl_loader_gltf_extensions

@JohannesDeml ์—ฐ๊ฒฐ๋œ PR์ด ๋ฌธ์ œ๋ฅผ ํ•ด๊ฒฐํ•˜๋Š”์ง€ ํ™•์ธํ•ด ์ฃผ์‹œ๊ฒ ์Šต๋‹ˆ๊นŒ? ์ ์–ด๋„ ๋‚˜๋Š” ๊ทธ๊ฒƒ์œผ๋กœ DDS ์˜ˆ์ œ๋ฅผ ๊ณ ์น  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค ^^.

@ Mugen87 ์˜ˆ, ์ €์—๊ฒŒ ๋ฌธ์ œ๊ฐ€ ํ•ด๊ฒฐ๋ฉ๋‹ˆ๋‹ค. ๋ฒ„๊ทธ๋ฅผ ๋„ˆ๋ฌด ๋นจ๋ฆฌ ์ฒ˜๋ฆฌ ํ•ด์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค!

์ด ํŽ˜์ด์ง€๊ฐ€ ๋„์›€์ด ๋˜์—ˆ๋‚˜์š”?
0 / 5 - 0 ๋“ฑ๊ธ‰