KhronosGroup / KhronosGroup/glTF-3ds-Max-Plugin

Emission factor of Physical Material or OpenPBR Material set to 0 is not taken into account

Open
#39 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
34
Forks
2
Avg merge
22d 3h
Merged PRs (30d)
1

Description

Hello,

I'm facing an issue. I've created a box and attributed to this box a Masonry Physical Material or OpenPBR Material and set the Emission weight to 0, letting the emission colour to white (this is the default color)

After exporting to GLB and try to display the 3D Model into Babylon Sandbox (and other viewers), the box supposed to display the masonry material is all white. When debugging and setting the emission map to 0, then the masonry material is shown properly,

According to me, when setting the emission weight to 0, I should not get ""emissiveFactor": [0,0,0]" in the GLB.

I of course could set the emission colour to black and then get the right result, but it means the emission weight is not taken into account and it's annoying, because there are other materials where the emission factor is relevant and should be taken into account.

I'm I wrong in my expectations ? Is this a normal behavior or is this a bug/issue ?

Could somebody help me sort this out ?

Regards

Eric

Contributor guide

Open the contributing guide

Research direction

Reproduce the issue by assigning a Masonry Physical Material or OpenPBR Material with emission weight 0 and the default white emission color, then export the box to GLB. Inspect the exported emissiveFactor and compare its rendering in Babylon Sandbox with emission set to 0. Done means the exported model renders the material correctly without requiring the emission color to be changed to black.

Written by the indexing model from the issue text.

Assessment

Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
52/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.