# Weighted mesh (skinned mesh animation) in Spine

**URL:** <https://forum.castle-engine.io/t/weighted-mesh-skinned-mesh-animation-in-spine/210>\
**Category:** News\
**Created:** [August 18, 2020, 8:09pm UTC](https://forum.castle-engine.io/t/weighted-mesh-skinned-mesh-animation-in-spine/210 "2020-08-18T20:09:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![michalis](https://forum.castle-engine.io/user_avatar/forum.castle-engine.io/michalis/32/3_2.png) [@michalis](https://forum.castle-engine.io/u/michalis)\
**Post date:** [August 18, 2020, 8:09pm UTC](https://forum.castle-engine.io/t/weighted-mesh-skinned-mesh-animation-in-spine/210/1 "2020-08-18T20:09:19Z")

</div>

| [![Spine weighted mesh in view3dscene](https://castle-engine.io/wp/wp-content/uploads/2020/08/screenshot-2020-08-18-220156-select-200x123.png)](https://castle-engine.io/wp/wp-content/uploads/2020/08/screenshot-2020-08-18-220156-select.png "Spine weighted mesh in view3dscene") |

We add support for a major [Spine’s](https://github.com/castle-engine/castle-engine/wiki/Spine) feature: weighted mesh. Spine is a great 2D animation software, and this feature allows to have use it for skinned animation. It was implemented by _Trung Le (Kagamma)_ — thousand thanks!

See the demo movie:

The sample files are part of our [demo models](https://github.com/castle-engine/demo-models). Simply get this repository, and explore examples in [spine/weighted\_mesh](https://github.com/castle-engine/demo-models/tree/master/spine/weighted_mesh) subdirectory. You can open the JSON files using [view3dscene](https://castle-engine.io/view3dscene.php) or any other engine tool to view scenes.

Details (from the [pull request](https://github.com/castle-engine/castle-engine/pull/166)):

- Support for weighted mesh, by interpolating values between bone timelines.
- Make weighted mesh work with deform timeline.

- Additional frames for better transition, this will make animation more accurate in certain situation (rotation and non-linear interpolation types) in exchange for longer load time and more memory consumption.

- Non-linear interpolation type (Bezier curve) for weighted mesh (both bone timeline and deform timeline).

- Add deprecated warning to skinnedmesh attachment.

Limitations:

- Due to the way we handle weighted mesh (by baking every transformations, including bones, into TCoordinateInterpolatorNode), we cannot have a mix of weighted mesh attachments and other types of attachment in the same slot.
