Closed xx0618 closed 3 years ago
In the next version, enable3d will use the default three js setting for colors.
If you then still have issues, please use the three.js forum to solve it.
Looking forward to version 0.21
when enable3d forum?
when enable3d forum?
I don't have the time to manage a forum. And most questions a related to three.js anyways.
Looking forward to version 0.21
v21 is available. Check if it helps, otherwise, consider asking in the three.js forum.
Version 21 is great. The dark 3D model has been improved, but it is not ideal.
I found it on the Internet that the gltf 2.0 model is dimmed, but I don't know how to solve it. What can I do?
Surely in the Three js forum you will find an answer to this.
Found a way. Need to be set in the renderer:
this.third.renderer.gammaOutput = true
this.third.renderer.gammaFactor = 2.2
The above method makes the color not dark, but the color is somewhat white. Adding the following sentence can make the color return to normal.
const material = new THREE.MeshStandardMaterial({ color: 0xff0000 })
material.color.convertSRGBToLinear()
const texture = new THREE.TextureLoader()
texture.enccoding = THREE.sRGBEncoding
It is found that it is normal when displaying light colors, but when displaying black or dark colors, the texture will be indistinguishable. I don’t know which setting is wrong? How to deal with it?
This is a black 3D file
This is a light-colored coat with dark buttons, the buttons can no longer see the texture
Original texture of buttons