godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
91.05k stars 21.18k forks source link

`CSGSphere3D`'s has less rings than the specified #94175

Open ydeltastar opened 4 months ago

ydeltastar commented 4 months ago

Tested versions

v4.3.beta.custom_build [82cedc83c]

System information

Windows 11 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3070 (NVIDIA; 31.0.15.4633)

Issue description

CSGSphere3D on the left and a mesh instance SphereMesh on the right. They both are configured with 5 rings but the CSGSphere3D produces a mesh with 4 rings instead. The result is always rings-1.

image

Steps to reproduce

Minimal reproduction project (MRP)

N/A

AThousandShips commented 3 months ago

This would be a matter of definition, the documentation just states "Number of horizontal slices for the sphere.", which it has! It has five sections, but only four horizontal dividers, the description for SphereMesh is "Number of segments along the height of the sphere." which could be interpreted differently