Sprite Engine Problem
Posted: Sat Dec 08, 2018 11:06 pm
Hi,
I'm trying to use the SGDK sprite engine to display large sprites and ran into the problem that some of the hardware sprites are not shown correctly. This could be related to viewtopic.php?f=19&t=2873. But of course it's perfectly possible that I'm doing it wrong.
I made a test program that draws a 288x64 pixel sprite. With SGDK 1.34 the result looks like this:
With the latest SGDK master from GitHub it gets a bit better, but there still seem to be two 32x32 sprites missing:
The source of the test program is attached below.
Flags for SPR_addSpriteEx() that I'm using are SPR_FLAG_AUTO_VISIBILITY | SPR_FLAG_AUTO_SPRITE_ALLOC | SPR_FLAG_AUTO_TILE_UPLOAD. I played with other combinations but had no luck.
I also tried to use only the VDP_ sprite functions to generate a big sprite out of hardware sprites manually, and that seemed to work. So in case it's an SGDK bug, it lies probably not within the VDP code.
Any ideas what could be the problem? Thanks in advance for having a look!
I'm trying to use the SGDK sprite engine to display large sprites and ran into the problem that some of the hardware sprites are not shown correctly. This could be related to viewtopic.php?f=19&t=2873. But of course it's perfectly possible that I'm doing it wrong.
I made a test program that draws a 288x64 pixel sprite. With SGDK 1.34 the result looks like this:
With the latest SGDK master from GitHub it gets a bit better, but there still seem to be two 32x32 sprites missing:
The source of the test program is attached below.
Flags for SPR_addSpriteEx() that I'm using are SPR_FLAG_AUTO_VISIBILITY | SPR_FLAG_AUTO_SPRITE_ALLOC | SPR_FLAG_AUTO_TILE_UPLOAD. I played with other combinations but had no luck.
I also tried to use only the VDP_ sprite functions to generate a big sprite out of hardware sprites manually, and that seemed to work. So in case it's an SGDK bug, it lies probably not within the VDP code.
Any ideas what could be the problem? Thanks in advance for having a look!