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

[3.2.4 RC3] Texture Rect doesn't Render on iOS #46577

Closed
Tekuzo opened this issue Mar 2, 2021 · 6 comments
Closed

[3.2.4 RC3] Texture Rect doesn't Render on iOS #46577

Tekuzo opened this issue Mar 2, 2021 · 6 comments

Comments

@Tekuzo
Copy link

Tekuzo commented Mar 2, 2021

Godot version:

Godot 3.2.4 RC3

OS/device including version:

iPhone SE running iPhone OS 14.4
iPad 5th Generation Running iPad OS 14.4

Issue description:

I have a texture rect in a control node that I use as my health bar for the player.
The texture rect stretch mode is set to tile and I control the rect_size through code to dynamically show the player's HP.

Doing it this way works normally on Windows, Mac and Android. When I try to play the game on my iPhone or iPad after exporting to iPhone, opening xcode and running the project on my phone, the texture rect only shows as a black box the size of the texture rect.

When I switch the stretch mode from tile to scale it will render properly.

Steps to reproduce:
Canvas Layer -> Control -> Texture Rect -> Stretch Mode: Scale

Minimal reproduction project:

My setup to reproduce this glitch is a scene with a Canvas Layer -> Control -> Texture Rect

I have the texture rect stretch mode to Tile and it will render like the screen shot
IMG_0103

@Tekuzo Tekuzo changed the title Texture Rect doesn't Render on iOS [3.2.4 RC3] Texture Rect doesn't Render on iOS Mar 2, 2021
@Calinou
Copy link
Member

Calinou commented Mar 2, 2021

@Tekuzo Please upload a minimal reproduction project to make this easier to troubleshoot.

Also, which renderer are you using (GLES3 or GLES2)? Can you reproduce this on 3.2.3 or previous 3.2.4 RCs?

Alternatively, consider using a TextureProgress or ProgressBar node to display the player's health.

@Tekuzo
Copy link
Author

Tekuzo commented Mar 2, 2021

GLES2
I will build a sample project quickly

@naithar
Copy link
Contributor

naithar commented Mar 2, 2021

Do older versions (rc2, 3.2.3) has same issue or it's 3.2.4rc3 only?

@Tekuzo
Copy link
Author

Tekuzo commented Mar 2, 2021

3.2.3 did have the same issue and I didn't think anything of it then because 3.2.3 had this issue which is why I tried out 3.2.4 RC3

@naithar
Copy link
Contributor

naithar commented Mar 2, 2021

Does switching to GLES3 for iOS help?

@Tekuzo
Copy link
Author

Tekuzo commented Mar 4, 2021

Does switching to GLES3 for iOS help?

Unsure I didn't switch it to GLES3 as I have been unable to re-produce the bug outside of my project.

I have tried to create a minimal project to upload that features the glitch, and it renders every time, so it must be something else that is causing it to not render.

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

3 participants