LuxCoreRender / BlendLuxCore

Blender Integration for LuxCore
GNU General Public License v3.0
737 stars 91 forks source link

auto smooth bad shading #896

Open Luxcoreimage opened 9 months ago

Luxcoreimage commented 9 months ago

.blend file: shade auto smooth.zip

Steps to reproduce: Bad shading when an object has beveled and sharp edges and you enable auto smooth.

Screenshots or rendered images: auto smooth

OS: windows 11 Blender version: 4.0.2 LuxCore version: blendluxcore_v2.8alpha1

wizard3376 commented 9 months ago

When you want to smooth something, use the modifier "Weighted Normal" then this problem will be solved

Luxcoreimage commented 9 months ago

I can also use the edge split modifier to fix the issue but that's not the point, in previous blendluxcore versions auto smooth function was working properly without the need of putting a modifier to the object.

wizard3376 commented 9 months ago

y the way, do you know how to use LuxCore Tools? I'm talking about server rendering

Luxcoreimage commented 9 months ago

No sorry wizard3376 i don't know how to use Luxcore tools, i haven't used this feature at all.

kintuX commented 9 months ago

I can confirm this issue. Also, bypasses ("Add Custom Split Normals" & Edge Split" modifier) aren't an option w/ highly complex scenes. Build performance suffers too much. Simple scene attached (just press "f12" or "Ctrl+f12") autosmooth-bug.zip

neo2068 commented 9 months ago

@Luxcoreimage Please test the latest version. This bug should be fixed, now. Link

kintuX commented 9 months ago

I'm confirming the fix (commit ea6b067).

Luxcoreimage commented 9 months ago

In general the problem is fixed and working like previous versions but there is a shading issue(probably shadow terminator issue) in all blendluxcore versions i tested (v2.5, 2.61, 2.8), if you rotate the view in some angles a black shade appears. You can avoid this when you have beveled edges by using the harden normals option in the bevel tool or in the bevel modifier. Of course you can manually manipulate the normals to fix the problem but requires more knowledge and expertise.

shadow artifact