Skip to content
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

Bone animations invisible on android #26933

Closed
Asedi opened this issue Mar 11, 2019 · 10 comments
Closed

Bone animations invisible on android #26933

Asedi opened this issue Mar 11, 2019 · 10 comments

Comments

@Asedi
Copy link

Asedi commented Mar 11, 2019

Godot version:
3.1 RC1

OS/device including version:
Android 4.4.4

Issue description:
Hello. I have got problem with my simple bone animation using AnimationPlayer, Skeleton2D and body parts as Polygons2D on my android phone. "Head" of the character and his legs are Polygons2D. Simply, animated legs are just invisible. On my windows pc it's working fine. I'm using GLES2 and my phone is HTC DESIRE 620. I can check it on newer device if it's needed,
Windows 7
Windows
Android 4.4.4
Android

@vbousquet
Copy link

vbousquet commented Mar 30, 2019

Hi, I can confirm the bug. Skeleton2D works fine on Windows 10, but shows nothing on some Android devices. Additional informations:

  • Version is 3.1 final
  • The bug only happens in the GLES2 renderer; switching to GLES3 solve this.
  • The bug does not appear on all devices; works fine on Google Pixel C with Android 8.1.0, but not on Samsung A8 (SM-A530F) with Android 8.0.0
  • My animation use internal vertices (same setup as the 2d deform mesh in the docs).

@akien-mga
Copy link
Member

Is this still reproducible in the latest 3.2 builds?

If so, can you attach a project that triggers the issue?

@akien-mga akien-mga removed this from the 3.2 milestone Jan 15, 2020
@Asedi
Copy link
Author

Asedi commented Jan 15, 2020

Unfortunately my project is gone propably and I’m using IOS now so can’t help with it.

@vbousquet
Copy link

I have just made the test again on the Samsung A8 (SM-A530F):

@lawnjelly
Copy link
Member

This should be checked with 3.2.4 beta 1 onwards, as it may be fixed by 2d software skinning in unified batching.

@kyoz
Copy link

kyoz commented Apr 27, 2021

I'v the same problem with GLES2 on 3.2. GLES3 is working but get some weird color.

Godot 3.3 seem fixed this, but i got the bone rotation problem. You sound give it a try

@lawnjelly
Copy link
Member

lawnjelly commented Apr 27, 2021

Godot 3.3 seem fixed this, but i got the bone rotation problem. You sound give it a try

If you have a bone rotation problem, please post an issue with a minimum reproduction project so I can fix it. There are some differences in the methods of skinning between the hardware and software, I've tried to work through the cases.

2D software skinning was introduced in 3.3, so if you have hardware that didn't support hardware skinning (e.g. some Android) then you should upgrade to 3.3.

@kyoz
Copy link

kyoz commented Apr 29, 2021

Hi @lawnjelly , i'v tried to create a minimum reproduction project but it work just correctly. Doesn't know why bone in my pj got wrong rotation. I'v tried it again and create an issue if i'v found any problem.

Thank you so much ❤️ :

@kyoz
Copy link

kyoz commented May 1, 2021

This is some how relative to #48348

In Godot 3.3 rendering/2d/use_software_skinning is enabled by default and it help rendering correctly on android device. But turn it on will cause rotation problem with Skeleton2D Bones

@kyoz
Copy link

kyoz commented May 18, 2021

Tested on 3.3.1-rc2 and this issue is fixed

@akien-mga akien-mga added this to the 3.3 milestone May 18, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants