I am checking out LOVE and LUA in general and I seem to have some trouble with my png explosion sprites. Some of them work, some only display a black/white image with nothing in it. Am I missing something here? Is my libpng support broken or what? How can I fix this? If I do a release for windows (I'm developing in Archlinux), the problem is the same. Here is how that looks:
I believe this is a graphics card issue, probably a power-of-2 problem. Love pads images with empty space, so that they have an po2-size. This might be too large for your graphics card. Try making the image more squarish (by wrapping the long line of images into multiple lines).
JohnnyTheBoy wrote:a-ha! that worked like a charm, thanks for clearing that up. now how do I get these lines played in order ... but thats another topic.
cheers
What lines? If you're trying to draw an image that contains thin lines, you should try the various combinations of filtermodes and integer coordinates (linear and drawing at floor(x), linear and drawing at floor(x)+0.5, nearest and drawing at floor(x)...)
The image dimensions are too large for your GPU - you can check at runtime via love.graphics.getSystemLimit("texturesize"). If either the width or height of the image is larger than the maximum texture size, your GPU won't be able to use it.
For very low-end GPUs, the max texture size is usually 2048x2048 or 4096x4096.