|
|
(One intermediate revision by one other user not shown) |
Line 1: |
Line 1: |
| '''Cloth modeling''' is the term used for simulating cloth within a computer program; usually in the context of [[3D computer graphics]]. The main approaches used for this may be classified into three basic types: geometric, physical, and particle/energy.
| | Hi there, I am Sophia. Some time in the past she selected to reside in Alaska and her mothers and fathers live nearby. To play lacross is something he would never give up. My day occupation is an info officer but I've already applied for another one.<br><br>my page; [http://srncomm.com/blog/2014/08/25/relieve-that-stress-find-a-new-hobby/ online reader] |
| | |
| == Background ==
| |
| | |
| Most models of cloth are based on "particles" of mass connected in some manner of mesh. [[Newtonian Physics]] is used to model each particle through the use of a "black box" called a [[physics engine]]. This involves using the basic law of motion (Newton's Second Law):
| |
| | |
| : <math>\vec{F} = m \vec{a}</math>
| |
| | |
| In all of these models, the goal is to find the position and shape of a piece of fabric using this basic equation and several other methods.
| |
| | |
| == Geometric methods ==
| |
| | |
| Weil pioneered the first of these, the geometric technique, in 1986.<ref name="tutorial">[http://www.webcitation.org/query?url=http://www.geocities.com/SiliconValley/Heights/5445/cloth.html&date=2009-10-25+09:48:40 Tutorial on Cloth Modeling]</ref> His work was focused on approximating the look of cloth by treating cloth like a collection of cables and using [[Hyperbolic cosine]] (catenary) curves. Because of this, it is not suitable for dynamic models but works very well for stationary or single-frame renders.<ref name="tutorial"/> This technique creates an underlying shape out of single points; then, it parses through each set of three of these points and maps a catenary curve to the set. It then takes the lowest out of each overlapping set and uses it for the render.
| |
| | |
| == Physical methods ==
| |
| | |
| The second technique treats cloth like a grid work of particles connected to each other by springs. Whereas the geometric approach accounted for none of the inherent stretch of a woven material, this physical model accounts for stretch (tension), stiffness, and weight:
| |
| | |
| : <math>E(Particle_{i,j}) = k_{s}E_{s,i,j} + k_{b}E_{b,i,j} + k_{g}E_{g,i,j}</math>
| |
| | |
| * s terms are elasticity (by [[Hooke's Law]])
| |
| * b terms are bending
| |
| * g terms are gravity (see [[standard gravity|Acceleration due to gravity]])
| |
| | |
| Now we apply the basic principle of [[mechanical equilibrium]] in which all bodies seek lowest energy by differentiating this equation to find the minimum energy.
| |
| | |
| == Particle/energy methods ==
| |
| | |
| The last method is more complex than the first two. The particle technique takes the physical technique from (f) a step further and supposes that we have a network of particles interacting directly. That is to say, that rather than springs, we use the energy interactions of the particles to determine the cloth’s shape. For this we use an energy equation that adds onto the following:
| |
| | |
| : <math>U_{Total} = U_{Repel} + U_{Stretch} + U_{Bend} + U_{Trellis} + U_{Gravity}</math>
| |
| | |
| * The energy of repelling is an artificial element we add to prevent cloth from intersecting itself.
| |
| * The energy of stretching is governed by [[Hooke's law]] as with the Physical Method.
| |
| * The energy of bending describes the stiffness of the fabric
| |
| * The energy of trellising describes the shearing of the fabric (distortion within the plane of the fabric)
| |
| * The energy of gravity is based on [[standard gravity|acceleration due to gravity]]
| |
| | |
| We can also add terms for energy added by any source to this equation, then derive and find minima, which generalizes our model. This allows us to model cloth behavior under any circumstance, and since we are treating the cloth as a collection of particles its behavior can be described with the dynamics provided in our physics engine.
| |
| | |
| ==See also==
| |
| | |
| * [[Soft body dynamics]]
| |
| * [[Classical mechanics]]
| |
| * [[Physics engine]]
| |
| * [[Rigid body dynamics]]
| |
| * [[Stretched grid method]]
| |
| | |
| == References ==
| |
| * [http://davis.wpi.edu/~matt/courses/cloth/ Cloth Modeling]
| |
| | |
| ==Notes==
| |
| | |
| <references/>
| |
| | |
| [[Category:3D computer graphics]]
| |
| [[Category:Specific models]]
| |
Hi there, I am Sophia. Some time in the past she selected to reside in Alaska and her mothers and fathers live nearby. To play lacross is something he would never give up. My day occupation is an info officer but I've already applied for another one.
my page; online reader