ytdtool
ytdtool copied to clipboard
[Bug] Textures are heavily distorted when packed
Tried on both Windows 10 & 11 Pro machines with same result.
Steps Taken: https://i.gyazo.com/74b36132546f08b37eee534cb8a055cb.mp4 Result: https://cdn.discordapp.com/attachments/877846456348844053/878997357373587466/unknown.png
Hi it'd be to have some files to reproduce the issue with.
In the meantime you could try other formats (e.x. put {"Format":32}
in a patchOut.png.json), you can find the valid formats here: https://github.com/kngrektor/ytdtool/blob/master/ytdtoolio/src/Utils.cs and their ids here https://docs.microsoft.com/en-us/windows/win32/direct3d9/d3dformat
Hi @kngrektor - changing the format to 32 resolved this issue for me. I will attach a PNG you can use for your debugging, feel free to close this.
It's worth to mention that 32 is A8B8G8R8 which takes 32bits per pixel, which is like 4x whatever I put as default (dxt5?). Storing everything as A8B8G8R8 is a good way to run out of texture memory and have overly long download times for no noticeable gain.
Same thing for https://cdn.discordapp.com/attachments/801403150917042197/974637811447783474/chu_ad_adobeBrickWall_B01.png
In A8R8 it's good But in DXT5 not
Texture don't have transparency so no need to use A8R8
Hi :) Try A8R8 and its still cut only part of image :(
Here source image
And here in zip generated YTD file. Is there anything what can I do?
Hi it'd be to have some files to reproduce the issue with. In the meantime you could try other formats (e.x. put
{"Format":32}
in a patchOut.png.json), you can find the valid formats here: https://github.com/kngrektor/ytdtool/blob/master/ytdtoolio/src/Utils.cs and their ids here https://docs.microsoft.com/en-us/windows/win32/direct3d9/d3dformat
Where did you put patchOut.png.json file ?
D3DFMT_A8 is not correct working