gbadev.org forum archive

This is a read-only mirror of the content originally found on forum.gbadev.org (now offline), salvaged from Wayback machine copies. A new forum can be found here.

DS development > sprite converter for DS

#52651 - Onori - Thu Sep 01, 2005 6:08 pm

Hi,
I started ds dev today and tried as a first test to show a simple sprite.
I used the libnds exemple (in devkitPro) but I didn't find a gfx converter for DS anywhere. I tried some gba converters but without any success :/ in 1D, 2D, 256 colors or 16bits mode.
can anybody explain me how to convert a sprite from a bitmap (.bmp) then show it on ds using hardware sprite ?
thanks. :)

#52652 - tepples - Thu Sep 01, 2005 6:12 pm

Each of the Nintendo DS's 2D cores resembles a GBA PPU. Try using the same graphic converters that you have used on GBA.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#52653 - Onori - Thu Sep 01, 2005 6:13 pm

Onori wrote:
Hi,
I tried some gba converters but without any success :/

#52656 - tepples - Thu Sep 01, 2005 6:23 pm

I guess I must have glossed over that because you didn't specify: What kind of "without any success" are you talking about? Are you moving from the GBA to the DS, or are you starting out on the DS as your first Nintendo handheld system?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#52677 - Onori - Thu Sep 01, 2005 9:06 pm

I already coded on gba, but it was working, maybe I don't use the correct setting for 1D mode or 2D mode.
can someone tell me an utility and some line of code that show the sprite correctly, I will try to see where I'm wrong.

#52720 - Onori - Fri Sep 02, 2005 9:47 am

ok, it work, I just missed the "DISPLAY_SPR_1D_LAYOUT" in videoSetMode :)