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 > ??? to *.bin | Graphic Conversion

#89270 - hmbg - Fri Jun 23, 2006 11:21 pm

Hi,

I got to DS development with the Tutorial from PataterSoft(.info:-) and in that tutorial the using of *.bin Image Data is praised^^
So, they got me and I wanted to convert pix in Binary
Sooo...
First I used GbaBmp but it produces like kind of shit, shown on my screen in pink and green pixels, they seem to be something different than the original pic
So I wanted to use hConvert and gfx2gba but I develop for the DS on a Windows-PC and this Tool (hConvert) is only written for Mac and Linux.


So maybe someone of you knows about a (better) Tool for Bmp (or gfx in general) to Bin or C to Bin conversion. Important: *.bin Files export :-)

thx hmbg

#89385 - silent_code - Sat Jun 24, 2006 5:35 pm

hi!

use usenti (google for it) and (win)git! these are nice free tools i also use myself. they work pretty good, even though unfinished.

note that patater uses a mac tool that enables the alpha bit in the images in 16bit mode. you'll have to modify the loading procedure to enable it a bit. (shouldn't be a problem, though). there are also some typos and missing lines in the doc, but the sources are fine. i already told him about that some time ago ;) hopefully you got the updated version (haven't checked it, yet).

#89406 - Cearn - Sat Jun 24, 2006 7:10 pm

silent_code wrote:
There are also some typos and missing lines in the doc, but the sources are fine. i already told him about that some time ago ;) hopefully you got the updated version (haven't checked it, yet).
Did you? Did I reply? 'Cause I don't recall getting anything about (win)git typos. Seems my mail has been a little funky these last two months, might have to send it again and I'll see what I can do.

silent_code wrote:
You'll have to modify the loading procedure to enable it a bit. (shouldn't be a problem, though).
I've been thinking about adding something like that into the git code, but been putting it off as I'm not DS devving yet so wasn't sure, what to add. It's just a matter of enabling bit 15 for 16bit images, right? If that's all, adding a switch for that would be a very easy thing to do.

#89723 - silent_code - Mon Jun 26, 2006 2:06 pm

:)

hi Cearn!
i think you really overlooked something :)

i was talking about pataters manual in the second part of my post ("note that patater uses a mac tool...") ;) but never mind! (win)git is COOL, everything is ok :)

... but i DID write you an email about (PLEEEEZ) continueing development of your map editor mirach :) (check your spam or something ;p )

#90192 - xtoc - Wed Jun 28, 2006 9:25 pm

hi, i've used win(git) to convert a bmp to bin

this is what i get :
[Images not permitted - Click here to view it]


What can i do about this issue?

greetz

#90198 - Cearn - Wed Jun 28, 2006 9:59 pm

Git's default export mode is tiled; try using -gb for bitmaps. That and maybe -gB{n} for the bitdepth. The readme has examples of flags for all the modes ... that's GBA modes, not NDS modes.

EDIT: default export mode is tiled for paletted images (bpp<=8), but 16bpp bitmapped for truecolor images (bpp>8). Check the exported files to be certain what you actually got.

#90218 - xtoc - Wed Jun 28, 2006 10:56 pm

ok thx for helping !

this is what i get now :

[Images not permitted - Click here to view it]

what could this be?

#90221 - Cearn - Wed Jun 28, 2006 10:57 pm

192x256 vs 256x192 :P

#90224 - tepples - Wed Jun 28, 2006 11:04 pm

If you're trying to make a game where you hold the DS Brain Age-style, you have to rotate the bitmap before you convert it.
_________________
-- Where is he?
-- Who?
-- You know, the human.
-- I think he moved to Tilwick.

#90225 - xtoc - Wed Jun 28, 2006 11:04 pm

ok finaly thx man! really !