-
New to three.js. I've download a MMD model from a Gensin campain: gy.zip And try to loaded: function MmdModel({ url }) {
const mmd = useLoader(MMDLoader, url)
return <group>
<primitive
object={mmd}
position={[0, -0, 0]}
/>
<directionalLight intensity={0.02} />
<ambientLight intensity={0.5} />
</group>
} which renders with colors not as expected: Colors expected should be like this: |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
This should be resolved now, MMDLoader in three.js didn't support sRGB color space until recently.. The fix for this was released with three v152: mrdoob/three.js@66c460e If you're still on an old version for some reason and want to use MMDLoader with r3f, use the |
Beta Was this translation helpful? Give feedback.
-
could you solve it? |
Beta Was this translation helpful? Give feedback.
If you use
r3f
and importMMDLoader
fromthree-stdlib
, you can not resolve the color promblem becausethree-stdlib
depends onthree.js
below v152. But, it would work as you expected by installingthree.js
above v152 and importing fromthree/examples/jsm/loaders/MMDLoader.js
.▼ before
▼ after