Materials with emissiveIntensity under 1 are exported with an emissive way too bright with GLTFExporter
See original GitHub issueStarting with r129 and the modification for #21849 the emissiveFactor exported with GLTFExporter ignores emissiveIntensity
I’m not sure to undestand exactly why the emissiveIntensity
is now ignored completely at GLTF export, but it broke something for us. Materials with an emissiveIntensity
that is between 0 and 1 are now exported like their emissiveIntensity
would be 1 on three <= r128, so they’re way too bright.
Shouldn’t the exporter rather multiply by the emissiveIntensity
then clamp the result or something ?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:8 (3 by maintainers)
Top Results From Across the Web
Getting just white light instead of actual colors by exporting ...
There are three different issues interfering with your ability to export this particular model. Let's take them one at a time.
Read more >Using the Emissive Material Input in Unreal Engine
The video below shows how emissive Materials cast illumination into in a scene with Lumen enabled. One thing to note is how the...
Read more >Export Maya scene as glTF - Babylon.js Documentation
This implies that light-relative attributes or textures are not exported: ambient, specular, emissive, bump mapping and reflection texture.
Read more >MeshStandardMaterial#emissiveIntensity – three.js docs
Intensity of the emissive light. Modulates the emissive color. Default is 1. # .envMap : Texture. The environment map. To ensure a physically...
Read more >Understanding how Materials work with glTF models - YouTube
Jim & Dom explain how materials and textures work with the glTF file ... these materials in Blender, but the same principles apply...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’d be fine with scaling and then clamping, yes. FWIW there is a proposal upcoming (still a draft though) to allow an “emissive strength” parameter in glTF as well: https://github.com/KhronosGroup/glTF/pull/1994.
I think the exporter should instead scale
emissive
byemissiveIntensity
– but limit the scaling, so no color component exceeds one.Doing so will prevent hue shifts. It will also prevent issues like this one from being raised.
Alert with an appropriate warning if the intensity was limited during export.