sfillib icon indicating copy to clipboard operation
sfillib copied to clipboard

Larger Images Load Corrupted

Open SaturnSH2x2 opened this issue 8 years ago • 6 comments

Using this library, I tried loading images that were 792 x 1152 pixels in dimension. However, when I compiled and ran my program on my 3DS, the images came out distorted. However, when I resized said images to 75% the original dimensions (594 x 864 pixels) and ran my program on my 3DS, the images would load fine.

Is there any fix for this? Is it an issue with sf2dlib / sfillib, or could it just my code? Can it be attributed to the image libraries or citro3d? And if this is indeed an issue, could this be fixed in a later release?

SaturnSH2x2 avatar Aug 26 '16 21:08 SaturnSH2x2

I think the problem is that the 3DS's GPU can't handle textures bigger than 1024 pixels on either sides.

xerpi avatar Aug 26 '16 21:08 xerpi

So, a GPU problem? Alright. Thanks for replying, looks like I'll have to find a way around it.

SaturnSH2x2 avatar Aug 26 '16 23:08 SaturnSH2x2

Split the large image into a few smaller ones

xerpi avatar Aug 27 '16 14:08 xerpi

How would one go about splitting an image? Would you have to split the sf2d_texture, or the image itself while loading? There don't seem to be any pre-defined methods for this.

SaturnSH2x2 avatar Sep 11 '16 15:09 SaturnSH2x2

You have to split/divide the image manually, using an image editor/tool. Then load all the parts separately, each one into a sf2d_texture.

xerpi avatar Sep 11 '16 15:09 xerpi

Ah, I see. Thanks for the quick reply.

SaturnSH2x2 avatar Sep 11 '16 22:09 SaturnSH2x2