-
-
Notifications
You must be signed in to change notification settings - Fork 370
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug] Opacity problem on stl file when backface culling is enabled #3069
Comments
What picture is incorrect ? do you have backface culling enabled on the incorrect picture ? |
Backface culling is enabled on all pictures, the last picture (larger mandible with the full jawbone) is the incorrect one |
I forgot to mention that this problem does not appear when using |
What's the difference between the 3rd picture and the last picture ? Only the mesh is different ? |
Gotcha. It would be great if you could attach that STL file to the issue. |
Here are the files used to reproduce it: |
You might want to check the magnitude of your normals (maybe it is different between the teeth triangles and the jaw triangles). |
@finetjul It looks like it has something to do with the diffuse light coefficient. When I put it to zero, it looks like this. I guess that depending on the distance from the camera to the object, the intensity of the diffuse component changes? Do you have an idea where to investigate this issue? |
And this blackness does not happen if it is opaque? Do you have ambient lighting? |
Yes, it is caused because I do not have ambient lighting I believe. The blackness also occurs when the mesh is opaque |
Bug description
I have a problem where the opacity of stl objects behaves inconsistently when backface culling is enabled. I have two meshes of a mandible, which both are rendered correctly when opacity=1 (see pictures below). I also checked that the backfaces of both meshes are on the inside.
When changing the opacity to be less than 1, you can see that the color of the bone is different on both objects (see pictures below). When zooming out far, both objects are again rendered correctly. Do you know what can cause this?
Steps to reproduce
Detailed Behavior
No response
Expected Behavior
Both objects are rendered correctly when opacity is less than 1 and backface culling is enabled
Environment
The text was updated successfully, but these errors were encountered: