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.

Exporter, does not save Emissive Factor/Emission Strength Value for materials.

See original GitHub issue

Currently the Emissive Factor/Emission Strength is not exported to the .glb file.


Steps to Reproduce:

Following this example

I set up a material using the Principal BSDF and Emission nodes. I then make some adjustments to the Principal and Emission settings to get something looking like this scene.

The nodes on each material look like this.

After exporting an re-importing I get this. imported nodes

I wasn’t sure if it was the import process or the export process so I checked the .glb embedded file. It appears the emissiveFactor portion is always being saved as 1, 1, 1 (see below)

"emissiveFactor" : [
                1,
                1,
                1
            ]

Knowing that the Emissive Factor is supposed to be an RGB value I also tried attaching an RGB node and attaching it to the strength of the Emission node, however it was still not saved.


Additional Notes:

I also went in and edited the “emissiveFactor” in the embedded .glb file. Like so…

"emissiveFactor" : [
                0.33,
                0.33,
                0.33
            ]

When importing this edited file, I get a node tree including a multiply node. Where the Color2 of the multiply node matched my edited .glb file.

The result looks okay, but is too bright since it still takes into account the emission node’s strength. (Which is always set to 1.0)

Upon exporting this new scene the emissiveFactor is still not saved.


Using Blender 2.8 Beta Windows 64 bit, March 18th, 19:10:14 build.

Edit: updated example link

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:10 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
emackeycommented, Sep 16, 2020

@Taroslord, re: Principled BSDF. You’re looking at the manual for 2.80. Check the manual for 2.90 instead. It doesn’t show a picture, but the first sentence says it should work with the Principled BSDF node. It should be supported since 2.82.

0reactions
Taroslordcommented, Aug 3, 2020

Thank you for your answers. The only way to export emission textures from Blender to glb is to use the official way, that is described in this image and is found in the manual: https://docs.blender.org/manual/en/2.80/_images/addons_io-gltf2_material-emissive.png

It works, but the problem of this solution: It doesn’t support the emission slot inside the principled shader node in Blender. This would be a clean solution in my point of view.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How Importing and Exporting Impacts the Economy
A country's importing and exporting activity can influence its GDP, its exchange rate, and its level of inflation and interest rates.
Read more >
Emission — Blender Manual
Strength of the emitted light. For point and area lights, the unit is Watts. For materials, a value of 1.0 will ensure that...
Read more >
Managing Material Property Data | ANSYS e-Learning
CAE Associates shows how to use the ANSYS Engineering Data Manager to efficiently enter, store, view, retrieve, and organize material ...
Read more >
Increasing Material Strength w/ Cold Work/Plastic Deformation
This lecture was recorded on December 9, 2019. All retainable rights are claimed by Michael Swanbom. Please subscribe to my YouTube channel ...
Read more >
Overview of materials for Stainless Steel - MatWeb
Tensile Strength, Ultimate, 32.3 - 3100 MPa, 4680 - 450000 psi, Average value: 940 MPa Grade Count:1709.
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