guycalledfrank / bakery-issues

Bug tracker for Bakery
4 stars 0 forks source link

Black Areas after Baking Sectors #120

Open Prophantii opened 3 years ago

Prophantii commented 3 years ago

When Baking a sector, I get big black patches on the ground. I tried to reposition the capture points but the black patches just appear on different positions. I doubt it's shadows from other objects, since you can see the correct shadows in between the black areas. I'm rendering a small building with interior on 100 Texels per Unit, RTX mode, 3 bounces. The building is rather small with just two small rooms. There are no terrains or anything in the sector itself, but some terrains in the scene, if that's important. The Sector has 6 Capture Points and is set on "Capture in Place". (Not quite sure how many capture points are necessary but the patches appear when baking with a different amount of capture points.)

Example 1 screenshot1

Example 2 screenshot3

Position of Capture Points screenshot2

screenshot4 screenshot5

guycalledfrank commented 3 years ago

Hmmm... how many sectors are there and how are objects distributed among them? Such patches can appear if objects around the floor mesh don't belong to the same sector.

Prophantii commented 3 years ago

Thank you for your answer. Currently there is only one single sector, since I was only testing out the sector function. The scene is actually a big outdoor scene. The sector is only one building containing all it's interior (furniture etc). But beneath the building at around floor level is a Terrain and another Ground-Object which is being used as the floor outside of the building. That might just be it. I will test it out and post here if it worked.

guycalledfrank commented 3 years ago

Interesting... can you show me sector geometry preview? Is there something intersecting the floor?

image

Prophantii commented 3 years ago

Just the preview button right? My PC doesn't seem to be able to handle that. Unity freezes when pressing it or rather it doesn't seem to process anything. grafik

After disabling this Groundmesh though, the bake of the sector went perfectly fine. There are no more black patches to be seen.

grafik

guycalledfrank commented 3 years ago

My PC doesn't seem to be able to handle that. Unity freezes when pressing it or rather it doesn't seem to process anything.

Weird. It should work. Does it work in my example scene? Do you have to kill Unity process after it freezes?

Can you check it with Terrain Optimization disabled? It looks like it doesn't work right when enabled.

Prophantii commented 3 years ago

Yes I need to kill the Unity process. I tried it with Terrain Optimization disabled but it still freezes. I'm a little dumbfounded. Like I said, when disabling the ground layers the shadows are fine (for the most part). Some Objects don't throw a shadow upon them selves. It's like they only receive indirect light or something. Probably need to test out more options.

guycalledfrank commented 3 years ago

If there is any test package/project you can send to debug, it would help a lot. I assume it would only need the terrain and some walls to test it.