Resonite-Issues icon indicating copy to clipboard operation
Resonite-Issues copied to clipboard

Add a Round Cube procedural mesh

Open BlueCyro opened this issue 1 month ago • 2 comments

Is your feature request related to a problem? Please describe.

Icospheres and UV spheres are great and all, but sometimes suffer from the fact that the poles are UV map singularities and converge infinitely. Even outside of this somewhat niche problem, just having more variety in the topology of procedural meshes in general makes them more versatile overall.

Describe the solution you'd like

Introducing: The Round Cube

Image

Accurate in it's spherical depiction, minimal in it's distortion, and most importantly: Free from infinitely-converging singularities. Due to being UV-mapped exactly like a cube, it handles cube-projected textures quite readily and requires no equirectangular conversions. Who needs infinitely smooth math when we have good ol' discrete coordinates?

Describe alternatives you've considered

  • Using an externally-imported mesh
    • Workable, but not extremely dynamic (e.g. you cannot change the subdivisions)
    • Just another asset the user has to download, when it could instead be easily computed on their client like other procedural meshes

Requesters

Myself

BlueCyro avatar Nov 14 '25 11:11 BlueCyro

Can i add a feature request to this feature request. Seperate uvs per "cubeface" And have them rotateable by 90s. Basicly mkaing it have all the cubemap controlls

Redd56 avatar Nov 14 '25 13:11 Redd56

Here's an article with some additional information about round cubes (also known as patched spheres). The section about analytically correct tangents is particularly useful. https://iquilezles.org/articles/patchedsphere/

brecert avatar Nov 14 '25 15:11 brecert