Sprite Engine Problem

SGDK only sub forum

Moderator: Stef

Post Reply
Joe Musashi
Newbie
Posts: 1
Joined: Sat Oct 13, 2018 10:08 pm

Sprite Engine Problem

Post by Joe Musashi » 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:
SGDK.134.png
SGDK.134.png (1.79 KiB) Viewed 26 times
With the latest SGDK master from GitHub it gets a bit better, but there still seem to be two 32x32 sprites missing:
SGDK.master.png
SGDK.master.png (1.9 KiB) Viewed 26 times
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!
Attachments
SGDK_SpriteTest.zip
(6.36 KiB) Downloaded 1 time

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest