ThreeJs obj-mtl/fbx loader uses default MeshPhongMaterial, which does not support IBL. To support IBL we had to change materials at the time of loading. Can we do changes in the library itself to use MeshStandardMaterial
or MeshPhysicalMaterial
for obj-mtl/fbx loader ???
Asked
Active
Viewed 200 times
0

Mugen87
- 28,829
- 4
- 27
- 50

Thunder Bird
- 11
- 2
-
I'm afraid your formulation is not correct here. `MeshPhongMaterial` just not supports the output of `PMREMGenerator`. You can still apply environment maps to it which are a form of IBL. In any event, it does probably not make sense to default the material of `OBJLoader` and `FBXLoader` to a PBR material since unlike glTF, the respective 3D standards do no support a PBR workflow. – Mugen87 Aug 28 '20 at 11:23
-
not default but like an option. – Thunder Bird Aug 28 '20 at 11:33
-
to render the obj/fbx, we have to change MeshPhong to PBR material at the run time, other wise it wont render. – Thunder Bird Aug 28 '20 at 11:37
-
Sorry, this is something that has to manage the application. – Mugen87 Aug 28 '20 at 12:04
-
I think OBJLoader is no longer getting much attention because the file format is a bit antiquated when compared to GLTF. GLTFLoader is getting lots of new features and attention, including IBL material support. If you don't want to manually override the materials via code, I recommend you export your assets in GLTF, there are exporters available for lots of different 3D editing tools. – M - Aug 28 '20 at 17:44