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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Static mesh turning black after light build

Hi, I have problems with a static mesh tree object going black, I've tried many of the suggestions from other people having this problem but none have worked, this is with static directional light, static skylight and a static object. The lightmap is placed in UV channel 1 (as it should be ?) and a normal UV in channel 0.

this is what I have done so far :

  • increasing lightmap resolution.

  • trying both auto-lightmaps and custom ones I made in maya .

  • changing normals in maya .

  • computing normals in ue4 .

  • changing lightmap index to different values.

  • Changed projects and maps .

  • tried exporting from maya as obj and fbx formats.

Some things I noticed:

  • turning up indirect lighting on directional light I could very faintly see the texture on the object but extremely dark.

  • I could see the 'faint texture' better at certain angles

  • if I moved the object I could see the texture very well and it looked good but it goes black upon building the lights.

  • if I zoomed right ontop of the object in the editor the texture slowly lights up (I'm assuming the editor auto-exposure)

All this leads me to believe its a light-map problem? so I tried adjusting the light map UV's by taking original UV's(which were overlapping on purpose (image1)) and making them fit 1,1 uv range with no overlaps(image2) still didn't work .

The material is just a two sided foliage material that I apply in the engine, so I don't believe this is the problem.

I'm probably missing something obvious in the workflow, would it be possible for someone to take a look at the object and try and import it to UE4 ? https://www.dropbox.com/s/qcoe0k3geoabkmw/treemodel.fbx?dl=0

Many Thanks

edit: the images below look fine because they are using dynamic lighting in the preview window. once I build them they go black.

image1 :

alt text

image 2:

alt text

[1]: https://www.dropbox.com/s/qcoe0k3geoabkmw/treemodel.fbx?dl=0

Product Version: UE 4.18
Tags:
refimage2.png (2.0 MB)
refimage3.png (1.8 MB)
more ▼

asked Nov 14 '17 at 11:51 PM in Rendering

avatar image

The Walking AFK
1 1 2 3

avatar image Vaheva Nov 15 '17 at 04:17 AM

Do you have error messages on build? It happens on my side (black mesh) with errors or warnings about material uv or/and when lights are overlapped. And bad mesh can be not this black one.

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

3 answers: sort voted first

Hi!

I'm not sure if you could do this... this lightmap... :S I think I've read it somewhere that 1 or 1> pixel uv islands won't get ANY lightmap information! So with this lightmap you should have a really big resolution to have proper padding between the islands + have enough pixels/island to get light information...

Have you tried a 2 sided foliage material already?

I would try to use (distance field) ambient occlusion to light it up nicely...

Good luck!!

more ▼

answered Nov 15 '17 at 03:49 PM

avatar image

Makigirl
1.2k 3 4 8

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

You either have to make a new Lightmap UV with a 3d modeling tool, or you can set your object to moveable that way it should not use any lightmap information but will be worse for your performance.

more ▼

answered Nov 15 '17 at 04:02 PM

avatar image

myavuz
291 5 4 6

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

Open it in the mesh editor, and change the Light Map Resolution to 512 and the Light Map Coordinate Index to 1. This worked for me: https://learnunrealengine.com/fix-mesh-turning-black-issue-ue4-geometry-brush-converted-static-mesh-turns-black-building-lighting/

more ▼

answered Feb 16 '18 at 05:28 PM

avatar image

PantherHeel93
1 1 1

(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