-
Notifications
You must be signed in to change notification settings - Fork 823
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Texture: Setting vertex UV coordinates doesn't take into account the potential frame of SubTextures #1089
Comments
Hey Aurélien! You're right, this would be ideally fixed right at the core of Starling. I wasn't aware of that limitation — but, on the other hand, that Could you do me a favor and also post a small pseudo-unit test? I.e. some code that produces a specific output, and the values it ought to print out instead? So that I'm sure I'm looking at the right thing. Thanks in advance! |
Sorry for the late response Daniel.. 🙄
Not a big deal, you already did a massive work to hide so much complexity for us - which is really appreciated!
Sure! Will do it as soon as I find the time. I also wanted to try implementing this right away in Starling but I don't have the right to access the archive you are mentioning here: https://github.com/Gamua/Starling-Framework/blob/master/tests/README.md Can you give me access to it? |
Thanks for the update, Aurélien! No worries, look into it only when you've got the time. It's strange that you can't access that link! Google claims it should be all public. That should work, hopefully! 😄 |
Remove from mailing please!
…________________________________
Van: Daniel Sperl ***@***.***>
Verzonden: Wednesday, October 27, 2021 3:04:29 PM
Aan: Gamua/Starling-Framework ***@***.***>
CC: Subscribed ***@***.***>
Onderwerp: Re: [Gamua/Starling-Framework] Texture: Setting vertex UV coordinates doesn't take into account the potential frame of SubTextures (#1089)
Thanks for the update, Aurélien! No worries, look into it only when you've got the time.
It's strange that you can't access that link! Google claims it should be all public.
But since there's an abundance of sharing services nowadays, I simply uploaded it here: https://web.tresorit.com/l/YCpuP#RahnBNC63NOzyYpNtIMGwg
That should work, hopefully! 😄
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub<#1089 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAVBLWCBKRQ3EF44BNKPC6DUJABG3ANCNFSM5F64ATGQ>.
Triage notifications on the go with GitHub Mobile for iOS<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675> or Android<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
|
@maxime, you can click on the "unsubscribe" button at the bottom of every email from GitHub! I don't think it's possible for me to unsubscribe you from this list. |
Hey Daniel,
I recently discovered that the UV mapping of textures part of an atlas (with frame mode active) doesn't fully natively work. I noticed that while trying to implement a missing feature in
DragonBonesAS
: DragonBones/DragonBonesAS#94 - this might have been the issue the team faced when trying to implement it back then.Please tell me if you think it's worth integrating in vanilla Starling - I can try to do a pull request then.
Workaround
Here is an utility method that supports
SubTexture
with the framing capability:Note: the problem with this method is the fact that if you get the coordinates afterwards you won't get the value you have set at the first place. This might be confusing... Another option would be to fix this even deeper in the rendering logic or implement the reversed logic in the getter.
The text was updated successfully, but these errors were encountered: