# Dev talk:Bone Layer

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

## Deleted Section. Kept for future references

The calculation of the weight w is calculated based on the distance d of the point P to the bone according to this diagram:

Notice how the point P1 is located at same distance d to the bone than the point P2.

There are possibles formulation to calculate w based on d values but some initial are these:

• Point is Fixed Bind to the Bone: Bone has always the same weight regardless the distance form the bone.

$\displaystyle w=1$

• Point Flexible Binded to the Bone: that means that the bone has influence to the point always but it decreases exponentially to with the distance d². Here is a new parameter called s (strength). it can modify the weight function of the bone with the distance d.

$\displaystyle w=e^{-\frac{d^2}{s}}$

• Point Region-Linear Binded to the Bone: that means that the bone has influence to the point only inside a certain region and it decreases linearly from w=1 when d=0 w=0 when d=s.

$\displaystyle w=1-\frac{d}{s}$

• Point Region-Parabolic Binded to the Bone: that means that the bone has influence to the point only inside a certain region and it decreases parabolic from w=1 when d=0 w=0 when d=s.

$\displaystyle w=1-\frac{d^2}{s^2}$