Setting Light Map Resolution for Unwrap

Datasmith/Dataprep introduced this extremely useful function to calculate optimal lightmap size size (called “Setup Static Lighting”). It then sets this value to:

  • the ‘General Default’ of the imported Static Mesh
  • the ‘Overriden Light Map resolution’ of the Static Mesh Component placed in the level

But it fails to set it as the value for Unwrapping (ie. Min Lightmap Resolution in the Build Settings of the Static Mesh):frowning:.

I’m trying to create a simple BP to fix this… But in Blueprints it seems that the ‘General Default’ value is not exposed so I can’t access the calculated value generated by the (very smart) “Setup Static Lighting” function.

The reason that I want to match the resolutions is to have optimal lightmaps: a value that’s lower than the one set on the component just wastes valuable texture space. A value that’s higher creates overlap/leaks in the baked results.

Any ideas on how to fix this without changing engine code or making plugins?

1 Like