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"

Odd Lighting After Build

Here is a screenshot of my issue:

https://gyazo.com/3b60ab0a0c3bdeeab103b87c261366ab

There is only one light in the scene, the wall in the screenshot is composed of 3 different cubes. All of the cubes and textures are the default from Unreal Engine, same thing with the lighting. All I've done is taken the fps starter thingy and changed the map.

I'm quite a beginner in Unreal so please include a little instruction sheet or something on anything you recommend, thank you!

Product Version: UE 4.21
Tags:
more ▼

asked Jan 10 '19 at 06:33 PM in Rendering

avatar image

Forodin
43 4 4 7

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

2 answers: sort voted first

I found a fix for the issue I was having thanks to @Makigirl 's comment on another post.

"Hi!

Unreal when builds lighting it calculates lighting per object this is why you get with these settings shading differences! SLLS: 0.1 - 0.15 ILS: 0.6 and you'll get rid of those!! ;)

...I would turn off lightmap compression (and AO too till you don't get your lighting right). Also 100 bounces are pointless: above 10 it's just random and can produce false results... just keep it between 5-10!"

more ▼

answered Jan 25 '19 at 07:35 PM

avatar image

Forodin
43 4 4 7

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

Lightmaps.

Any 3d static object has to have a lightmap setup for it's exact shape when it's imported. The issue is that the cube is lightmaped as a cube, but you've stretched it out causing the shadow's inaccuracy. Static objects basically have the shadows painted onto them when you build lighting, like a texture map... which looks bad if the shape has been warped.

If you recreated the wall in 3d software and imported it with a custom lightmap, you wouldn't see an issue (I haven't messed with auto lightmap generation... I might look into it later). Although the wall would need a larger lightmap size, specified under the object's details when double clicked on. The default cube is 64, a wall like that might need 128 or 256 depending on complexity. Really big stuff needs to be broken down into smaller assets to keep the lightmap sizes down or you'll have memory problems. Max size is 2048, though I try to avoid having any object that large. I have a small, low poly cave broken down into 4 pieces, for instance.

You may run into the problem of static shadows not lining up with dynamic light sources. If you have wavey lines on the ground, you either need a larger lightmap size or need to break the asset down into smaller pieces. I've got a temple that i'm going to seperate all the floors out of later to reduce the lightmaps down further. I've also had the issue where my character was getting really dark but the environment wasn't as dark. Turned out that Static Lighting Level Scale under World settings needed to be halved to get the kind of accuracy I needed and fortunately my level sizes are quite small.

Anyway. It's an unintuitive ordeal but once you get it sorted out, building levels can be pretty cool. For troubleshooting, watch out for using the wrong lightmap channel on imported objects, remap the lightmap after any adjustment, watch out for the lightmap size being too big and breaking things down smaller, tinker with the light settings and world lightmass settings and good luck!

more ▼

answered Jan 11 '19 at 01:50 AM

avatar image

Ray_Unreal
13 1 4

avatar image Forodin Jan 11 '19 at 02:07 AM

I can't believe I never thought of the fact that they were squares! When I bake now they do this though, https://gyazo.com/f6501d33cf7c5ef275c6644a0e5473ad

could it be that I still have one side that isn't even with the others? (They are walls so I didn't want them to extend a lot, so I only have X and Z equal to eachother while the Y isn't)

avatar image Ray_Unreal Jan 11 '19 at 03:15 PM

Welp, the quick answer is, "I don't know."

I just setup a temp project and replicated your results. I tried importing a custom cube I made and got shadow errors on it as well.

If you make your walls one object in an external 3d program, lightmap it correctly and drop it in, any weird shadow thing is going to be in the corners where it would be least noticable.

Sorry I couldn't be more helpful :^\

avatar image Forodin Jan 11 '19 at 05:47 PM

It's okay, thank you! I am trying to avoid making it in another program as it's much easier for me to make slight changes when it's all multiple pieces :)

(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