- Home /
Lightning creates unnatural shadows when I join two objects
I am working on a game where i join objects like a lego and the joined objects produce unrealistic shadows when compared to whole mesh that could represent the two objects. I can not merge the meshes becouse the user can saparate the two joined objects any time. I want to give the joined meshes more natural lighting and shadows. How do I achieve that ? :)
Answer by petur · Oct 26, 2019 at 02:48 AM
Thats because of the edge smoothing. It's kind of a complicated issue to explain in an answer, you may want to look into the topic.
Something that may help is going to the import settings of the geometry, set the normals to "Calculate" and the angle to something between 40 and 90, like this: https://www.youtube.com/watch?v=jyBvm6rJYL8
Thank you! worked like charm when I set it to 60, I was looking into the import setting for solution but didnt quite picture what this ment. There is still a tiny seam but my guess is that thats becouse the connection points are tiny little above the mesh. Any posibility how I could calculate that point from surrounding vertices? or should i ask that in a separate question?
If I wanted to eli$$anonymous$$ate that seam too I would use a single object and multiply the scale along Y axis by the number of objects stacked. Depending on where the pivot point is in the geometry that may require adding an offset to the position (or editing the pivot point of the geometry in a 3d program).
That will not work for me as the user can connect different shapes. Ill try to look into it a little bit more :).
Your answer
Follow this Question
Related Questions
Cross-hatching on shadows with deferred Lighting 0 Answers
Unity 5 Spot Light no shadows or break in the light 2 Answers
Lighting cubic patterns problem 0 Answers