Hello!
I’ve no idea where to start with this, but I think a short introduction is needed. I’ve been working on a project with some friends for almost half a year now and recently I got the task to learn more about UDK and lighting. Being a complete beginner I did my homework, read up and got to know how it work. Now, three weeks later, I’ve stumbled upon a problem that I just can’t seem to fix.
The lighting of our indoor environments have started to generate giant black patterns in the shadows of the level (see fig. 1). I’ve tried a variety of things; playing around with the lightmass- and post process settings, complete lightmap overhauls, changes in texture sizes (see fig. 2) and a complete reset of our lighting.
However, areas with more light are working just fine (see fig. 3). They might not be flawless, but they do the job. But as demonstrated above, as the light starts to bounce away from the source into corridors and unlit rooms, they start to generate these pixelated squares and squiggly lines. What confuses me the most is the fact that both static meshes and BSPs generate the same kind of patterns. So I’m not sure if this is a lightmap problem or not.
Question 1: Have you stumbled upon this problem? Where you able to solve it? If so, care to share? I would appreciate any help regarding this!
I’ve looked over a lot of settings, to the degree where stuff isn’t making sense anymore. But I’ll try to make a short list of things I’ve done thus far.
Lightmap Density Mode
Current settings: Ideal Density: 0.2/Maximum Density: 1.0/Color Scale: 1
I’ve tried to optimize the scale of our lightmaps to the best of my ability. I strive to not go above 256 (even if some larger meshes need 512, but they are rare) and I think the majority of objects in our level clocks in at 64. And yes, I try to keep the squares at roughly the same size.
The BSP scale is currently set to 8 in most cases, but 4 could work as well.
I’ve cleaned up just about everything in this level when it comes to light maps. The modular walls might have some flaws remaining, but I doubt their light maps are the main problem. We had a hard time cleaning up seems and etc. but they should be fixed now.
Texel Density Mode
I hardly work in this mode, but as for demonstration, it might give us a clue to what’s wrong.
Similar demonstration to the first set of screenshots, but I guess it’s clearer here.
Lit Mode
I’m just going to dump some pictures of the map here. Some where the light works, mainly in area where it’s fully lit. Others where the light is broken, some worse than others.
Clean
Broken
There are of course a lot more to look into than the modes, such as the post process effects and lightmass settings. I know far less about these settings, but I’ve tried to fiddle around with them. Much without any result, but I’ll give you guys the rundown of what we’ve changed in the World Info settings (within the spoiler boxes).
Spoiler
Spoiler
* Ambient Occlusion, I’ve tried to render the scene with and without it, but without results. If requested, I'll try again.
* We do not have a Sky Light or Dominant Point Light in this level.
* In the cave, where almost no shadows are broken, the lights are set to 0.0 – 0.3 indirect light scale
* In the machine room area and corridors, the lights are set to 0.1 – 0.6 indirect light scale
Final notes
This is where I’m stuck and I see no way out of it. I’ve also tried to fiddle with the Scene Shadows, but it basically kills off more light than I want it too. I guess I could fiddle with the Mid- and High tones as well and find a “perfect spot”, but does this actually fix the problem?
The “Num Indirect Lighting Bounce” might solve the problem. By killing all the bounces, I could build the entire ambient light myself, but this is a highly inefficient and doesn’t actually solve the problem.
Some of the other lightmass settings does not make any sense to me. Such as the “Static Lighting Level Scale”, Diffuse and Emissive Boost and the Visualize options. I might be missing something here that would fix this problem.
TL;DR
Odd problem with shadows. If you take a look at Figure 1 you’ll notice “black patterns” in the shadows of our level. Figure 2 shows you a higher lightmap resolution, with a similar problem. This problem applies to both Static Meshes and BSPs.
Got any ideas?
I’ve no idea where to start with this, but I think a short introduction is needed. I’ve been working on a project with some friends for almost half a year now and recently I got the task to learn more about UDK and lighting. Being a complete beginner I did my homework, read up and got to know how it work. Now, three weeks later, I’ve stumbled upon a problem that I just can’t seem to fix.
The lighting of our indoor environments have started to generate giant black patterns in the shadows of the level (see fig. 1). I’ve tried a variety of things; playing around with the lightmass- and post process settings, complete lightmap overhauls, changes in texture sizes (see fig. 2) and a complete reset of our lighting.
[shot]http://www.hiveworkshop.com/forums/members/141575-albums7850-picture92904.png[/shot][shot]http://www.hiveworkshop.com/forums/members/141575-albums7850-picture92905.png[/shot]
(Figure 1, Left, standard post process settings, some screens won’t pick up the flaws. Right, scene post process mid tones cranked down to 0.2, for demonstration if the right pictures is black)
[shot]http://www.hiveworkshop.com/forums/members/141575-albums7850-picture92906.png[/shot]
(Figure 2, Same scene, lightmap texture resolution set to 1024)
(Figure 1, Left, standard post process settings, some screens won’t pick up the flaws. Right, scene post process mid tones cranked down to 0.2, for demonstration if the right pictures is black)
[shot]http://www.hiveworkshop.com/forums/members/141575-albums7850-picture92906.png[/shot]
(Figure 2, Same scene, lightmap texture resolution set to 1024)
However, areas with more light are working just fine (see fig. 3). They might not be flawless, but they do the job. But as demonstrated above, as the light starts to bounce away from the source into corridors and unlit rooms, they start to generate these pixelated squares and squiggly lines. What confuses me the most is the fact that both static meshes and BSPs generate the same kind of patterns. So I’m not sure if this is a lightmap problem or not.
[shot]http://www.hiveworkshop.com/forums/members/141575-albums7850-picture92913.png[/shot][shot]http://www.hiveworkshop.com/forums/members/141575-albums7850-picture92912.png[/shot]
(Figure 3, Lit room; detail light to the left, lit to the right)
(Figure 3, Lit room; detail light to the left, lit to the right)
Question 1: Have you stumbled upon this problem? Where you able to solve it? If so, care to share? I would appreciate any help regarding this!
I’ve looked over a lot of settings, to the degree where stuff isn’t making sense anymore. But I’ll try to make a short list of things I’ve done thus far.
Lightmap Density Mode
Current settings: Ideal Density: 0.2/Maximum Density: 1.0/Color Scale: 1
I’ve tried to optimize the scale of our lightmaps to the best of my ability. I strive to not go above 256 (even if some larger meshes need 512, but they are rare) and I think the majority of objects in our level clocks in at 64. And yes, I try to keep the squares at roughly the same size.
The BSP scale is currently set to 8 in most cases, but 4 could work as well.
[shot]http://www.hiveworkshop.com/forums/members/141575-albums7850-picture92910.png[/shot]
(Figure 4, density demonstration of a smaller room)
[shot]http://www.hiveworkshop.com/forums/members/141575-albums7850-picture92916.png[/shot]
(Figure 5, whole level density. White parts are not visible to the player)
(Figure 4, density demonstration of a smaller room)
[shot]http://www.hiveworkshop.com/forums/members/141575-albums7850-picture92916.png[/shot]
(Figure 5, whole level density. White parts are not visible to the player)
I’ve cleaned up just about everything in this level when it comes to light maps. The modular walls might have some flaws remaining, but I doubt their light maps are the main problem. We had a hard time cleaning up seems and etc. but they should be fixed now.
Texel Density Mode
I hardly work in this mode, but as for demonstration, it might give us a clue to what’s wrong.
[shot]http://www.hiveworkshop.com/forums/members/141575-albums7850-picture92909.png[/shot]
(Figure 6, functional texel density in a small, lit room)
[shot]http://www.hiveworkshop.com/forums/members/141575-albums7850-picture92907.png[/shot][shot]http://www.hiveworkshop.com/forums/members/141575-albums7850-picture92908.png[/shot]
(Figure 7, broken texel density; different mid tones settings for demonstration)
(Figure 6, functional texel density in a small, lit room)
[shot]http://www.hiveworkshop.com/forums/members/141575-albums7850-picture92907.png[/shot][shot]http://www.hiveworkshop.com/forums/members/141575-albums7850-picture92908.png[/shot]
(Figure 7, broken texel density; different mid tones settings for demonstration)
Similar demonstration to the first set of screenshots, but I guess it’s clearer here.
Lit Mode
I’m just going to dump some pictures of the map here. Some where the light works, mainly in area where it’s fully lit. Others where the light is broken, some worse than others.
Clean
[shot]http://www.hiveworkshop.com/forums/members/141575-albums7850-picture92898.png[/shot]
(Figure 8, machine room)
[shot]http://www.hiveworkshop.com/forums/members/141575-albums7850-picture92899.png[/shot]
(Figure 9, old office space)
[shot]http://www.hiveworkshop.com/forums/members/141575-albums7850-picture92900.png[/shot]
(Figure 10, cave)
(Figure 8, machine room)
[shot]http://www.hiveworkshop.com/forums/members/141575-albums7850-picture92899.png[/shot]
(Figure 9, old office space)
[shot]http://www.hiveworkshop.com/forums/members/141575-albums7850-picture92900.png[/shot]
(Figure 10, cave)
Broken
[shot]http://www.hiveworkshop.com/forums/members/141575-albums7850-picture92894.png[/shot][shot]http://www.hiveworkshop.com/forums/members/141575-albums7850-picture92895.png[/shot]
(Figure 11, cave, only broken part)
[shot]http://www.hiveworkshop.com/forums/members/141575-albums7850-picture92896.png[/shot][shot]http://www.hiveworkshop.com/forums/members/141575-albums7850-picture92897.png[/shot]
(Figure 12, dark, almost unlit staircase)
(Figure 11, cave, only broken part)
[shot]http://www.hiveworkshop.com/forums/members/141575-albums7850-picture92896.png[/shot][shot]http://www.hiveworkshop.com/forums/members/141575-albums7850-picture92897.png[/shot]
(Figure 12, dark, almost unlit staircase)
There are of course a lot more to look into than the modes, such as the post process effects and lightmass settings. I know far less about these settings, but I’ve tried to fiddle around with them. Much without any result, but I’ll give you guys the rundown of what we’ve changed in the World Info settings (within the spoiler boxes).
* Ambient Occlusion, I’ve tried to render the scene with and without it, but without results. If requested, I'll try again.
* We do not have a Sky Light or Dominant Point Light in this level.
* In the cave, where almost no shadows are broken, the lights are set to 0.0 – 0.3 indirect light scale
* In the machine room area and corridors, the lights are set to 0.1 – 0.6 indirect light scale
Final notes
This is where I’m stuck and I see no way out of it. I’ve also tried to fiddle with the Scene Shadows, but it basically kills off more light than I want it too. I guess I could fiddle with the Mid- and High tones as well and find a “perfect spot”, but does this actually fix the problem?
The “Num Indirect Lighting Bounce” might solve the problem. By killing all the bounces, I could build the entire ambient light myself, but this is a highly inefficient and doesn’t actually solve the problem.
Some of the other lightmass settings does not make any sense to me. Such as the “Static Lighting Level Scale”, Diffuse and Emissive Boost and the Visualize options. I might be missing something here that would fix this problem.
TL;DR
Odd problem with shadows. If you take a look at Figure 1 you’ll notice “black patterns” in the shadows of our level. Figure 2 shows you a higher lightmap resolution, with a similar problem. This problem applies to both Static Meshes and BSPs.
Got any ideas?
Comment