as the title implies I’m trying to render a rope.
On the physics side of things I have set up a rope consisting of rigid body segments that are chained with point constraints. Every segment is represented by a scene node (a child of its preceding rope segment or the rope root). So far this is working pretty nice, so the next step is to render the rope. Because of occasional gaps between the constrained physics bodies when the rope is swinging around heavily I concluded that attaching single models to each segment scene node is out of question. The next thing in mind is to use a custom generated geometry along with skeletal animation. It was easy to create the model (I’ve used manual vertex / index buffer creation in order to attach the geometry to an AnimatedModel), but I’m struggling on how to define the bones. I cannot see any setters / create methods in the Skeleton class and the only thing that adds bones appears to be the deserialization method.
Is it not possible to create a bone structure programmatically? What are your thoughts? Should I implement my own shader and pass the vertex transforms as uniform instead?
For reasons of simplicity (as well as clickbaiting) I’ve attached an image explaining what I want to achieve:
The red line is the model i want to deform while the white segments are the rigid bodies of the physics simulation. I hope that makes it a bit more clear.
Thanks for any help!