Page MenuHome

Collada DAE Emission Strength
ClosedPublic

Authored by Kenzie (kenziemac130) on Sep 19 2020, 12:43 PM.

Details

Summary

This is the final version of emission strength for Collada DAE (an early version made it into D4971 by accident). The restrictions for materials in this format is extremely limiting, as such exporting HDR emission strength appears to be unsupported. :(

This change adds a clamp to emission strength to avoid any issues.
Unnecessary emission strength node change has also been removed.
Missing comment was also added back to remain consistent with the rest of the file.

Diff Detail

Repository
rB Blender

Event Timeline

Kenzie (kenziemac130) requested review of this revision.Sep 19 2020, 12:43 PM
Kenzie (kenziemac130) created this revision.
Kenzie (kenziemac130) edited the summary of this revision. (Show Details)
Brecht Van Lommel (brecht) requested changes to this revision.Sep 21 2020, 1:54 PM
Brecht Van Lommel (brecht) added inline comments.
source/blender/io/collada/Materials.cpp
326–330

I want to keep this code, so that the exporter does not make implicit assumptions about defaults which may change.

source/blender/io/collada/collada_utils.cpp
1336–1351

I think it should clamp the combined emission strength and color, since there is nothing in Blender preventing the color to have values > 1.

This revision now requires changes to proceed.Sep 21 2020, 1:54 PM
Kenzie (kenziemac130) updated this revision to Diff 29131.EditedSep 21 2020, 4:10 PM

Better accounted for HDR colors based on recommendation. Fixed an implicit validity check causing premature rejection by removing unnecessary branch.

Kenzie (kenziemac130) marked an inline comment as done.Sep 21 2020, 4:10 PM
This revision is now accepted and ready to land.Sep 22 2020, 3:44 PM