Dev talk:Bone Layer

From Synfig Studio :: Documentation
Revision as of 23:28, 18 November 2008 by Genete (Talk | contribs) (Add the deleted section here)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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:

Strength.png

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.

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://api.formulasearchengine.com/v1/":): {\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.

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://api.formulasearchengine.com/v1/":): {\displaystyle w=e^{-\frac{d^2}{s}} }

Flexibind.png

  • 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.

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://api.formulasearchengine.com/v1/":): {\displaystyle w=1-\frac{d}{s} }

Region-linear.png

  • 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.

Failed to parse (MathML with SVG or PNG fallback (recommended for modern browsers and accessibility tools): Invalid response ("Math extension cannot connect to Restbase.") from server "https://api.formulasearchengine.com/v1/":): {\displaystyle w=1-\frac{d^2}{s^2} }

Region-parabolic.png