Hi,
I have used Maya to export a .babylon model that has an aiStandardSurface material applied.
This exports to the Babylon.js PBRMaterial as desired.
However, I have assigned an ORM material to the Metalness and Specular Roughness inputs (see screenshot1) but the resulting .babylon file has the following channels set that I found unexpected:
The ORM texture is applied to reflectivity and Ambient, whereas I was expecting it to be applied to Metallic Roughness and Ambient
The “Ambient In Greyscale” flag is false, so all channels of the ORM map are used for ambient occlusion rather than just the expected red channel
I assume that I am incorrectly setting up the material in Maya and was hoping someone could point me in the correct direction so that I can correctly apply the Metallic Roughness map and set the metallic and roughness properties within the aiStandardSurface node.
Thanks.
@Charge, would you be able to send me a link to your glTF, even in a direct message, so I can take a look at what is happening? Your material seems to be set up correctly from your screen shot, so we would need to take a look at the json to see what was written. Also, if you can share what version of the exporter you are using, that would be helpful to debug. Thanks!
Please note that I export to a .babylon file and not a glTF
Here is a zip file with an example maya scene consisting of a cube and 2 textures used in the same way as my first screenshot. Also included is the resulting .babylon file with materials set as I described in my first post.
This looks like an issue in the exporter. @Guillaume_Pelletier, I can confirm that version 20210811.2 is translating an aiStandardSurface material to a PBRMaterial but is not mapping the ORM to the MetallicRoughness channel but the same file exported from 20210507.3 translates to a PBRRoughnessMetallicMaterial with the ORM correctly mapped to the MetallicRoughness channel.
@Charge, the new exporter is mapping to the preferred and more powerful PBRMaterial, which is what you will want to use, but we will have to look into the translation mapping for the Babylon format.
Hi @PatrickRyan & @Guillaume_Pelletier - was just wondering if there is a bug raised for this issue that I could follow, or if I should raise one myself? Thanks
Hi @Guillaume_Pelletier,
I have raised the bug as requested. Sorry it took so long, but my family and I have just recovered from COVID, so I had other priorities.