Skip to content
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

CylinderMesh does not allow for zero rings #82850

Closed
phkeese opened this issue Oct 5, 2023 · 0 comments · Fixed by #82887
Closed

CylinderMesh does not allow for zero rings #82850

phkeese opened this issue Oct 5, 2023 · 0 comments · Fixed by #82887

Comments

@phkeese
Copy link

phkeese commented Oct 5, 2023

Godot version

v4.1.1.stable.official [bd6af8e]

System information

Godot v4.1.1.stable - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3050 Ti Laptop GPU (NVIDIA; 31.0.15.3640) - 12th Gen Intel(R) Core(TM) i7-1260P (16 Threads)

Issue description

The CylinderMesh has an option for rings within the geometry. You cannot set this to zero. This results in artefacts when rendering a CylinderMesh using transparency without backface culling, made worse in combination with emission.

Transparent material without backface culling. One ring:
image

The desired effect can be somewhat achieved by tweaking the shading mode, but I would suggest allowing to set the number of rings to zero. The desired outcome would be a single cylinder without any rings in the middle.
image

Steps to reproduce

  1. Create a new CylinderMesh
  2. Try to select zero rings
  3. Minimum of one ring is enforced by the editor

Minimal reproduction project

project.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants