#GameDev #FreeCode #Godot #CSharp If anyone wants to play with this, the code is here:
https://github.com/IanBadcoe/SubD_Test
(to be precise, that is the test project which has the real repo as a sub-module)
Semi-polished and moderately tested, there are some awkward corners...
The features are:
- build-control-mesh from cubes (lame)
- build-control-mesh from "cylinders" (prisms)
-- radius, roll, pitch, yaw for each section
-- set edges/verts sharp, or tag them for later retrieval
-- add holes, set their edges sharp or tag them
- normals for all polys/edges/faces
Omissions:
- no UVs yet
- there is a ton of Linq used, it works for me in editor, but may give GC stalls if used a lot in game...
Further work:
- I want to add a feature beyond "holes" where I can turn a hole into a "socket" into which another surface could be plugged, producing side-branches...
- if performance is a problem, rewrite in C++...
Talk to me if you need anything. I do bite, but I am (on average) a long, long way away from you 😄