# Could someone explain how this equation to calculate weights for control points works?

This topic is 2345 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

In my project, I want to deform a complex mesh based on a much simpler proxy mesh. For this, I need to skin my complex mesh so that each vertex is affected by one or more control points on the proxy mesh and will transform linearly with them.

This paper - http://ivizlab.sfu.c...PEG-4 Faces.pdf - Feature Point Based Deformation for MPEG-4 Facial Animation, describes on pages 4 and 5 how to do what I want, I believe.

If I am understanding it right, that algorithm finds the closest control point for a vertex, then the two that flank that vertex. The weight for each control point (Feature Point in the paper) is proportional to the distance to each of these points, relative to the others.
Therefore, the weights sum should be 1 and the vertex will move with the plane defined by the control points.

There are a couple of things I do not understand though:

1. In equation (2), what are d12 and d13, these are not defined in figure (1). Are they equivalent to d2 and d3? Or d1 - d2, d1 - d3?

2. When you have the inverted proportional distance, what is the purpose of taking the Sine of it? (Equation (4))

Finally, in equation (5) on page (6), why is the deformation of the vertex calculated in that way? Why is the displacement not simply:

SUM( controlpoint_0_displacement * controlpoint_0_weight, ..., controlpoint_n_displacement * controlpoint_n_weight )

Could anyone who knows whats going on explain? Thanks!
SJ

##### Share on other sites
1. From the previous page: "The surface distances of the vertex from these feature points are respectively d_{1P}, d_{12} and d_{13} as shown in the figure."

I'll read the paper to see if I can answer the others, but I haven't any prior experience of this.

##### Share on other sites
Hi TheUnbeliever,

Thank you! I don't know how I read that as d1, d2 and d3 the first time round. (I still think they are very obscurely named variables!)

It is somewhat clearer what is happening. As I see it now, when the sum of the distances is calculated each distance is actually weighted by the angle of that point to the 'main point'. This would be so that when a vertex lies close to the vector between two control points, the third points influence is reduced, as the technical distance may be close but the practical deformation is controlled by the control points at either side right?

1. 1
2. 2
Rutin
21
3. 3
4. 4
frob
15
5. 5

• 9
• 13
• 9
• 33
• 13
• ### Forum Statistics

• Total Topics
632592
• Total Posts
3007280

×