pixiv / three-vrm

Use VRM on Three.js
MIT License
1.3k stars 110 forks source link

Uncaught (in promise) Error: Unsupported color space conversion, "1" to "srgb-linear" #1474

Closed QSYSMoric closed 2 months ago

QSYSMoric commented 3 months ago

I encounter this error when using Vue to build a project and import a VRM model: three.module.js:1663 Uncaught (in promise) Error: Unsupported color space conversion, "1" to "srgb-linear". at Object.convert (three.module.js:1663:10) at Object.toWorkingColorSpace (three.module.js:1679:15) at Color.setRGB (three.module.js:9005:19) at GLTFParser.loadMaterial (GLTFLoader.js:3483:42) at GLTFLoader.js:2761:38 at GLTFParser._invokeOne (GLTFLoader.js:2678:19) at GLTFParser.getDependency (GLTFLoader.js:2759:24) at GLTFParser.loadMesh (GLTFLoader.js:3620:12) at _MToonMaterialLoaderPlugin2. (MToonMaterialLoaderPlugin.ts:147:38) at Generator.next () This will cause me to be unable to load the model I tried to replicate this question: three_vrm

0b5vr commented 2 months ago

This should be fixed in three@0.156.1, This PR.

Please try bumping your Three.js.