Giter Club home page Giter Club logo

Comments (11)

AleBles avatar AleBles commented on May 17, 2024

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.

shibekin69 avatar shibekin69 commented on May 17, 2024

Ah ok, as I thought. Thanks for confirming!

from phaser-spine.

pzlewinski avatar pzlewinski commented on May 17, 2024

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.

shibekin69 avatar shibekin69 commented on May 17, 2024

Are you trying out the master branch of the spine-ts one?

from phaser-spine.

pzlewinski avatar pzlewinski commented on May 17, 2024

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.

shibekin69 avatar shibekin69 commented on May 17, 2024

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.

pzlewinski avatar pzlewinski commented on May 17, 2024

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.

pzlewinski avatar pzlewinski commented on May 17, 2024

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.

shibekin69 avatar shibekin69 commented on May 17, 2024

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.

pzlewinski avatar pzlewinski commented on May 17, 2024

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.

Alej-P avatar Alej-P commented on May 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.