You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was going through your code in gltf-obj converter part, and noticed that material reader you're using here is from javagl.obj of old version 0.3.0. And some of the materials aren't treated as they should be (in my case the newer version of obj reader is doing well). I guess that's because of pom.xml of the package, here the obj library version is set to 0.3.0 (but I believe, the newest is 0.4.0). Maybe it is possible to update it to the newest?
The text was updated successfully, but these errors were encountered:
Your're right. The update from 0.3.0 to 0.4.0 was only done (relatively) recently. But the dependency is updated now, and that update will be part of the next release.
I'm a bit curious, though: There was a bit of uncertainty about the "best" or "right" approach for the extended material support on the OBJ library (that's one of many reasons why some of the changes behind the PR javagl/Obj#25 had been simmering on tbe backburner for ~6 years). And I wonder what exactly didn't work as expected for you with version 0.3.0. Have these MTL files been files that actually contained the PBR information that was exported from Blender?
Related: The jgltf-obj library should probably be reviewed so that it can handle this new PBR information more direcly. For now, I only applied the changes that have been necessary for the update itself (basically a few checks for the places where the Mtl class can now return null when no information was given). But if the input is an MTL with PBR information, then this could be converted into a glTF PBR material directly, without too many guesses, assumptions or default values.
This should not be toooo much effort, but I'll have to allocate a bit of time for that. I'll leave this issue open until this is addressed.
I was going through your code in gltf-obj converter part, and noticed that material reader you're using here is from javagl.obj of old version 0.3.0. And some of the materials aren't treated as they should be (in my case the newer version of obj reader is doing well). I guess that's because of pom.xml of the package, here the obj library version is set to 0.3.0 (but I believe, the newest is 0.4.0). Maybe it is possible to update it to the newest?
The text was updated successfully, but these errors were encountered: