So, I am working on a project that uses very large scales and I am having some issues when objects get over a certain threshold with unity5 (p2). I was hoping someone could help or point me in the right direction? It used to be fine in Beast
Basically I get very “dirty” lighting with artifacts. Its actually really bad in my project but I can demonstrate it to a lesser degree with a very simple process:
create a new project
change the following lighting settings (to reflect the large scales). Leave everything else as default:
a) turn off continuous baking
b) turn off Precomputed Realtime GI (otherwise this will take a while!)
c) Set baked resolution to 1
d) Turn off compression (otherwise its even worse)
e) set indirect resolution to 0.001
add a cube and make it 10,000 x 10,000 and make it static.
in the lighting panel, sent the objects scale in lightmap to 0.04 (so it will fit in the lightmap)
now bake.
You should get this result:
I have objects that are up to 25,000m in size and need to work out how to bake these without any noise.
Here is another simple mesh (14,000m wide) in the same scene which shows it much worse:
In fact, after experimenting with the simple cube example, it looks fine at 2,000m and at 2,500m they start to appear. If you lower the default ambient light it becomes very pronounced.
looks similar, but I am not using any emissive materials. I only have a single directional light source (the standard one). At lower scales my lighting works fine. You may need to increase the Baked and indirect resolution at your scale.
Hi! Assign a custom LightmapParameters with a higher pushoff value, that should fix this.
You are on the limits of what floating point precision can represent though, so consider scaling down you scene (if you are using centimeters, try using meters if possible).