McManning / Coherence

Blender viewport renderer using the Unity Engine
MIT License
30 stars 0 forks source link

Z-fighting on selected faces (Blender 2.82 issue) #19

Closed McManning closed 3 years ago

McManning commented 3 years ago

Noticed an issue where face selection highlights will z-fight themselves. Narrowed it down to not being an issue with Coherence - but of Blender itself

Using the sample code from https://docs.blender.org/api/current/bpy.types.RenderEngine.html as-is and moving a cube off origin - it'll quickly start z-fighting itself while in material preview / render views:

image

Clip space limits don't have any effect - sans making it worse for larger clip ranges ofc.

Will need to open an issue w/ Blender - but I want to catalog it here first.

McManning commented 3 years ago

Can be alleviated by turning off face highlighting - but it makes it harder to see while working so not a great solution.

image

McManning commented 3 years ago

This looks like it was fixed in 2.91. Can't replicate.

McManning commented 3 years ago

I'm going to close this out as a "won't fix". Can always advise people to upgrade Blender if it's annoying.