EsotericSoftware / spine-runtimes

2D skeletal animation runtimes for Spine.
http://esotericsoftware.com/
Other
4.41k stars 2.91k forks source link

btw I have this three.js fork #359

Closed makc closed 8 years ago

makc commented 9 years ago

here. Developed as part of commercial project, but I have the permission to share it. It is basically does all (or almost all) what turbulenz does, and I will probably be fixing bugs there when they are found.

Take a look and let me know if you would be interested in pull request.

JaredSartin commented 9 years ago

Would love to see some support/demos for meshes/FFD! Also, the "not quite stable - for testing only" is unfortunate when it comes to these runtimes. Looks good for basic stuff though!

This would be PERFECT for an upcoming project.

makc commented 9 years ago

well the story is that I did this for a project where the guy had spine animations but wanted to use them in 3js scene. so I did this. I've never received any bug reports, therefor I assume it is not stable.

JaredSartin commented 9 years ago

Ok! Cool. I would love to use it, but have had some trouble with Mesh/FFD animations, was just hoping that was in place or "upcoming" but it sounds like it was a past project.

Thanks!

makc commented 9 years ago

it is indeed, and this issue was made in hope that this repo owners would become its foster parents, but apparently they aren't interested.

JaredSartin commented 9 years ago

I just put in a pull request - #383

mreinstein commented 9 years ago

@makc @JaredSartin it seems that newer versions of three.js cause some minor breakage. I tried upgrading three.js to version 72 (current stable) and the goblin skins don't toggle.

makc commented 9 years ago

do you have a stack trace or anything?

mreinstein commented 9 years ago

It doesn't throw any errors in the console, just prints the three.js version number THREE.WebGLRenderer 72

makc commented 8 years ago

@mreinstein sorry I forgot about you here :( well, I can confirm there is some sort of issue with r72, at the same time it goes away again with r73, so I am not sure there is anything to fix. I shall see in detail, just in case...

makc commented 8 years ago

seems there was the bug in three.js that they fixed in this commit.

NathanSweet commented 8 years ago

Sorry, we are a bit behind on servicing GitHub issues.

FWIW, I'm not super happy with the Turbulenz runtime. Drawing rectangles was fine enough, but only after I added a SpriteBatch class. Drawing meshes is a different story and appears quite difficult with the available APIs. I want a game toolkit that doesn't put so much between spine-js and WebGL. We already have the vertices, etc it should just be a matter of handing them off. Is that possible with three.js? If not, I prefer to hold out until we come across a more reasonable JavaScript library. If we do ever find that, we might even drop Turbulenz since it's basically just a simple demo and doesn't support all the features (meshes).

makc commented 8 years ago

I want a game toolkit that doesn't put so much between spine-js and WebGL. We already have the vertices, etc it should just be a matter of handing them off.

that's fine as long as you want to stay 2D, of course. the point of this threejs thing was that you could have spine animation within threejs 3D world, not merely underneath or on top of it.

makc commented 8 years ago

here would be an example of "handing off" the vertices to threejs, maybe, if you have them packed into Float32Array-s. if not, you might still be able to try and rely on duck typing pretendng to be THREE.Vector3-s, that may be possible as well...

bysreg commented 8 years ago

Searching for three.js spine runtime code. Is it still available. Seems the link at the first post does not work anymore

makc commented 8 years ago

Yes, but it should be still there in #383