Unity-Technologies / MeshSyncDCCPlugins

DCC plugins for MeshSync in Unity. Supported tools: Maya, Maya LT, 3ds Max, Motion Builder, Modo, Blender, Metasequoia
Other
454 stars 55 forks source link

Blender light intensity vs Unity #166

Closed bitinn closed 2 years ago

bitinn commented 2 years ago

Is there a reason why Blender 3.0's light intensity is mapped to 1/1000 of unit in Unity URP?

eg. Sun light with Strength 1.0 (= 1 W/m^2) is somehow mapped to 0.001 in Unity URP when light is synced.

sindharta commented 2 years ago

The reason is just simply to match the default settings in Blender (value: 1000 W) to the default settings in Unity (value: 1.0). The light intensity in Unity also generally doesn't use physically based units (except on HDRP).

bitinn commented 2 years ago

@sindharta thx, but I think there are a few problems with this approach:

I agree that with 3 render pipelines there are no good way to make everyone happy; even with HDRP I see no unit that correspond well to watt/m^2 (irradiance).

But It seems we should at least exclude Sun light from the 1/1000 conversion, so that it shows up fine for BIRP and URP?

sindharta commented 2 years ago

Let us consider it. So according to your suggestion, value of 1 of Sun light in Blender should translate to value of 1 in Unity ?

bitinn commented 2 years ago

So according to your suggestion, value of 1 of Sun light in Blender should translate to value of 1 in Unity ?

Yes, that would be my suggestion, it would match pretty well on BIRP and URP.

sindharta commented 2 years ago

https://github.com/Unity-Technologies/MeshSyncDCCPlugins/pull/211

bitinn commented 2 years ago

Thx! This lgtm, I will wait for the next release to try it out.