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"

Light seams with dynamic lighting

Here's the problem area: https://PhluxDev.tinytake.com/sf/NDAwMTAyXzIyMjMyMDU

I've tried disabling lightmass completely but it makes no difference. All of the lighting in the scene is dynamic. I've tried changing the lightmap resolution and just about every solution that I could find to no avail. The mesh is a BSP converted into a static mesh in the editor. It's a fairly large mesh and this is the only problem area. Anyone have any insights into why this is happening? Super frustrating :(

Product Version: UE 4.8
Tags:
more ▼

asked Dec 01 '15 at 04:28 AM in Using UE4

avatar image

Phlux
44 16 19 25

avatar image Logan Bailey ♦♦ STAFF Dec 01 '15 at 08:17 PM

Hello Phlux,

If you double click on the static mesh in the content browser this will bring up the details of your static mesh. On the right side there is a tab labeled light map resolution. By default, BSP's are set to 4 and that is derived from the thickness of the BSP.

alt text

Try adjusting this resolution to 256 or 512.

Logan

avatar image Phlux Dec 01 '15 at 08:27 PM

Thanks for the reply. I tried both of those values and even went as high as 1024 but there was no change in the mesh even after building geometry.

avatar image Logan Bailey ♦♦ STAFF Dec 01 '15 at 08:43 PM

If you put a cube into the scene, or a static mesh that is already a static mesh, do you still see this? Generally by increasing the light map resolution this fixes light leaking and artifacts like in the image you linked. If it still occurs I think it could be an issue with the lights themselves. If not we can narrow it down to BSP > Static Mesh workflow.

Logan

avatar image Phlux Dec 01 '15 at 08:55 PM

Cubes or other static meshes that I've created aren't plagued with this issue.

avatar image Logan Bailey ♦♦ STAFF Dec 01 '15 at 09:56 PM

I tried to reproduce this issue with BSP's that have been converted to static mesh's and adjusting the light map settings. I have been unable to see the artifacts and light leaking that you see. Could you provide a test project where this is occurring.

You can do this by providing your .uproject file and your "Content" and "Config" folders from your projects root file.

Thanks,

Logan

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

1 answer: sort voted first

Ok, so I have narrowed it down to a list of things and I have been able to fix most of them.

  1. This is a Static Mesh created from a BSP. BSP's are notorious for issues with lighting due to the way they are calculated. Their light mass is calculated off of a density. By default this density is set to 4. When you convert the BSP over to a static mesh, by default, the light map uses it's density as it's value. So for this I adjusted the minimum light level to 1024 and the Light Map Resolution to 1024. This solves many of the base artifacts you see on the floor.

  2. The UV's and light maps themselves. By default your UV channel is set to 0. If you open your Static Mesh's details window you will see a toolbar at the top. On that toolbar is labeled a tab called UV. This shows the UV's that you have assigned to your mesh. There are no UV's when you convert the BSP over and therefore it creates some interesting UV sets. You can change this over to UV Channel 1 by clicking the Tab at the top and choosing UV Channel 1 from the list of options. This acts much like the automatic unwrap in Maya and does it's best to calculate UV's but it is not perfect. In short you will need to export this and do much of work on your UV's and make sure there are no seams etc....

  3. I added a lightmass importance volume as well as a directional light and a skylight in order to add the ambient light. I set these both to movable and turned off cast shadows on the skylight. This way I have added ambient light that will fill the gaps and corners of the building and then use the point lights as direct light with some shadows. This allows for a greater degree of realism without adding too much information to the scene or taking up framerate. I set the lighting to epic and then built. I still see some seams and edges which are due to the automatic mapping but with proper UV mapping this should be eliminated.

This is a link to our documentation on uwrapping for Lightmaps and this should help clarify recommended practices. I am also sending you a link to a lighting troubleshooting guide in case you get lost there.

https://docs.unrealengine.com/latest/INT/Engine/Content/Types/StaticMeshes/LightmapUnwrapping/index.html

https://wiki.unrealengine.com/LightingTroubleshootingGuide

In the future you may look into creating a mesh pre UE4 to bring in. This will eliminate much of the troubleshooting involved with creating your mesh's inside of UE4 and then figuring out the gotcha's that pipeline involves.

Logan

more ▼

answered Dec 02 '15 at 07:00 PM

avatar image Logan Bailey ♦♦ STAFF Dec 02 '15 at 07:01 PM

This is what I was able to achieve. What it narrows down to is the seams you see which will can be fixed in an external modeling program.

alt text

badseams.jpg (92.0 kB)
avatar image Phlux Dec 02 '15 at 09:44 PM

Thanks for taking the time to narrow this down. Since it was a fairly basic design, I figured I could get away with using bsp. No worries though. It's a quick fix.

Thanks again!

avatar image Stefan Lundmark Apr 11 '16 at 10:11 AM

I'm really not sure why everyone is talking about lightmass when this is a question about dynamic lightning.

(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