An example for understanding my goal: a towel falls on a teapot -> a towel is lying on a teapot. With what help is this possible and what is more convenient? wpf, opengl, unity ... There are many libraries on the Internet for implementing 3d, but which one is suitable for handling a fall under the weight of gravity and the "spreading" of a towel over the surface of a teapot?
1 answer
Google the “ fabric physics ” for C #. Most likely, you will need an array of figure points, in which each point (grid top) is subject to physical forces (gravity force as a function of mass, tension of connections adjacent to other vertices, elastic force of the surface on which the fabric falls and its point, friction force with the surface on which the fabric slides or cannot slide).
Start with a mathematical model. describe the sphere by points (take not very many points). For starters, the cube will be a wonderful “sphere”. Take a 3x3 square plane (16 vertices). Set the vertices of the plane parameters. Set the vertices of the sphere parameters. Conduct an experiment in text mode. Then it will be possible to bind this model to any graph.
And regarding OpenGL , I can say that after building the mathematical (physical) model described above, you can easily repeat it already in shaders (programs for the graphics processor) within the OpenGL Shading Language. ( Presentation on the topic) ( introductory article on shaders )
Cloth simulation - fabric simulation on the ball from GeForce (and not only).