profi200 / open_agb_firm

open_agb_firm is a bare metal app for running GBA homebrew/games using the 3DS builtin GBA hardware.
GNU General Public License v3.0
860 stars 42 forks source link

[ENHANCEMENT] GBA FRAME BORDERS #44

Open Zarke669 opened 2 years ago

Zarke669 commented 2 years ago

is it possible to add frame borders? the same way it works on the game boy color virtual console.

Zarke669 commented 2 years ago

8D583218-9983-4939-94AF-A0B381C00EA3 1D5A54E3-4CF7-42DF-8BF5-C31FAF9416FE D11B42C8-C905-436F-AE8F-EB968D442C61

profi200 commented 2 years ago

It is possible but there are a few reasons i didn't attempt this yet:

I will keep this open until i get to testing it.

Zarke669 commented 2 years ago

is it possible to center the screen like in gba virtual console? BA691300-0D71-4EBA-A067-13DE04F744EC

Zarke669 commented 2 years ago

example I did with the retroarch. 0FBB6BB8-4754-4D77-8AF4-A9CBDA087C1A

profi200 commented 2 years ago

Position can be arbitrary but again needs changes to GPU rendering.

profi200 commented 11 months ago

It's now implemented and for now it's raw format only. Place "border.bgr" in "/3ds/open_agb_firm". It must be a 400x240 border with raw RGB format (color channel order BGR). ImageMagick can convert this very easily like so:

magick ./border.png -rotate +90 ./border.bgr

The frame is displayed exactly centered meaning 80 pixels left/right and 40 top/down are free for the border. As reference i uploaded this literally shit border: https://i.ibb.co/Bnh6BxF/border-poop-rotated.png

shibotto commented 11 months ago

Here is a somewhat neutral black gba border if anyone wants it (convert it with the ImageMagick command above).

border-gba-space

Thank you very much @profi200. I was already enjoying open_agb_firm, but now with this and button remapping it's a perfect experience :D

GorGylka commented 11 months ago

please build a new release with custom border support!

andromalandro commented 6 months ago

can someone upload the .bgr file i cant convert the image :(

RandomMan25XX commented 6 months ago

can someone upload the .bgr file i cant convert the image :(

If you're on something that uses ImageMagick 6 you'll want to substitute the "magick" command with "convert", if that's not your exact issue however I'd be happy to help you sort that out

BrazilKing commented 5 months ago

gba-simplicity

gba-classic-screen

(Outdated designs)

profi200 commented 5 months ago

You need to rotate the border. The frame buffer on 3DS is sideways because the LCD is sideways. That's what the "-rotate +90" parameter does.

And a little side note but looks like older versions of Imagemagick don't have the "magick" command. Instead use the "convert" command.

BrazilKing commented 5 months ago

You need to rotate the border. The frame buffer on 3DS is sideways because the LCD is sideways. That's what the "-rotate +90" parameter does.

And a little side note but looks like older versions of Imagemagick don't have the "magick" command. Instead use the "convert" command.

Thank you, it resolved the matter! I rotated the image manually and then converted it to .bgr using a .png to .bgr converter website and now it is being rendered properly on my 3DS.

BrazilKing commented 5 months ago

IMG_20240122_234839 IMG_20240123_182025

(Outdated designs)

rhymin36 commented 5 months ago

I made some borders today so thought I'd share. All 6 official colours :)

download

thanks for open_agb_firm love it

IMG-4745

BrazilKing commented 5 months ago

I wonder if Rhymin36 made the screen border himself or he just copied mine... Anyways here are some awesome overlays that I did make myself.

GBA_overlay_basis_preview GBA overlay mario preview GBA overlay zelda preview IMG_20240131_233920_033 GBA_overlay_pikachu_preview IMG_20240201_183952_321 IMG_20240201_183954_522 IMG_20240201_183956_216 IMG_20240201_195206_917 IMG_20240201_195207_916 IMG_20240201_195209_849

My private fb group for 3DS custom (theme) designing and requests -> https://www.facebook.com/groups/549132360461223/?ref=share 3DS Custom Themes Wizard

BrazilKing commented 5 months ago

IMG_20240131_001610

rhymin36 commented 5 months ago

Not sure what you mean by that comment bruv, mine doesn't look anything like the ones you've posted. I made them in photoshop yesterday...

For everyone else, I made another version today without buttons, think it looks cleaner, If anyone would like them just shout.

Cheers

BrazilKing commented 5 months ago

Awesome, keep up the great work 🤘🏽

rhymin36 commented 5 months ago

You too ;-)

Jvisawesome commented 4 months ago

I put the .bgr file in the open_agb_firm folder in the 3ds directory and it doesnt boot the games with the border or in 1:1. Can anyone help?

AmazingJorgito commented 4 months ago

I put the .bgr file in the open_agb_firm folder in the 3ds directory and it doesnt boot the games with the border or in 1:1. Can anyone help?

On your sd card > 3ds folder > open agb firm folder you have to edit the config.ini. Change scaler from 2 to 0, save and done.

Jvisawesome commented 4 months ago

I put the .bgr file in the open_agb_firm folder in the 3ds directory and it doesnt boot the games with the border or in 1:1. Can anyone help?

On your sd card > 3ds folder > open agb firm folder you have to edit the config.ini. Change scaler from 2 to 0, save and done.

Thank you so much! Works like a charm and the colors look super vibrant!

Jvisawesome commented 4 months ago

I wonder if Rhymin36 made the screen border himself or he just copied mine... Anyways here are some awesome overlays that I did make myself.

GBA_overlay_basis_preview GBA overlay mario preview GBA overlay zelda preview IMG_20240131_233920_033 GBA_overlay_pikachu_preview IMG_20240201_183952_321 IMG_20240201_183954_522 IMG_20240201_183956_216 IMG_20240201_195206_917 IMG_20240201_195207_916 IMG_20240201_195209_849

My private fb group for 3DS custom (theme) designing and requests -> https://www.facebook.com/groups/549132360461223/?ref=share 3DS Custom Themes Wizard

Do you mind sending download links for these in the .bgr format? They all look amazing

Farhan1379 commented 1 week ago

How did you do that? I want to know too