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

[Bug] Textures are heavily distorted when packed #7

Open
Techhz opened this issue Aug 23, 2021 · 7 comments
Open

[Bug] Textures are heavily distorted when packed #7

Techhz opened this issue Aug 23, 2021 · 7 comments

Comments

@Techhz
Copy link

Techhz commented Aug 23, 2021

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

@kngrektor
Copy link
Owner

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

@Techhz
Copy link
Author

Techhz commented Aug 24, 2021

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.
textOut

@kngrektor
Copy link
Owner

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.

@Identity-labs
Copy link

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

@Isigar
Copy link

Isigar commented May 22, 2022

Hi :) Try A8R8 and its still cut only part of image :(

image

Here source image

rcore_logo_dark

And here in zip generated YTD file. Is there anything what can I do?

rcore_logo_dark_debug.zip

@xenicle
Copy link

xenicle commented Dec 7, 2023

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 ?

@unnick94
Copy link

unnick94 commented Feb 7, 2024

D3DFMT_A8 is not correct working
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants