-
-
Notifications
You must be signed in to change notification settings - Fork 21k
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
LargeTexture.get_data() always returns null #22457
Comments
Can anyone still reproduce this bug in Godot 3.2.2 or any later release? If yes, please ensure that an up-to-date Minimal Reproduction Project (MRP) is included in this report (a MRP is a zipped Godot project with the minimal elements necessary to reliably trigger the bug). You can upload ZIP files in an issue comment with a drag and drop. |
I forgot that I submitted this one ;) I remember that eventually I've found a workaround, which later turned out to be a correct solution (my experiments with merging textures would produce a wrong result). I will try to recreate this in the next couple of days. If you don't hear back from me, consider it fixed ;) |
Unfortunately, it still doesn't work, just checked on Godot v3.2.2.stable.official on Linux. I think I figured out a simpler example:
This causes |
We were discussing this with @reduz but it's unclear what use case Removing |
The idea here was to combine several textures into a single one. While eventually I figured out that this is not a correct solution (instead, I should create a 3D sprite with the smaller texture), the problem in general remains. I've used Is there another way to combine several textures in Godot? If the method |
You can use blit_rect() in Image class. |
Godot version: v3.0.6.stable.official.8314054
OS/device including version: Linux Pop!OS 17.10 (artful)
Issue description:
I've created a LargeTexture instance and added 2 textures to it. Then I've tried to set this texture as camera's environment panorama. I got a black panorama instead. When I've set a StreamTexture (
load()
) it worked fine.Steps to reproduce:
Here is a code sample from my project (scene with a camera, method
_ready
):Output:
Note: camera uses its own environment (overwriting the default environment of the project). As you can see,
lt.get_data()
returnsnull
, but that was not a problem before (I've created another project, where I use the same setup for LargeTexture and use it for a TextureRect; there I've also got anull
, but the texture worked as expected).Minimal reproduction project:
The text was updated successfully, but these errors were encountered: