Mastering Hair Physics: Tips & Tricks for Smoothly Simulating Hair Movement

In summary, the conversation is about simulating hair physics and how to manipulate hair vertices to create a realistic effect. The embedded video shows an application that can achieve this by dragging active vertices and maintaining the hair length. However, there are concerns about the authenticity of the simulation and the role of elasticity and stiffness in hair behavior. The manipulation is compared to Bezier curve shaping and it is suggested that the behavior of hair in a viscous fluid or gel may be similar.
  • #1
papillon68
2
0
Hi, I'd like to ask some help and suggestions about simulating hair physics (so basically pulling hair vertices around, and smoothly disposing the adjacent ones).

Please take a look at the embedded video (which shows an application tha can do it): the hair displayed there is made of 15 vertices; once the user drags the active vertices (those inside the circular cursor area), all the hair vertices are moved and repositioned accordingly. To notice that hair length remain the same during the process.

Thanks for any help.



https://www.youtube.com/watch?v=lW4sa_vXBRg
 
Last edited by a moderator:
Physics news on Phys.org
  • #2
Sorry, I had troubles embedding the YT movie, now it's there.
 
  • #3
suggestions. you're going to need to model whatever it is that makes the hair stand up on end again, after being pushed down. elasticity? stiffness? i don't know what it's called. but generally, your video shows hair behaving like a string of dough, which doesn't seem authentic. usually if you push the middle of a hair to the side, the top will bend with it, and the whole thing will just bend at the point of contact. of course that depends on how long it is.
 
  • #4
It basically looks like a Bezier manipulation of a line to adjust the curves. Try out any program that has Bezier curve shaping, and you will see the same effect, although the length of the line or hair would not stay the same in most programs.

Whether or not a hair will behave like that, is beyond my knowledge of the physics of hair. But if a hair is being manipulated in a viscous fluid or gel, one would think something similar would occur, depending on the viscosity of course.
 
  • #5


I am happy to provide some suggestions for simulating hair physics. First, it is important to understand the basic principles of hair movement. Hair is made up of protein fibers called keratin, which have a natural elasticity and can stretch and contract. This elasticity allows hair to move and bend in response to external forces, such as wind or gravity.

To simulate this movement, it is important to use a physics-based approach. This means using mathematical equations to model the forces acting on the hair and how it responds to those forces. One common method is to use a mass-spring system, where each hair strand is treated as a series of connected mass points (vertices) with springs in between. When a force is applied to one vertex, it will affect the neighboring vertices through the springs, resulting in a smooth movement.

Another important factor to consider is the collision between hair strands and other objects. In the video, the hair moves smoothly without intersecting with the head or other hair strands. This can be achieved by implementing collision detection algorithms and adjusting the hair movement accordingly.

Additionally, to maintain the length of the hair as it is being pulled or moved, you can use constraints or forces that act to keep the hair from stretching or shrinking. This will ensure that the hair maintains its natural length and does not appear distorted.

In terms of the application shown in the video, it is important to have a user-friendly interface that allows for easy manipulation of the hair. This can include features such as adjusting the strength of the forces applied to the hair or changing the number of vertices to create different hair densities.

In conclusion, simulating hair physics requires a thorough understanding of the fundamental principles of hair movement and the use of physics-based methods. With careful implementation of these techniques, you can achieve realistic and smooth hair movement in simulations.
 

Related to Mastering Hair Physics: Tips & Tricks for Smoothly Simulating Hair Movement

1. How does simulating hair physics differ from simulating other types of physics?

Simulating hair physics is unique because it involves the interaction of multiple strands of flexible material, rather than rigid objects. This means that the simulation must account for factors such as gravity, wind, and collisions between individual strands of hair.

2. What techniques are commonly used to simulate hair physics?

Some commonly used techniques for simulating hair physics include mass-spring systems, finite element methods, and particle-based simulations. Each technique has its own advantages and limitations, and the choice often depends on the specific application and desired level of realism.

3. How do you determine the properties of individual hair strands for the simulation?

The properties of individual hair strands, such as stiffness and density, can be determined through physical experiments or by referencing real-world data. These properties are then incorporated into the simulation to ensure accurate movement and behavior of the hair.

4. Can hair physics simulations be used in real-time applications?

While real-time hair physics simulations are a challenging task, there are techniques and algorithms that can be used to achieve this. These include simplifying the simulation and using parallel processing to speed up computation. However, the level of realism may be sacrificed in order to achieve real-time performance.

5. How do hair physics simulations benefit industries such as animation and video game development?

Simulating hair physics can greatly enhance the visual realism of characters in animations and video games. It allows for more natural and believable movement of hair, adding an extra level of immersion for the audience. Additionally, it can save time and resources for animators and developers, as they no longer have to manually animate every single hair strand.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
6
Views
3K
  • General Discussion
Replies
1
Views
8K
Back
Top