📜 ⬆️ ⬇️

Cascadeur - why animators physics?

In the previous post “Cascadeur - is it possible to replace stuntmen?” We promised to tell you more about the program concept and the tools that allow animators to create physically correct movements of the characters.

image

In classical animation, the laws of physics are violated for the sake of enhancing effect and expressiveness. The free circulation of the laws of physics and even the creation of its laws, to which the viewer is getting used to, is an important animation tool. But such a style is perceived by the audience as “cartoon”.

And what will happen if the animation strictly abide by Newton's laws and use only those animation techniques that do not contradict these laws? Such physical correctness in itself will not give realism, but can give the effect of integrity. Indeed, in this case, the character moves in space strictly in accordance with our laws of physics, he has mass, inertia, and all his movements are determined by forces.
')
For a long time, physical modeling has been used for realistic animation of passive structures: the collision of solids, the movement of tissues, hair, etc. Hardly anyone would argue with the fact that it is unreasonably difficult to manually animate the fabric. It would be logical to use physical modeling in the animation of the characters' bodies.

But how to calculate the realistic movement of the character, which, unlike the passive structures, itself generates the forces that set the body parts in motion? How can an animator ensure that this movement does not contradict the laws of physics?

When studying this question, we managed to distinguish 3 concepts, the correct handling of which guarantees compliance with Newton's laws:


If we follow certain rules with respect to these concepts, then it is enough that even a complex object (with hundreds of degrees of freedom) obeys the laws of Newton entirely. This of course does not remove from the animator the concern for expressiveness, naturalness and other characteristics of movement.

Since in most movements air resistance can be neglected, the rules can be formulated as follows:

1) If the character does not have points of support, then:


2) If there are points of support, then:


Compliance with these rules turns into a difficult task for each movement. Usually one has to study motion in order to understand how it is done in reality.

But even if a solution is found, a special tool suggests itself that allows you to control the center of mass and the angular momentum directly, and this is the inverse problem of dynamics, and it requires iterative methods of solution. All algorithms in Cascadeur are built on iterative methods.

The main iterative method used to model physics and most tools is Verlet’s numerical integration. The main feature of the method is the ability to impose several different constraints on the system and iteratively find solutions that satisfy all constraints. On this, we may dwell on one of the following posts.

A character in our system consists of vertices with masses and connections connecting vertices. When editing a frame, any manipulations with the character are similar to actions with a physical object in a viscous environment.

This approach allowed us to implement the following features and tools in Cascadeur:


How these tools are used in the work on the example of a simple jump can be viewed in this video:



Advantages of this approach:


For the time being we are only developing this approach and exploring its possibilities, inventing and trying new tools. We will keep you informed about the results of our research.

Source: https://habr.com/ru/post/143967/


All Articles