-
-
Notifications
You must be signed in to change notification settings - Fork 24
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
Issue with 32x8 textures #10
Comments
it works if the tile size is set to fixed one gob |
RSDuck@f3a1249 is what I've come with as a fix for it and I've been running this successfully for a while now in melonDS (though I haven't tested some things like mip maps). |
Hi, I also encountered this issue, with a 128x8 r8 texture (padded to 256b). Below is the corresponding TIC. Again, not sure whether if something is wrong.
Do you happen to remember what the x1.5 factor ( Finally, a possible workaround for those unwilling to build a modified version of deko3d: if (height <= 8) {
layout_maker.flags |= DkImageFlags_CustomTileSize;
layout_maker.tileSize = 0;
} |
Probably related: mpv-player/mpv#13909 (comment). |
This issue seems to be very weird. For some reason textures with a size of 32*8 pixels display wrongly. Instead of the right 16*8 pixels it reads from something else (it's noticable in situations where there are more textures around).
To reproduce it's enough to change this line in the textured cube example: https://github.com/switchbrew/switch-examples/blob/master/graphics/deko3d/deko_examples/source/Example04_TexturedCube.cpp#L189
to
here is the texture data I used:
Unbenannt.zip
This is the result:
Note that if the height is reduced to 4 pixels, everything works fine (except ofc that only the first 4 lines of the texture are used):
The texture transfer seems to work fine, I already tried retrieving the texture data from vram.
The text was updated successfully, but these errors were encountered: