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

Converted images not displaying correctly #35

Open
wewewer123 opened this issue Feb 17, 2023 · 10 comments
Open

Converted images not displaying correctly #35

wewewer123 opened this issue Feb 17, 2023 · 10 comments

Comments

@wewewer123
Copy link

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)

@TurtleP
Copy link

TurtleP commented Feb 17, 2023

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

@wewewer123
Copy link
Author

wewewer123 commented Feb 17, 2023

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.

@TurtleP
Copy link

TurtleP commented Feb 17, 2023

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
Copy link

TurtleP commented Feb 17, 2023

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.

@wewewer123
Copy link
Author

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.

@TurtleP
Copy link

TurtleP commented Feb 17, 2023

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

@wewewer123
Copy link
Author

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
Copy link
Author

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

@TurtleP
Copy link

TurtleP commented Feb 17, 2023

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

@wewewer123
Copy link
Author

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

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

2 participants