I added an object to the gltf model as a child node and set the object texture.There is a problem with the picture display. After searching in the forum, set inverty to false
const myDynamicTexture = new Texture(src, scene,false, false)
Now some pictures are normal and some are abnormal. I don’t know how to deal with them
Find three JS has these materials
GLTFLoader will automatically configure textures referenced from a .gltf or .glb file correctly, with the assumption that the renderer is set up as shown above. When loading textures externally (e.g., using TextureLoader) and applying them to a glTF model, colorspace and orientation must be given:
`// If texture is used for color information, set colorspace.
texture.encoding = THREE.sRGBEncoding;
// UVs use the convention that (0, 0) corresponds to the upper left corner of a texture.
texture.flipY = false;`
What should I do in babylonjs
In addition, and I also found problems using
scene. useRightHandedSystem=true;
const myDynamicTexture = new Texture(src, scene,false, false)
All pictures are displayed normally, but gltf’s checkcollisions run incorrectly
After I used inverty, only some pictures are displayed normally, and some pictures are not displayed normally, and I can’t find the reason for the abnormal display
If it is not displayed normally, it looks like a flip along one (x or Z) coordinate