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

TextureAtlas region not working in Albeto StandardMaterial3D, and pixel values of texture are broken #95823

Closed
djkato opened this issue Aug 19, 2024 · 3 comments

Comments

@djkato
Copy link

djkato commented Aug 19, 2024

Tested versions

image
v4.2.2.stable.fedora [15073af]

System information

Godot v4.2.2.stable (15073af) - Fedora Linux 40 (Workstation Edition) - Wayland - GLES3 (Compatibility) - AMD Radeon Graphics (radeonsi, renoir, LLVM 18.1.6, DRM 3.57, 6.10.4-200.fc40.x86_64) () - AMD Ryzen 5 7530U with Radeon Graphics (12 Threads)

Issue description

The texture atlas doesn't work as albeto texture map neither set programatically through script nor through gui. Also, the pixels of my pixel art are completely mis-colored. I got my pixel art sprite sheet from https://piskelapp.com, exported as atlas png.

Steps to reproduce

  1. export from piskelapp random pixel art atlas
  2. create characterBody3d > MeshInstance3D
  3. atlas texture in mesh material albeto
  4. try to set region of mesh

Minimal reproduction project (MRP)

MRP-atlastexture.zip

@AThousandShips
Copy link
Member

This is a limitation that is undocumented, AtlasTexture only works in specific contexts, see also:

@AThousandShips
Copy link
Member

AThousandShips commented Aug 20, 2024

Thank you for reporting, this is a missing feature and the proposal is tracked here:

Consolidating there

@AThousandShips AThousandShips closed this as not planned Won't fix, can't repro, duplicate, stale Aug 20, 2024
@Calinou
Copy link
Member

Calinou commented Aug 20, 2024

Also, the pixels of my pixel art are completely mis-colored.

Set the compression mode for the source image to Lossless in the Import dock.

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