Gameboy Development Forum

Discussion about software development for the old-school Gameboys, ranging from the "Gray brick" to Gameboy Color
(Launched in 2008)

You are not logged in.

Ads

#1 2020-05-01 10:01:03

Tomi
Member
From: France
Registered: 2018-04-30
Posts: 29

rgbgfx

hi all,

when i create DMG tile data (source .png image is 4 shades of gray) with rgbgfx, "colors" are inverted (my palette is default %11100100).
what am I doing wrong? In the manual I do not see any command line option allowing to invert "colors".

Offline

 

#2 2020-05-02 19:53:09

h0tp3ngu1n
Member
Registered: 2019-08-18
Posts: 25

Re: rgbgfx

I've never used rgbgfx, so I'm not sure. But did you remember to also set the palette in your game? (Do that by writing %11100100 to the palette's address https://gbdev.gg8.se/wiki/articles/Vide … e_Palettes ) If that doesn't work, maybe try writing %00011011 instead.

Offline

 

#3 2020-05-03 02:06:16

Tomi
Member
From: France
Registered: 2018-04-30
Posts: 29

Re: rgbgfx

Yes, the palette is correctly set in the game. Tile data colors are inverted in the file generated by either rgbfx and superfamiconv also. But not if I generate tile data with any other tool than thesese 2. ???????????????????????   I really do not see where it can come from

Offline

 

#4 2020-05-03 05:15:55

ISSOtm
Member
From: Somewhere in Echo RAM
Registered: 2017-04-18
Posts: 160
Website

Re: rgbgfx

Is your PNG indexed (paletted), grayscale, or just plain RGB? The latter two cause the tools to determine the color indexes automatically, and they may not be what you're looking for.


The French Lord Of Laziness.
Legend of Zelda and Undertale fan, I also tend to break Pokémon R/B/Y a little too much.

Twitter | Me on GCL | Discord : ISSOtm#9015 | Skype : isso.tm (I don't login anymore)

Offline

 

#5 2020-05-03 09:07:21

Tomi
Member
From: France
Registered: 2018-04-30
Posts: 29

Re: rgbgfx

If I remember well, My png is grayscaled with gimp. How do I eventually « unindex » or « ungreyscale «  it?

Offline

 

#6 2020-05-03 14:42:03

ISSOtm
Member
From: Somewhere in Echo RAM
Registered: 2017-04-18
Posts: 160
Website

Re: rgbgfx

In GIMP, go to Image > Mode and select Indexed. You may then manually arrange the color map, if you want to, by going to Colors > Map > Rearrange Colormap...


The French Lord Of Laziness.
Legend of Zelda and Undertale fan, I also tend to break Pokémon R/B/Y a little too much.

Twitter | Me on GCL | Discord : ISSOtm#9015 | Skype : isso.tm (I don't login anymore)

Offline

 

#7 2020-05-04 02:17:35

Tomi
Member
From: France
Registered: 2018-04-30
Posts: 29

Re: rgbgfx

Great, it works! Thank you !!!!!!

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson