YOU ARE DOWNLOADING DOCUMENT

Please tick the box to continue:

Transcript
Page 1: Soft body simulation

Soft Body Simulation

Page 2: Soft body simulation

What is Soft body? A soft body is basically an object which changes its overall shape due to external forces acting on it. Some examples that we commonly see include cloth, balloons and jelly.

Page 3: Soft body simulation

Applications for soft body simulations:-

Computer Graphics (animation)

Virtual Reality

Games

And many more…

Page 4: Soft body simulation

Existing Soft Body Models Spring-Mass based models

- easy implementation, weak results

FEM, FEV based techniques

- great results, complicated implementation, slow

Fluid based model

- good results, not for realtime

Page 5: Soft body simulation

Purpose "...to create model which will be fast, easy in implementation and gives good soft bodies behavior."

Page 6: Soft body simulation

Problem statement To design a plugin for Unity developers that helps in simulation of interactive soft body (Jell-O like) with spring mass and pressure model in Unity

To develop an AR based Android application to visualize this simulation.

This soft body can be any given mesh and/or parts of a given mesh.

We can merge different meshes also.

Page 7: Soft body simulation

Spring Mass Pressure Model Spring :

Each edge of the mesh is converted into springs with a spring constant and a damping constant.

User can change these constants according to their needs.

Mass : Each vertex has a definite mass which can be

modified by the user. User can change Gravitational

force constant.

Pressure: Pressure is applied inside the mesh so that it

Can behave like a balloon. User can change Pressure constant.

Page 8: Soft body simulation

Background of Pressure Model Create Spring Mass System

Create a simple cloth.

Apply wind force (left -> right)

We will see a deformation in the cloth.

Page 9: Soft body simulation

Algorithm proposed Create closed shape of the cloth

And.. put "source of the wind" inside.

Page 10: Soft body simulation

Wind Source?? Wind source basically provide a pressure to the mesh.

We can consider a gas which will provide the necessary pressure.

- We will put an ideal gas inside of the body

- And apply some basic physics to it.

Page 11: Soft body simulation

Ideal Gas Approximation Pressure value is described by Ideal Gas Equation:

P V = nRT

P- pressure value

V- volume of the body

n- particles number

R- gas constant

T- gas temperature

Page 12: Soft body simulation

Pressure Force calculation We can calculate pressure to a point with this equation:-

And for pressure:-

Assume n, R and T are constant. So we have to calculate the volume of the body.

Page 13: Soft body simulation

Volume We use gauss theorem to calculate volume of the body.

Collision detection and response are also handled.

 If F is a continuously differentiable vector field defined on a neighborhood of V, then we have

The left side is a volume integral over the volume V, the right side is the surface integral over the boundary of the volume V.

Page 14: Soft body simulation

Implementation

Page 15: Soft body simulation

NoveltyThe diagram below compares the existing spring mass model with the new spring mass with pressure model.

Page 16: Soft body simulation

AR based Android App - Uses Vuforia AR library.

- Designed to visualize soft body simulations of 3D figures from every angle and at every step of simulation.

- Start/Stop functionality.

Page 17: Soft body simulation

Results

Page 18: Soft body simulation

AR application

Page 19: Soft body simulation

Conclusion Pressure Model of Soft Body behavior

it is fast.

gives good Soft behavior in real time.

it is easy for implementation.

Page 20: Soft body simulation

Future Work Increase the performance of our algorithm to give better results in less amount of time.

Increase user interaction in the mobile app.

Design a mobile AR based game for better understanding of soft body for educational purposes.

Stabilize the system for inter-mesh collisions.

Collision with other rigid bodies and soft bodies would be incorporated.

Page 21: Soft body simulation

Thank You..!!


Related Documents