r/GraphicsProgramming • u/Maui-The-Magificent • Feb 16 '26
Constellation: Sharing Cadent Geometry (Avoiding normalization + geometry derived physics)
https://github.com/Mauitron/Cadent_GeometryHi!
I am going to be short:
For the first time, I am sharing a bit of code that I developed for my Rust no-std graphics engine. That is not entirely true, the code itself started as my solution for not having to normalize vectors. An attempt to have a unified unit to express everything. Turns out ended up building a geometry, which makes it more than just being a 'solution' for my engine. I am calling this geometry 'Cadent Geometry'. Cadent geometry is a internally consistent, and is thoroughly tested to be able to accurately close any path thrown at it.
Everything so far can be expressed by one irreducible formula, and one constant. That is all. and because its integer based, it is able to turn individual pixel computation for depth and curvature into 1 multiplication, and 1 bitshift.
many things such as gravity or acceleration also falls out from the geometry itself. So not only don't you have to normalize vectors, things like jumping becomes an emergent behavior of the world rather than being a separate system.
I am going to stop yapping. the link above leads to the no-std definition of said geometry.
I hope you find it interesting!
//Maui_the_Mammal says bye bye!
View all comments
Show parent comment
1
u/Maui-The-Magificent Feb 17 '26 edited Feb 17 '26
Wow man, thank you! Firstly, thank you for giving me the sources, they were very helpful!
Also, you are clearly smarter than me!
Having said that, and I might just be reading you wrong, but if not, i need to make some small clarifications. The projected geometry of Cadent is spherical, but the underlying topology of Cadent geometry is 3 independent circles, 2 spatial circles and 1 time circle, creating a flat torus. So it is fundamentally different than spherical geometry, and does not map spherical coordinates in that regard.
Also, even though the geometry can project surfaces via the drop formula, it works on angles not isosurfaces, at least if my understanding of what isosurfaces are. feel free to correct me though, I must admit, the term 'isosurface' is new to me.
A good way to think about gravity and other cadent physics and how it works is, the fundamental circles, pushes and pulls on each other to create these effects. It does extend past gravity. You can express snell's law accurately in a cadent universe for example, because its all about angles and circle interplay.
I would call this more a dynamic discreet geometric system rather than differential geometry if that makes sense?
If I have missunderstood you in any way, or if my explanations are lacking. please, feel free to correct me. I am very grateful you're analyzing it.