Building Lighting for Instanced Static Meshes
OS: Win 8.1 Pro
I'm working recently on a BP for quick icicle placement. For better performance I used Instanced Static Mesh Component. Everything works fine and as intended, but I have a problem with building a static light for the results. In the image below you can see a few BPs on the ceiling. Each one has one component and 40 icicles in it as instances. Unfortunately it looks like every component has the same lighting built into it, which creates "islands" of different colours.
I was following tips from the bottom of this documentation page: https://docs.unrealengine.com/latest/INT/Engine/Foliage/index.html#staticmeshsettings
It is stated there that "Each individual mesh instance has its own shadow and/or light map generated by Lightmass, and these are tiled together for each precomputed batch". That makes me believe I'm doing something wrong or it's a bug.
There is only one icicle mesh used in the image. I deleted LoD for now, to make sure it is not the cause. Material is a simple Subsurface and has "Used with Static Lighting" and "Used with Instanced Static Mesh" turned on. Model has "Light Map Resolution" set to 64 (changing this value even to 1024 had no effect). The huge icicle in the middle of the image is a static mesh put there without BP. Just for reference.
asked Nov 19 '14 at 12:32 AM in Using UE4
For the sake of everyone with the same problem - I finally learned what I was doing wrong. As I stated above I was searching for a node to change mobility of a component created by Add Component node. What I didn't know is that a component node has it's every option available in Details tab. Just click on it and there's everything there. Now it sounds obvious, but I'm using these nodes for a long time already and noticed it just recently.
By default my Instanced SM Components were set to Movable. The result is visible here (the tables in the bottom part of the image, because the ones in the top were placed with the Foliage Tool):
After changing mobility to Static both groups are identical. Original problem is solved - static lighting can be build for instanced meshes placed with BP in UE4.6. My bad, sorry. :) Just too bad no one put me right earlier. xD
answered Feb 10 '15 at 04:18 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here