You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is mainly noticeable in surfaces with low resolution:
Resolution (4, 4):
Resolution (11, 11):
Additional context
The issue occurs at surface points where one of the derivative vectors is degenerate:
point − du_point = 0 or point − dv_point = 0
Potential Fix
I added a conditional check in the texture_surface shader to detect du or dv with zero lengths, in which case the unit_normal must be calculated in a different way.
I guess this has been resolved with the latest commit. I tested your code with the resolution (4, 4), and I didn't encounter any black space / texture.
Describe the bug
The texture does not render correctly on certain TexturedSurfaces (Sphere, Cone, Disk3D). In specific areas it appears completely black.
Code:
Wrong display or Error traceback:
It is mainly noticeable in surfaces with low resolution:
Resolution (4, 4):

Resolution (11, 11):

Additional context
The issue occurs at surface points where one of the derivative vectors is degenerate:
Potential Fix
I added a conditional check in the texture_surface shader to detect du or dv with zero lengths, in which case the unit_normal must be calculated in a different way.
shaders/textured_surface/vert.glsl:
The analytical normal of a sphere was used in the fallback case.
Results
Resolution (4, 4):

Resolution (11, 11):

Conclusion
I am not sure if this was the ideal solution, but it is working perfectly for various resolutions and surfaces now!
The text was updated successfully, but these errors were encountered: