Blog: spine-ts - one runtime to serve all your HTML5 needs!
Please give it a try and spread the word!
Bạn đang xem trang 1 / 1 trang
Mario
4.5 years ago
-
Mario - Bài viết: 2500
Erika
OMG I LOVE YOUFor our final trick, we've created an extremely easy to use widget that allows you to embed Spine animations directly on your website, with zero coding. Just include the spine-widget.js script, add a div or any other element to your site, give it the class spine-widget and specify the .jsonand .atlas file and the animation you want to play.

This is awesome! I read the overall article and it's great

*Going to check all the magic tricks in the last link*
---EDIT
I bluntly rewrote "bunny" instead of the spineboy, then added a skin command and changed the animation, could only make one out of 3 work Q.Q (DUH) and that little guy has artifacts around its parts where there should be a little alpha. I bet the 1/3 working is completely my fault but the artifacts? are there any best practices for exporting the json?
artifactss.png
Bạn không được cấp phép để xem tập tin đính kèm trong bài viết này.
4.5 years ago
-
Erika - Bài viết: 2819
Nate
Are you using premultiplied alpha for your texture atlas?
4.5 years ago
-
Nate - Bài viết: 10726
Mario
Erikari, please send me all the things so I can fix whatever is broken! Artefacts are likely due to premultiplied alpha atlas (which is supported but needs to be told to the widget).
4.5 years ago
-
Mario - Bài viết: 2500
Erika
Uhm I don't remember if I did, I exported that file quite some time ago S: sent the file to <removed>
(I forgot to add it's a 0.3 scaled version of the original if that influences anything in any way)
(I forgot to add it's a 0.3 scaled version of the original if that influences anything in any way)
4.5 years ago
-
Erika - Bài viết: 2819
dshuta
great work esoteric! i just purchased spine pro a couple of days ago, and this is a wonderful little surprise after the 3.4 recent release. spine feels like it has so much enthusiasm and momentum to it, excited to be part of the spine horde.
4.5 years ago
- dshuta
- Bài viết: 4
nimbling
Woohoo! THANKS!
4.5 years ago
-
nimbling - Bài viết: 177
chrismweb
Was glad to see this on github!
Also glad to see Mario came to the conclusion that Typescript is probably the best "javascript version" to use for someone coming from Java.
I make a ton of small, stupid errors when I code, that in javascript can take forever to track down (a spelling mistake is valid, it just creates a new variable, 100 functions inside each other are valid "classes", the language seems almost completely unstructured, but then again it's still roughly the same from 1996).
But I had also been concerned that before, all the javascript runtimes didn't support any of the mesh animation, so had been hesitating using those features in Spine. Now I can experiment
Also glad to see Mario came to the conclusion that Typescript is probably the best "javascript version" to use for someone coming from Java.
I make a ton of small, stupid errors when I code, that in javascript can take forever to track down (a spelling mistake is valid, it just creates a new variable, 100 functions inside each other are valid "classes", the language seems almost completely unstructured, but then again it's still roughly the same from 1996).
But I had also been concerned that before, all the javascript runtimes didn't support any of the mesh animation, so had been hesitating using those features in Spine. Now I can experiment

4.5 years ago
-
chrismweb - Bài viết: 135
Nate
If you haven't seen it, check out the new demos page:
Spine: Demos
Also see the spine-ts docs for the standalone demo files so you can easily experiment.
Spine: Demos
Also see the spine-ts docs for the standalone demo files so you can easily experiment.
4.5 years ago
-
Nate - Bài viết: 10726
Erika
Oh I missed those! They are so powerful! O:Nate đã viết:If you haven't seen it, check out the new demos page:
Spine: Demos
Now I can finally make stretchyman into a fine ballerina:

I like the fact that one can play around with them in the browser

4.5 years ago
-
Erika - Bài viết: 2819
Nate


4.5 years ago
-
Nate - Bài viết: 10726
Erika
That is SO good one could actually make the next pop music video with it. I hope someone will. (Mario posted it in the OT section XD) Working at Esoteric Software has its funny moments 

4.5 years ago
-
Erika - Bài viết: 2819
chrismweb
Very nice! Can't wait to experiment, thanks for the TS demos
(and tell Mario thanks
)


4.5 years ago
-
chrismweb - Bài viết: 135
nimbling
Could the canvas version be extended to use SVG?
Html can natively render svg, but there are people converting svg to mesh, too - would that in-between step make it more feasible?
(like this one, for unity: https://www.assetstore.unity3d.com/en/#!/content/38258 )
Html can natively render svg, but there are people converting svg to mesh, too - would that in-between step make it more feasible?
(like this one, for unity: https://www.assetstore.unity3d.com/en/#!/content/38258 )
4.5 years ago
-
nimbling - Bài viết: 177
Mario
The problem with SVG is that it's extremely slow to render actually (if you want 60FPS animation and not just a static image), plus it doesn't quite support the image/mesh rendering we require (textured meshes). So, I'm afraid it's very unlikely SVG rendering will happen.
4.5 years ago
-
Mario - Bài viết: 2500
nimbling
Yes, I understand that part, though my current hopes are on the conversion part:
SVG, in my mind, is "just another vector format" so I guess I should rephrase my question as
"can we import / convert some kind of vector format to mesh in Spine" ?
I'd love to see an import path for SVG's like the linked Unity asset provides, they support making meshes of the SVG.
These, I hope, could then be textured in Spine (if needed).
SVG, in my mind, is "just another vector format" so I guess I should rephrase my question as
"can we import / convert some kind of vector format to mesh in Spine" ?
I'd love to see an import path for SVG's like the linked Unity asset provides, they support making meshes of the SVG.
These, I hope, could then be textured in Spine (if needed).
4.5 years ago
-
nimbling - Bài viết: 177
Nate
Currently the Spine editor only works with raster images. At runtime, you could use the skeleton data and draw SVG instead of images.
4.5 years ago
-
Nate - Bài viết: 10726
Mark topic unread
• Bạn đang xem trang 1 / 1 trang
Quay về Editor
- Thời gian được tính theo giờ UTC