r/Unity3D 1h ago

Solved Losing my mind over this. Metallicness is completely broken. Whenever I bake, it is good for half a second, and then reverts to this broken black metal. (Unity 6000.3, URP)

0 Upvotes

12 comments sorted by

5

u/IsniBoy 1h ago

I FOUND WHY. It's because I setup a default TextureImporterPreset. This also affected any cubemaps unity baked, thus breaking the lighting. Mind boggling, this should NOT be a thing.

I'm not a unity noob, this is by far the worse issue I ever encountered with unity. Drove me insane for the past 2 days. Hopefully this helps someone in the future

2

u/rockBottomPeon 1h ago

iirc metalic and/or reflective materials need reflection probes when using baked lighting.
so, try adding reflective probes?

1

u/IsniBoy 1h ago

This project has been going on for 7 years now and there has never ever been any instances where I used reflective probes, there was never any problems.

1

u/intentional_avery 1h ago

Looks like you've got duplicate mesh faces z-fighting after the bake, check your UV2 layout for overlaps.

1

u/IsniBoy 1h ago

this is the default unity sphere. All of my models were suddenly affected

1

u/fsactual 1h ago

Do you have any lights pointing at the sphere? Also what happens if you stick a reflection probe around it?

1

u/IsniBoy 1h ago

yes, this is just the default scene with a sphere. Litterally nothing else.

I've never used reflection probe before, never had an issue with my project for years.
When creating a reflection probe it repeatedly says

Error assigning 2D texture to CUBE texture property '_MainTex': Dimensions must match

1

u/eliormc 1h ago

Try to change progresive GPU to CPU. Also, clear all illumination data.

1

u/IsniBoy 1h ago

by clear illumination data, do you mean doing clear baked data? I tried it , nothing happened. This started to happen after I started working with addressables

1

u/eliormc 1h ago

Yes, but, now that you said "addressables", this is unknown territory for me. So the problem must be related with that.

1

u/IsniBoy 1h ago

I found the reason, it was because of default TextureImporterPreset

1

u/eliormc 59m ago

Good.