tex3ds icon indicating copy to clipboard operation
tex3ds copied to clipboard

Converted images not displaying correctly

Open wewewer123 opened this issue 2 years ago • 10 comments

so I have 3 pngs I've ran trough the system. (I've tried both compression level 0 and 100 for the middle one) Screenshot (173) The left and right one worked fine, but when I have the middle one show (using LOVE Potion 2.4.1) it appears completely bugged. (The "Hi there how was class?" is from my program) IMG_8313 So I was hoping someone could help me understand why some of the pngs did work but some didn't? (I know for a fact that the .jpg.png at the end of the file name isn't messing with it because without it it also wouldn't work)

wewewer123 avatar Feb 17 '23 21:02 wewewer123

@wewewer123 this is probably the wrong repository to open the issue for, but I will ask: are you using lovebrew to convert the images and other assets? If so, make sure you're using the latest version of it.

TurtleP avatar Feb 17 '23 21:02 TurtleP

I am using the latest version of lovebrew, but the images need to be in t3x format for it to work, so I used the gpusprites example (which I thought was based on this, that's why I opened an issue here) to convert the image. Something else I noticed was that the output file size was a lot larger then for the other two images. So I presumed the issue had to do with the conversion.

wewewer123 avatar Feb 17 '23 21:02 wewewer123

I know that I did recently fix some texture issues in the internal code found by someone else recently, so I'm not sure if that's relevant, then (in terms of that bug being fixed). File size varies based on the amount of pixels and bit depth, so that's definitely not something to worry about (except running out of memory to load the images),

Could you try with the latest 3.0 pre release? I doubt anything would change, though, but do try it. If it doesn't fix it, then I'll have to cc @fincs on this one.

TurtleP avatar Feb 17 '23 22:02 TurtleP

Also, one other thing: attach the t3x files and original images in a reply, this way they can be analyzed to see what went wrong.

TurtleP avatar Feb 17 '23 22:02 TurtleP

If I want to test out the new 3.0 pre-release I'd have to change up the code, so that would take a bit.

wewewer123 avatar Feb 17 '23 22:02 wewewer123

You could at least do a minimal test case where you draw the images in question, which should suffice.

TurtleP avatar Feb 17 '23 22:02 TurtleP

I'll do that right now, also here's a drive folder with all the files in question: https://drive.google.com/drive/folders/1J9_X2YXwM9Lwxi3I7xGO0VaDwEzVGLmZ?usp=share_link

wewewer123 avatar Feb 17 '23 22:02 wewewer123

Also sorry to ask here but I couldn't find it: what's the new way to declare newImage() in LOVEPotion 3.0?

wewewer123 avatar Feb 17 '23 22:02 wewewer123

it's the same as LÖVE 12: love.graphics.newTexture(path)

TurtleP avatar Feb 17 '23 22:02 TurtleP

Well it's still the exact same results (didn't test the already working images because I presume those still work)

wewewer123 avatar Feb 17 '23 22:02 wewewer123