Comments (11)
Nope, sorry :( It's the reason why I wanted to switch to spine-ts, because the original spine-js also had no meshes (due to canvas rendering)
from phaser-spine.
Ah ok, as I thought. Thanks for confirming!
from phaser-spine.
Im using the last released version and Im having errors using meshes with canvas rendering, before that I was using Phaser 2.6.2 and Phaser Spine 2.2 and it worked fine using canvas, but I started to update both Phaser and Spine and isnt working. Is something Im doing wrong or it has to do with Phaser removed Pixi features? Is there a solution? Thanks
from phaser-spine.
Are you trying out the master branch of the spine-ts one?
from phaser-spine.
yeah I tried, it doesnt throw me errors but the spine with meshes is not rendering completely just some parts of the spine (with meshes though), also it gives me a lot of problems with positioning and scales. With Phaser-Spine 2.2 and Phaser 2.6.2 it works perfectly in Canvas (and with similar bugs in WebGl).
from phaser-spine.
So using the master branch with spine 3.4.02 export, and the spine-ts with spine 3.6+ export still gave you problems?
from phaser-spine.
My test were using both master branch and spine-ts with spine 3.2.01. I will try with 3.6 to see if I still have problems.
from phaser-spine.
I tested with both spine-ts with 3.6+ and master branch with spine 3.4.02 using canvas, the good news is that it doesn't throw me errors this time in both cases, but the meshes are still not rendering, I see the spine running but without images that have meshes.
from phaser-spine.
Hmmm.. I thought the spine-ts branch with 3.6 was ok displaying WebGL stuff already... did you turn on triangle rendering?
from phaser-spine.
with triangle rendering in the ts-branch with both WebGL and canvas works, there is a way that can work without using the triangle rendering? Also scaling the spines doesn't work properly, also in WebGL positioning doesn't work.
Update: in webgl the meshes works without triangle rendering, I check the code and the triangle rendering is just for Canvas set, I used this time Spine 3.4.02 for the ts branch. The bad thing of triangle rendering is that there are little transparent lines strokes in each triangle.
from phaser-spine.
I found an ugly hack to get rid of those "little transparent lines strokes in each triangle", draw twice with a slight Y offset. After
this.drawTriangle(renderSession, texture, x0 / res, y0 / res, u0, v0, x1 / res, y1 / res, u1, v1, x2 / res, y2 / res, u2, v2);
add this to draw again
this.drawTriangle(renderSession, texture, x0 / res, (y0 / res)+.1, u0, v0, x1 / res, (y1 / res)+.1, u1, v1, x2 / res, (y2 / res)+.1, u2, v2);
from phaser-spine.
Related Issues (20)
- Phaser 3? HOT 4
- webpack import 'phaser-spine' HOT 2
- set duration for animation
- game.load.spine is not a function
- Phaser 2.6.2 and the "rotated" property
- How to set spine alpha?
- how to change the tint of spine object? HOT 5
- Disabling inherit scale doesn't work HOT 3
- Display issues when parameter triangleRendering is false HOT 3
- Pause spine object? HOT 3
- Playing multiple animations together HOT 2
- spine-ts branch: mip maps not supported
- Typo in spine.SkeletonData.findSlot()
- DrawOrder bug - Sometimes not working in Phaser (but appears to work in Editor) HOT 1
- [spine-ts] Wrong Y-Position of Origin is Rendered HOT 2
- FlipX not working in WebGL renderer
- How to Clean Track or better return to previous state
- [spine-ts] Does it support color tint and alpha tint? HOT 1
- PhaserGame.add.spine( x, y, key) raise TypeError: points is undefined HOT 1
- Is it possible change altas
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phaser-spine.