-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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
Polygon2D texture not displaying correctly. #25049
Comments
They are not really meant to work together. AtlasTexture only really works for sprites and UI, not meshes or polygon. It could probably hacked in Polygon by detecting its an atlas and ajusting the UVs I guess... |
Oh, wondering why the UV/Poly editor handles it. Thanks. It would be very useful if it works out. The new 2D mesh invites texture parts over sprite sheets, and we use Texture Packer to try to make very tightly packed atlas textures. I'm not sure of the backend rendering performance, but I'm only assuming that it would still be an issue to load thousands of little textures rather than a few dozen larger ones. We'd really like to make use of mesh warping on these atlas parts to solve very difficult and time consuming blending issues on our characters. |
In any case, not urgent for 3.1 |
@avencherus you can now draw on a single image and then use the polygon drawn tool from the UV editor to make your character, no need for atlas |
@reduz Thanks, had a blind spot there, hadn't actually considered that. XD I think since most the textures are intended to be assigned to Sprites. Should be able to re-organize parts into their own texture for polygons and maybe write an import tool. |
Still reproducible in the current master branch. |
Radial TextureProgress still shows whole Atlas Texture instead of selected region, but only on values |
Still valid in 3.2.4 beta4 |
Still valid in 3.4.4 |
Related to #34837. |
Should this be solved by adding support for AtlasTexture in Other solution is to modify the editor to show the whole texture instead of the AtlasTexture part of it. Ie. what you |
I see, I was wrong. Polygon2D constructs a mesh internally and draws it. Line 398 in 0c45ace
I think this is needed for multiple polygons and bone support, but it means that the support has to be explicit 👀 |
|
Godot version:
9c17688
OS/device including version:
Win10 64bit
Issue description:
When using a atlas/region texture resource for the polygon texture, it works fine in the polygon editor, but shows the whole source texture in the canvas editor and in game.
From this:
To this:
Steps to reproduce:
Minimal reproduction project:
3.1 Polygon Texture Issue.zip
The text was updated successfully, but these errors were encountered: