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"

Static Meshes from BSPs won't light

Hi guys,

Can anyone help me with a problem I'm having lighting some static meshes made from BSPs?

I don't have access to Maya or 3DS and so I created some simple objects by combining Additive and Subtractive brushes using the 'Create StaticMesh' button.

I'm now finding that whenever I build the lighting on these objects they don't take any light and turn black. They appear fine in the Editor until the lighting is built. But, the end result isn't right and the objects remain black until I move the light again in the Editor. Every time I rebuild the lighting, the return to being unlit.

(For the purpose of showing the simplest possible example of the problem I'm replicating my steps here, but using blocks.)

Preview lighting...

alt text

After lighting build...

alt text

Both the staticmesh and the lighting are set to static. However, I am noticing that the combined block object has 2 materials elements.

alt text

Could that be the problem?

Any help would be much appreciated, as this is driving me mad!

Thanks,

Mike.

Product Version: UE 4.10
Tags:
more ▼

asked Jan 25 '16 at 10:50 PM in Using UE4

avatar image

ellismonster
6 1 3

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

Hi ellismonster,

When converting BSPs to static meshes, if you have multiple materials being used it will create a material element for each material being used. This is not going to be an issue when baking the lighting.

However, when the BSP is converted to static mesh it will setup the Lightmap UV, but it will not assign it automatically. This is left solely to the user to setup and use properly.

If you open the Static Mesh you will see the Panel on the right. Under the Static Mesh Settings you will need to set a Lightmap Resolution value (default I think is 4, which is too low for most objects) to something like 32, 64, or 128. You can try higher values if you need if the shadow quality is not good enough.

The last thing you'll need to do is assign the UV Channel 1 (lightmap UV) to be used for the light bake. In the advanced rollout you'll see Lightmap Coordinate Index. This is set to 0 by default, so it's using the texture UV as the lightmap UV, which will produce overlapping shadow artifacts. Set this to 1 and it'll use UV Channel 1 for the lightmap, which should not have any overlapping UV layouts so that you get a proper light bake.

You can also see this visually in a troubleshooting guide I wrote a while back here: https://wiki.unrealengine.com/LightingTroubleshootingGuide#Invalid_Lightmap_Settings_When_Converting_BSP_to_Static_Mesh

I hope this helps.

Tim

more ▼

answered Jan 27 '16 at 02:01 PM

avatar image

Tim Hobson ♦♦ STAFF
48.8k 888 103 878

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
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