Homebrew [Q] A quick question regarding FTP-3DS and ftBrony's banner

ecaep42

Well-Known Member
OP
Newcomer
Joined
Aug 24, 2015
Messages
59
Trophies
0
XP
233
Country
United States
I'm not really good at this stuff, and they don't have an exact way they did it, so I thought I'd ask here because this seems active enough and helpful for noobs, so how do they make the .bin file for the banner? I compiled it hoping for the .png to work, but I guess not. Thanks for any help.
 

730

Professional Shitposter
Member
Joined
Apr 2, 2015
Messages
485
Trophies
0
XP
628
Country
Argentina
I'm still not sure how to do this on a programmatical way, but I opened banner.bin and bannerl.bin with a hex editor (I think only the latter file is actually used though) and filled everything with zeroes, and I indeed got a black banner. I'm staying with that for now and maybe I'll find some way to convert png to binary and viceversa later.
 

CeeDee

fuckin dork
Member
Joined
May 4, 2014
Messages
5,362
Trophies
3
XP
9,969
Country
United States
Is it a big deal? It doesn't affect the usage of the program if it has rainbow ponies on it, whether you like them or hate them. Just ignore it and use the program for its intention.
 

730

Professional Shitposter
Member
Joined
Apr 2, 2015
Messages
485
Trophies
0
XP
628
Country
Argentina
Is it a big deal? It doesn't affect the usage of the program if it has rainbow ponies on it, whether you like them or hate them. Just ignore it and use the program for its intention.
This is FTP-3DS I was talking about, which already replaces the pony with some Nintendo image, but what if I don't want an image at all? Or what if I want my own rad custom image, something like... uhh, this?
banner.png
 

CeeDee

fuckin dork
Member
Joined
May 4, 2014
Messages
5,362
Trophies
3
XP
9,969
Country
United States
This is FTP-3DS I was talking about, which already replaces the pony with some Nintendo image, but what if I don't want an image at all? Or what if I want my own rad custom image, something like... uhh, this?
View attachment 23994
Did you try renaming the file to a .png? Or using a .bin to .png converter?
 

ecaep42

Well-Known Member
OP
Newcomer
Joined
Aug 24, 2015
Messages
59
Trophies
0
XP
233
Country
United States
It looks like the made the banner into an array of raw RGB data and copied the data to the frame buffer.

Helpful, but now I need to find a way to convert it to Raw RGB, which, when searched, people say it's not possible. Perhaps you know how to do it? Or someone else?
 

730

Professional Shitposter
Member
Joined
Apr 2, 2015
Messages
485
Trophies
0
XP
628
Country
Argentina
It looks like the made the banner into an array of raw RGB data and copied the data to the frame buffer.
Yup. But my programming knowledge isn't very advanced so I'm not sure how to do the conversion.
Just now I've tried converting a png to RAW (the one I posted above) and renaming that as a .bin, but the color was wrong and the pixels all in disorder... Maybe it has something to do with that the function for reading the image reads it by columns, and the one I made was made for being read by rows.

I'll see if tomorrow I'm able to learn some basic C and make something up.
 

gudenau

Largely ignored
Member
Joined
Jul 7, 2010
Messages
3,882
Trophies
2
Location
/dev/random
Website
www.gudenau.net
XP
5,490
Country
United States
Helpful, but now I need to find a way to convert it to Raw RGB, which, when searched, people say it's not possible. Perhaps you know how to do it? Or someone else?

Yup. But my programming knowledge isn't very advanced so I'm not sure how to do the conversion.
Just now I've tried converting a png to RAW (the one I posted above) and renaming that as a .bin, but the color was wrong and the pixels all in disorder... Maybe it has something to do with that the function for reading the image reads it by columns, and the one I made was made for being read by rows.

I'll see if tomorrow I'm able to learn some basic C and make something up.
Also, start with Java. It is C like and you do not need to worry about memory, good for starting.

Somthing like this in Java.
Code:
public class ImageToBin {
public static void main(String[] args){
  BufferedImage image = ImageIO.read(new File(args[0]));
  FileOutputStream out = new FileOutputStream(new Filee(args[1]));
  for(int x = 0; x < image.getWidth(); x++){
   for(int y = 0; y < image.getHeight(); y++){
    int rgb = image.getRGB(x, y);
    out.write(rgb & 0xFF)
    out.write((rgb >> 8) & 0xFF);
    out.write((rgb >> 16) & 0xFF);
   }
  }
  out.close();
}
}

The run it like "java ImageToBin image.png image.bin", keep in mind that the size of the bin will be width * height * 3 because it is not compressed.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • RedColoredStars @ RedColoredStars:
    Guy doesnt know wtf hes talking about half the time
  • realtimesave @ realtimesave:
    @SylverReZ that reminds me that my friend sells CRTs he gets cheap or free for hundreds of dollars. people are dumb
    +1
  • RedColoredStars @ RedColoredStars:
    And is incredibly annoying.
  • realtimesave @ realtimesave:
    man I just washed my shoes and they look exactly the same as before I washed them :|
  • realtimesave @ realtimesave:
    luckily they didn't fall apart
  • RedColoredStars @ RedColoredStars:
    Some CRTs are very much worth the price
  • RedColoredStars @ RedColoredStars:
    i used to go out to the recycling center every couple weeks and look at the crts and other electronics people would drop off. Usually screens were broken or severely scratched from being tossed around. Did find a good one here and there, but never anything like a 1080i widescreen crt.
  • RedColoredStars @ RedColoredStars:
    Or a good contition 40" Sony Trini that weighs 300 lbs. lol
  • RedColoredStars @ RedColoredStars:
    Literally 300 lbs. lolol
  • BigOnYa @ BigOnYa:
    I have a few of those boat anchors in my basement I tried giving away but no one wanted them, So anyone close to Columbus, Ohio area that wants them, (26", 2x 19") please come get, for free.
  • RedColoredStars @ RedColoredStars:
    Dont know anyone wants those smaller ones. Most are after larger sizes and the kinda top of the line models
  • RedColoredStars @ RedColoredStars:
    Motion handling and input lag on those things destroy plasmas, led, oled
  • realtimesave @ realtimesave:
    I had some really nice CRTs I should've kept
  • realtimesave @ realtimesave:
    now I have all lcd
  • realtimesave @ realtimesave:
    one in particular I regret getting rid of oh well :|
  • realtimesave @ realtimesave:
    the Sonys and stuff I don't care about
  • realtimesave @ realtimesave:
    and used LCD are hard to sell I can imagine.. not worth much
  • realtimesave @ realtimesave:
    @SylverReZ where do u lurk
  • a_username_that_isnt_cool @ a_username_that_isnt_cool:
    Is it piracy if it was released for free? Not in my opinion, but I also think it's not piracy if buying it isn't owning it, and it's not piracy if you can't buy it from the original creators anymore.
  • K3Nv2 @ K3Nv2:
    Free release can have loopholes where they still make money through ads
    +1
  • Xdqwerty @ Xdqwerty:
    sigh
  • Xdqwerty @ Xdqwerty:
    @a_username_that_isnt_cool, could you change your username?
  • Xdqwerty @ Xdqwerty:
    i guess not...
    Xdqwerty @ Xdqwerty: i guess not...