godot icon indicating copy to clipboard operation
godot copied to clipboard

TextureRect with Tile mode does not work with AtlasTexture

Open williamd1k0 opened this issue 6 years ago • 5 comments

Godot version:

Godot 2 and 3

OS/device including version:

Windows 10 x64

Issue description:

TextureRect (and TextureFrame in Godot 2) with Tile mode does not work with AtlasTexture. I tried with both GLES2 and GLES3.

2018-07-26 03_20_47-godot engine - waffle scanner _ 2018-07-26 03_40_51-godot engine - waffle scanner _

I also tried to search existing issues but I only found this one #5660, is this related?

Steps to reproduce:

Minimal reproduction project:

TextureTile.zip

williamd1k0 avatar Jul 26 '18 06:07 williamd1k0

Note: All STRETCH_* modes work with the AtlasTexture except the STRETCH_TILE.

williamd1k0 avatar Jul 26 '18 06:07 williamd1k0

I'm adding here a minimal reproduction project because it's not working with draw_texture_rect( Texture texture, Rect2 rect, bool tile) too.

TextureTile.zip

williamd1k0 avatar Jul 29 '18 19:07 williamd1k0

[2020] I currently needed this for a project i'm working on for the RaspberryPi 4, and I can confirm this still doesn't work under Godot 3.2.stable and beyond.

This would be quite useful when using both internal (Import/TextureAtlas) and external (TexturePacker / FreeTexturePacker) texture packing solutions for optimization purposes aimed at low-end, mobile, SoC & IoT devices and when you're not necessarily using tilemap nodes / tileset resources in your workflow.

Jose-Moreno avatar Jul 12 '20 22:07 Jose-Moreno

https://github.com/godotengine/godot/issues/38021 may be a duplicate of this one. I hit it too.

joakin avatar Sep 28 '20 16:09 joakin

Still an issue in Godot 4b7

yhwhey avatar Dec 05 '22 23:12 yhwhey

Any updates on this?

vvvvvvitor avatar May 05 '23 18:05 vvvvvvitor

I believe I also hit this issue in 4.1.1 still. Added an AtlasTexture to a TextureRect and see Tile for Strech Mode behaving the same as Scale.

hawkerm avatar Oct 04 '23 00:10 hawkerm

This also presents in 4.1.2. Control nodes just really hate Sprite Sheet for some reason.

EviTRea avatar Oct 07 '23 08:10 EviTRea

Still an issue as far as I can tell in 4.2.

When using control nodes, is there a workaround for tiling? Pixel art UI looks pretty awful stretched lol. I suppose I could cut out all of my textures that I want to tile into individual pngs

LeifintheWind avatar Apr 15 '24 04:04 LeifintheWind

Confirming it's still present in 4.2.2.

inhalt120g avatar May 02 '24 11:05 inhalt120g

still an issue in 4.3.rc1 :(

Saint-XIV avatar Aug 01 '24 06:08 Saint-XIV