r/Unity3D • u/Creaticality • 2d ago
Question Strange shadows on mesh when imported to Unity
I have a thin mesh that has strangely behaving shadows when imported to Unity URP 6.3, but looks fine in Blender. I thought it was ambient occlusion, but I turned it off, and it looks the same. I tried playing around with the depth and normal bias in render pipeline asset, with no improvement either. If anyone has encountered the same with a solution, I'd be more than grateful to hear, thanks!
98
Upvotes


118
u/cyangradient 2d ago
check normals
26
u/TheHuxwell 2d ago
in unity, mesh's import settings change "Normals" to Calculate from Import and tweak the Smoothing Angle as you like. That is the instant fix within Unity though not as advanced as blender fix. It easily suffices for small objects.
8
u/shoxicwaste 2d ago
URP lighting settings, Shadow Bias and Normal.
3
u/imlo2 2d ago
Check normals like already suggested, and also check if there's any degenerate geometry like double faces (back and front) welded together, etc. And test also different import settings to see if there's any effect on the model. That might help you to diagnose what's wrong.
1
u/Creaticality 7h ago edited 7h ago
Update: Thanks for all the replies! So far best solution has been to simply use smooth shading, that fixes most of the issues.. But it's not really a proper solution as flat shading is the art style I'm going for.
3
u/minimastudios 2d ago
Toggle AO on and off lmk if it’s the issue
2
u/eliormc 1d ago
Export as .OBJ then import into Blender and export again as .FBX
2
u/Cevius 1d ago
Select all vertices, and then weld based on range with a low value, and see if your total vertex count drops. Might have some double ups which can happen with accidental extrude or bevel tool uses. Leads to weird normals and strange lighting sometimes
2
u/destiny20991 1d ago
Looks like smooth shading
1
u/therealnothebees 2d ago
You have internal faces probably.
1
u/survivorr123_ 2d ago
upload the model ill take a look
1
u/blepshark 2d ago
try auto smooth, adjust the modifier till things are as sharp as you would like them to be (easy way of setting sharpness on multiple edges) and see what it looks like in game
1
u/Gradash 2d ago
Look if any attribute is stored. I've already gone through a lot of problems like this and been attributed to something I didn't know.
1
u/thuris4x 2d ago
Ambient occlusion
1
u/les_bloom 2d ago
The colors look inverted to me
1
u/grrrfreak 1d ago
Change "calculate on import" to something like smoothing angle on mesh inport settings.
1
u/Crunchynut007 1d ago
Ngons or normals. Shade flat then shade smooth and add vertices. It’s possible you have a second set of faces overlapping creating ngons.
1
u/Leading-Jaguar-5700 1d ago
on thin meshes from blender into urp shadow banding like this is often caused by paper thin single sided geometry self shadowing across the wall giving it a tiny bit of real thickness solidify in blender or checking normals import vs calculate in the fbx importer usually clears it right up
1
u/Deelook 1d ago
The alternating light/dark segments look like flipped normals from a negative scale. Maybe check the object's scale in the N panel and if any axis is negative, hit Ctrl+A > Apply Scale and re-export.
1
u/Heroshrine 1d ago
Could be a tangent issue
1
u/Valuable-Cap-8005 18h ago
Is your ambient occlusion cranked up in unity?
1
u/MaximilianPs 12h ago
Look like the auto smooth is enabled in mesh import, check the Fbx property
1
u/Agreeable_Emu_5146 11h ago
I had a similiar issue because thickness or in my case the Y component of scale was 0 that cause to mess up the normals calculation
1
u/plearly 2d ago
Looks like interior faces
1
u/Much_Highlight_1309 2d ago
Vertex normals are screwed up