-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
3021ef9
commit 155c2d5
Showing
1 changed file
with
52 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
--- | ||
title: PixiJS Joins the Spine 4.2 Physics Revolution! π | ||
description: Elevate your animations with Spine 1.1.0 and the revolutionary physics features of Spine 4.2, now fully integrated with PixiJS v8. | ||
slug: pixi-js-hearts-spine | ||
authors: | ||
- name: GoodBoyDigital | ||
title: PixiJS Creator | ||
url: https://github.com/GoodBoyDigital | ||
image_url: https://github.com/GoodBoyDigital.png | ||
tags: [PixiJS, Spine, WebGL, WebGPU, Animation] | ||
hide_table_of_contents: true | ||
keywords: ['PixiJS', 'Spine', 'webGL', 'webGPU', '2D animation', 'JavaScript graphics', 'game development'] | ||
--- | ||
|
||
We have exciting news for all animation enthusiasts and game developers! The Spine team has just smashed it out of the park with the release of Spine 4.2, which includes some truly great new features. The best part for us PixiJS users? We can start leveraging these remarkable features today in both v7 and v8! | ||
|
||
<!--truncated--> | ||
|
||
For those unfamiliar, Spine is the standard for creating stunning 2D animations. It offers an intuitive editor and a multitude of runtimes to ensure that your animations can be utilized across various platforms. PixiJS has supported Spine for almost as long as both have existed (around 10 years)! Personally, we have been shipping games with Spine for about that long as well. | ||
|
||
Initially, we maintained our own player. This worked well, but as Spine evolved and new releases were introduced, we had to invest considerable time and energy to modify our custom player. In the past year, the Esoteric team has been managing the v7 version of the player after PixiJS made the initial implementation on top of their excellent HTML5 runtime. This means that as these incredible updates are released, the PixiJS community can use them almost immediately! | ||
|
||
Here are a few of the exciting new features: | ||
|
||
### ποΈββοΈ Physics in Spine | ||
|
||
Spine 4.2 revolutionizes animation with built-in physics, allowing bones to move naturally by simulating real-world physics. This means: | ||
- **Automatic Secondary Motion**: Save time and enhance your animations with automated movement for hair, clothing, and more. | ||
- **Dynamic Movement**: Enjoy fluid and realistic physics that respond to character movements and animations. | ||
|
||
### π Attachments | ||
|
||
- `addSlotObject(slotName, object)` | ||
- `removeSlotObject(slotName)` | ||
- `getSlotObject(slotName)` | ||
|
||
You can now attach any PixiJS Container to a slot in your animation with a simple-to-use API. | ||
|
||
### ποΈ v8 Spine Player Beta | ||
|
||
We have not forgotten about v8! Just as we engineered v8 with the goal of being the fastest WebGPU (and WebGL!) renderer available, we applied this same focus to the v8 implementation of Spine. Here are some impressive statistics: | ||
|
||
- **50% Faster**: Enjoy significant performance improvements, making it over 50% faster than the previous v7 version. | ||
- **50% Less Memory**: We've optimized memory usage, reducing it by over 50% compared to the current v7 version. | ||
|
||
We are proud to say that this is the fastest way to render Spine animations on the web π. Get ready to create smooth, high-performance animations with ease. | ||
|
||
We plan on handing this implementation back over to the Spine team once we have dotted all the i's and crossed the t's. The last missing feature is the dark-tint property, which is not currently taken into account when rendering in v8. Other than that, all other features are present. If you are not using dark-tint, then this version will work great on v8; we are already using it in production for our games! | ||
|
||
## π² Stay Connected | ||
|
||
Follow [Doormat23](https://twitter.com/Doormat23) and [PixiJS](https://twitter.com/PixiJS) on social media for the latest updates. Join our vibrant community on [Discord](https://discord.gg/nrnDP9wtyX) for real-time discussions and support. |