question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Materials with emissiveIntensity under 1 are exported with an emissive way too bright with GLTFExporter

See original GitHub issue

Starting 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
donmccurdycommented, Jun 16, 2021

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.

2reactions
WestLangleycommented, Jun 16, 2021

I think the exporter should instead scale emissive by emissiveIntensity – 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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found