x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

Building Lighting for Instanced Static Meshes

UE: 4.5

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.

alt text

Product Version: Not Selected
Tags:
0.jpg (534.9 kB)
more ▼

asked Nov 19 '14 at 12:32 AM in Using UE4

avatar image

Nox_A15
289 18 136 193

avatar image Nox_A15 Nov 19 '14 at 12:49 AM

Ok, I definitely should check out the forum more often:

https://forums.unrealengine.com/showthread.php?51916-Unreal-Engine-4-6-Preview!

"Static Lighting on Instanced Static Meshes (including Foliage)" is first on the list. xD Thank you, waiting for new version then. :)

avatar image Nox_A15 Dec 28 '14 at 11:44 PM

I tested this feature in 4.6.1 and it looks like the problem is still present for me. It works perfectly fine with the foliage tool, but with my BP there's still the same effect as above. I attach new screenshot - tables in the background were placed with the foliage tool (6 clusters of objects) and in the foreground with my BP (each BP creates one Instanced SM Component, but it seems like each is static shadowed with the same colour for every instance). They seem like they don't cast shadow at all, so that's probably the case, but I searched for a way to make them so and I can't find a few nodes related to lightning at all.

I searched for something like "Set Mobility" or "Set Cast Static Shadow" for my Instanced SM Component, but I can't find such nodes. "Set Cast Shadow" exists, but doesn't seem to work in my case. Is there anything I can do or this feature isn't implemented yet?

avatar image Nox_A15 Jan 12 '15 at 08:00 PM

Bumping this, because I really need this feature to work properly. Any info on that?

(comments are locked)
10|2000 characters needed characters left

1 answer: sort voted first

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):

https://answers.unrealengine.com/storage/attachments/25070-screenshot00002.png

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

more ▼

answered Feb 10 '15 at 04:18 PM

avatar image

Nox_A15
289 18 136 193

avatar image HuntaKiller Apr 08 '15 at 08:36 AM

Thanks Nox. +1 :)

avatar image Stéphane Bourez Apr 20 '15 at 04:00 PM

Yep thanks Nox

avatar image Nox_A15 Apr 20 '15 at 09:01 PM

I'm glad this topic helped someone after all. :)

avatar image geverk Aug 15 '15 at 07:47 AM

thanks for share your answer and solution

(comments are locked)
10|2000 characters needed characters left
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question