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.

Graphics > Usenti conversion of devkitpro example picture

#109703 - Aeonitis - Mon Nov 20, 2006 2:58 pm

I was trying to understand the process of converting images (especially 256 color bitmaps) and i thought i could start on replacing actual pictures located in the NDS Examples tutorial available with devkitpro...

to be more detailed it is the BG_ROTATION demo available in your default folder at "C:\devkitPro\Projects\Tryouts\nds\Graphics\2D\BG_Rotation" and i am trying to re-compile it after i have replaced the images ".bin"s and palettes with my own picture but it ends up similarly fuzzy to these pictures:-

This is another person's pictures but they are the same thing that happen to me.... (YES I DO REALISE THAT's GBA, not Nds but that's not the point)

http://img.photobucket.com/albums/v281/lssscrules/Gba.png
but it's supposed to look like
http://img.photobucket.com/albums/v281/lssscrules/killer.jpg

please help me, and thank you for your time in reading this!
_________________
"To be or not to be, --that is the question:--
Whether 'tis nobler in the mind to suffer
The slings and arrows of outrageous fortune
Or to take arms against a sea of troubles,
And by opposing end them?"

-- From Hamlet (III, i, 56-61)

#109778 - tepples - Tue Nov 21, 2006 5:32 am

Have you tried converting the image in tiled (not linear) mode? Which command line are you using to convert the image, or which GUI program with which options?
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#109824 - Aeonitis - Tue Nov 21, 2006 2:26 pm

GUI: Usenti version 1.7.6
Original picture file: drunkenlogo.bmp (which is any picture i renamed to be used in this case), 24 color Bitmap.

Options as shown below (pretty much the default options):-

pal (checked) - start=0, num=256
image (checked) - tiles(checked), bpp=8,cprs=none
Map(unchecked)
Tile Group - sqr,1,cstm(unchecked)
Area - as img (checked)
File - ...\Desktop\drunkenlogo.bin, type=Binary(*.bin), h file(checked), u16

So these options are displayed before i export them:-
pal: 0-256 [256]
img: tile, 8bpp, cprs: none
area: (0,0)-(308,276) [308, 276]
meta: 1x1 tiles (8x8 px)
map: -
files: drunkenlogo.h drunkenlogo.gbfs


even though the actual files exported (as i have seen) are
drunkenlogo.h, drunkenlogo.img.bin, drunkenlogo.pal.bin

and i rename the last 2 of these three files to fit the example in the "data" folder before i "make". i.e. to the names
drunkenlogo.bin & palette.bin

I am sorry i do not have a webspace to show the options on a picture but i will arrange one soon, appreciating your help tepples :)
_________________
"To be or not to be, --that is the question:--
Whether 'tis nobler in the mind to suffer
The slings and arrows of outrageous fortune
Or to take arms against a sea of troubles,
And by opposing end them?"

-- From Hamlet (III, i, 56-61)

#109892 - Cearn - Wed Nov 22, 2006 10:48 am

The BG_Rotation example uses a bitmap, not a tilemap, so switch the image-mode to bitmap. Also, 308x276 doesn't fit the DS screen; you need to resize the image beforehand, export only a portion of the image, or take care of the discrepancy on the NDS side of things.

#110271 - Aeonitis - Mon Nov 27, 2006 11:32 am

Thank you Cearn, sorry for the late reply but it has worked, thanks guys...
_________________
"To be or not to be, --that is the question:--
Whether 'tis nobler in the mind to suffer
The slings and arrows of outrageous fortune
Or to take arms against a sea of troubles,
And by opposing end them?"

-- From Hamlet (III, i, 56-61)