When we import FBXes, and Playcanvas creates materials, the new materials don’t work properly. Diffuse has no effect on the materials appearence in the scene (it just looks black), and the glossiness seems to be stuck at 1 no matter what the glossiness value is set to. Interestingly, we see the diffuse color in the material preview, but not in the scene.
There are no apparent differences in the material properties compared to a material created manually in Playcanvas. One clue is when we run our in-house extension on these materials, the console throws an exception, and the extension breaks:
We’ve tried importing FBXes from both 3ds Max and Blender, and both create broken materials. This feels like a recent bug, since we’ve not encountered it before.
Importing glTF in editor is in the works right now and it’s coming really soon, this will help tons with bringing model/materials in PlayCanvas from modelling apps.
I’d like to share the source FBXes as well, but the forum doesn’t allow the FBX file type. But they are the most basic of FBXes - a single sphere with a default material.
Okay, the diffuse color shows when lit by realtime lights. It does not however get lit by the skybox. Reflections from the skybox are broken too (the gloss value has no effect).
Try to change the glossiness value. It has no effect on the skybox reflection appearence. It behaves as if the skybox isn’t prefiltered. With a glossiness value of 50, you should get blurry reflections.
Confirmed that seems like a bug, creating a material from scratch seems to work but not the FBX imported material. Materials seem identical, apart from diffuse color (unless I missed something).
Curious about this, calling @Gustav_Sterbrant@Elliott on this from the PlayCanvas team (they may be slow to respond due to holidays):
The issue is that both materials appear to have the same settings (I think so, unless I missed something) but the end result isn’t the same: the reflection on the purple sphere isn’t blurred by glossiness.
The purple material was created by the imported FBX.
Putting my hand up here. I broke some bits on the backend while making preparations for importing gltf. Will get this fixed asap. Sorry for the trouble!