# GUI | Algorithm | project代做 | 作业Python – Proposal Cloth Simulation

### Proposal Cloth Simulation

GUI | Algorithm | project代做 | 作业Python – 这是一个关于Algorithm的题目, 主要考察了关于Algorithm的内容,是一个比较经典的题目, 涉及了GUI/Algorithm/Python等代写方面, 这个项目是project代写的代写题目

#### 1 Proposal

There are now many video games that have implemented some realistic cloth systems, such as magical cloaks. My goal is to design a simple cloth simulation program.

The essence of Cloth Simulation is a Mass Spring Model. We need motion equations to determine the motion of objects in the system, such as Euler’s Method, Runge Kutta, Verlet Algorithm (Explicit), Symplectic Euler’s Method (Semi-Implicit) Choose the appropriate method among these methods (Fisher, 2014). In addition, try to implement certain interactive functions for it as much as possible, such as simulating gravity, simulating wind, or supporting collision detection.

If the development is not going well in the past few weeks, I may choose to discard some features and complete the most core functions as much as possible first. It is also possible to re- select other development technologies (such as switching to other programming languages). If I encounter the worst case, I may re-select other directions: such as Fluid Simulation.

#### 2 Related Work

I found some technical articles that might be helpful for implementing a Mass Spring System for cloth simulation.

Each vertex in the system stores its own data, and an appropriate motion equation is selected to calculate their motion, such as Verlet integration (Traversi, 2017). In addition, they each correspond to a specific texture coordinate in order to correctly display the texture of the cloth.

There are two main parts of the simulation system: firstly, calculating and updating the motion data of all objects, and secondly, drawing all objects. Repeat these processes to simulate the desired effect.

We can adjust some physical parameters to obtain different simulation effects, such as modifying spring constant or density (Traversi, 2017).

If time permits, it is hoped to implement features for cloth to interact with the environment, such as handling collisions with other objects or simulating wind (Traversi, 2017).

#### 3 Plan

1. Development environment
`````` OS: Windows (>=10) x64 / Ubuntu (>=20) x
``````
`````` Programming language: Python/C++/...
``````
``````  Python is known for its many convenient and easy-to-use mathematical toolkits, so it
is likely to use it to develop programs.
``````
`````` The graphics system is mainly based on OpenGL, and the im GUI library may be
introduced as an auxiliary interactive interface.
``````
1. The additional resources required for the project are mainly the texture of the cloth itself.
2. Timeline
• Week 1: Research relevant technical articles and design a simple prototype that implements key features.

• Week 2: Complete the remaining development work and try to add some additional features to it, and possibly refactor the program.

• Week 3: Test the program and check for bugs or deficiencies.

• Write the final presentation and Paper.

1. I think the main difficulty may be the performance of the program. The cloth simulation system seems to need to deal with a large number of nodes. Many calculations still need to be done by the CPU. I am not sure whether the required calculations can be completed within the expected time. There is a possibility that the frame rate will be too low, if this problem occurs, I may need to write parallel code. Also, handling collisions can be a troublesome challenge.

#### 4 References

Fisher, M. (2014). Matt’s Webcorner – Cloth. Retrieved from Matt’s Webcorner: https://graphics.stanford.edu/~mdfisher/cloth.html