While using the THREE.js FBXLoader to import a .fbx file, I noticed that the model is only partially loaded, and the alpha textured parts are not loading at all.
An error message I encountered is:
FBXLoader: PSD textures are not supported, creating empty placeholder texture for pinebranchColor.psd
Oddly, there are no .psd files in the materials folder. But the error seems to refer to the texture name pinebranchColor.psd
in the material alphaMap, as shown in the screenshot below:
https://i.sstatic.net/s6mk2.png
Here is how the FBX model is currently rendering:
https://i.sstatic.net/ckwxc.png
The GLTF version of the same model displays transparent parts incorrectly, as seen in the image below:
https://i.sstatic.net/1GgIo.png
The correct appearance of the model can be seen on sketchfab :
https://i.sstatic.net/lu6NG.jpg
Why is the alpha material being identified as .psd? Is this encoded in the .fbx file itself? My initial issue was regarding how to render the alpha/transparency for the leaves correctly, rather than as solid color. Perhaps adjusting a property in the THREE.js material of the GLTF version could resolve this?
This is my first time importing a model into THREE.js, as I am still learning. Please provide an explanation in simple terms.
EDIT:
Upon inspecting the dev tools, I discovered a material for the leaves and set transparent to true
, which partially solved the issue. However, there are still some rendering problems, so I believe more adjustments are needed in this direction.