Comments (8)
@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.
@cloudhead You can assign me to this, gonna need it anyway.
from rgx.legacy.
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.
For reference: https://github.com/cloudhead/rgx/pull/10
from rgx.legacy.
@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.
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.
Amazing! Looking forward to seeing these changes.
from rgx.legacy.
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)
- Document shader compilation steps HOT 3
- Text rendering HOT 7
- Add a Changelog HOT 7
- Batch-based, cross-platform, language-agnostic API HOT 2
- docs.rs doesn't contain core module documentation anymore HOT 4
- Y-axis is Inverted HOT 4
- shapes example hangs
- Threaded example panics on Linux HOT 1
- shape2d circle API Inconsistency Issues
- Ability to create filled polygon HOT 5
- shape2d::Pipeline::resize is broken HOT 5
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 rgx.legacy.