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 27 '26
Thank you!
You bring up a very good point. Even though the current goal is more about discussion, reflection, sharing and keeping something akin to a development diary. I should really try and create a visual representation of the topology.
I am working on a paper for a more in-depth explanation of the geometry. I must admit, I do not yet know how to make a good 2D diagram because cadent geometry does not have a distance primitive. I find it difficult to illustrate it in any other way than a topology of something akin to a 3 circles in a flat torus, but even then, all circles are of equal 'length', so that is not accurate in 2D either.
Maybe creating a 3D illustration would be easier. Thank you for bringing this up, you are right and I will have to contemplate it further.
Sadly I do not know who ZenoRogue is. I am not doubting you, but what makes him the master? And if he is recognized as such, I expect he might not find my work interesting. My geometry is trying to look as euclidean as possible, but have physics and distance be emergent from it, rather than having to be computed as separate systems.