Giter Club home page Giter Club logo

Comments (8)

skyne98 avatar skyne98 commented on June 10, 2024 3

@cloudhead, posted a draft pull request. This is my first pull request on GitHub, so sorry if something is done incorrectly! Waiting for feedback!

from rgx.legacy.

xla avatar xla commented on June 10, 2024 2

@cloudhead You can assign me to this, gonna need it anyway.

from rgx.legacy.

cloudhead avatar cloudhead commented on June 10, 2024

We did exactly this (the XNA way) for the shape2d pipeline, so should be pretty easy to port over to sprite2d. It is planned, but I don't know when it'll land. Would you want to take a stab at it?

from rgx.legacy.

cloudhead avatar cloudhead commented on June 10, 2024

For reference: https://github.com/cloudhead/rgx/pull/10

from rgx.legacy.

skyne98 avatar skyne98 commented on June 10, 2024

@xla, in case something goes wrong, I am ready to try to do it as well. Will be keeping my eye on the progress here 😉

from rgx.legacy.

skyne98 avatar skyne98 commented on June 10, 2024

I have some changes I can post as an early draft for the pull request. The new code supports full matrix transformations for sprites (rotation and scaling with origin). However, there are a couple of downsides, at the moment:

  • New coded crudely uses ultraviolet as a math library (as it seems to be the fastest and I use it for the personal projects)
  • Some more testing needs to be done in regards to correctness of the results, as well as performance

I think those issues can be resolved pretty quickly with some cooperation, providing RGX with some kind of proper sprite transform support. Looking forward to it!

from rgx.legacy.

cloudhead avatar cloudhead commented on June 10, 2024

Amazing! Looking forward to seeing these changes.

from rgx.legacy.

skyne98 avatar skyne98 commented on June 10, 2024

Ok, in this case I will post a pull request as soon as the single sprite rotation transform example code works out as expected!

from rgx.legacy.

Related Issues (12)

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.