Importing Issue
Moderators: marionline, SDHawk
Importing Issue
I'm trying to import a background with transparency, so I can have stuff show behind it. Seems simple enough, right? Well, for some reason it's not cooperating and instead of making it transparent it makes it a different color.
I attached the background I'm trying to import, and the pink is the transparency color taken from the Dragontao pallete (which is the master palette in my game). For some reason, when I import it into the editor, however, it uses a different color of pink, similar to the transparency, but not quite. I've even done a similar thing in a different game with the same palette and it worked fine, just not now.
Why is it putting me through this torment?
EDIT: I think I'm misunderstanding how this works. I've disabled every other pink color for importing, so it made the pink gray instead. Can you not use transparency on backdrops?
I attached the background I'm trying to import, and the pink is the transparency color taken from the Dragontao pallete (which is the master palette in my game). For some reason, when I import it into the editor, however, it uses a different color of pink, similar to the transparency, but not quite. I've even done a similar thing in a different game with the same palette and it worked fine, just not now.
Why is it putting me through this torment?
EDIT: I think I'm misunderstanding how this works. I've disabled every other pink color for importing, so it made the pink gray instead. Can you not use transparency on backdrops?
- Attachments
-
- arena_floor.png (1.18 KiB) Viewed 954 times
Last edited by kylekrack on Sun Mar 08, 2015 8:52 pm, edited 1 time in total.
My pronouns are they/them
Ps. I love my wife
Ps. I love my wife
- sheamkennedy
- Liquid Metal Slime
- Posts: 1110
- Joined: Mon Sep 16, 2013 9:29 pm
- Location: Tama-shi, Tokyo, Japan
- Contact:
I don't know if this is the issue but when you import a new backdrop it will prompt you to choose which colour you'd like as the transparency. Thus your transparency colour in you imported graphics does not have to be the same as the once in the editor master palette.
For example, if I want yellow to be transparent in a backdrop I:
-import the backdrop
-I am prompted to choose the transparency colour
-I direct the target cursor over the colour yellow
-I click Enter and bam, that colour is now transparent in that image!
Perhaps when you import it you are somehow skipping this step by clicking Esc which exits the prompt and chooses no transparency?
For example, if I want yellow to be transparent in a backdrop I:
-import the backdrop
-I am prompted to choose the transparency colour
-I direct the target cursor over the colour yellow
-I click Enter and bam, that colour is now transparent in that image!
Perhaps when you import it you are somehow skipping this step by clicking Esc which exits the prompt and chooses no transparency?
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
I have never been prompted with that. It just asks whether to remap to the current master palette, create a new palette, or do not remap colors.
EDIT: I've only been given this option when importing sprites.
EDIT: I've only been given this option when importing sprites.
Last edited by kylekrack on Sun Mar 08, 2015 9:01 pm, edited 1 time in total.
My pronouns are they/them
Ps. I love my wife
Ps. I love my wife
- sheamkennedy
- Liquid Metal Slime
- Posts: 1110
- Joined: Mon Sep 16, 2013 9:29 pm
- Location: Tama-shi, Tokyo, Japan
- Contact:
Hmm your right... I just tried to import a .bmp image to my game and was not prompted either... I swear I always get prompted. Perhaps in the latest update of the nightly this prompt somehow got excluded? I'm very confused myself since I feel like I haven't updated mine since the last time I was prompted with this. Maybe wait on someone elses reply. I don't know what to say.
EDIT: Maybe this has been fixed in the newest version. You could always update to the latest nightly and try that? Can't guarantee it though.
EDIT: Maybe this has been fixed in the newest version. You could always update to the latest nightly and try that? Can't guarantee it though.
Last edited by sheamkennedy on Sun Mar 08, 2015 9:13 pm, edited 1 time in total.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
Nightlies behave differently to Beelzebufo, but nothing has changed recently. Now if you import a 32 bit bmp, then you are asked which colour is meant to be transparent, if any. There's no prompt when importing paletted backdrops. All this does is map that colour to colour 0 in the palette. This allows you to draw using any colour you want for transparency, eg. pink, without having to change colour 0 in your in-game palette to pink. However it's also confused plenty of people, so I should try to make it clearer.
As for your issue, it sounds that you're using a nightly build and trying to import an 8 bit bmp with a palette that doesn't match your master palette. In nightlies the 8-bit bmp import will always map colour 0 to colour 0, and never remap anything else to colour 0, in order to preserve original transparency. Maybe this isn't always the right thing to do. It would probably be better to show that transparency-picking prompt also when importing a 8-bit bmp that doesn't match your master palette rather than forcing 0 -> 0. I'll change that.
In the meantime, either convert your bmp to 32 bit before import, or manually remap the transparency colour.
As for your issue, it sounds that you're using a nightly build and trying to import an 8 bit bmp with a palette that doesn't match your master palette. In nightlies the 8-bit bmp import will always map colour 0 to colour 0, and never remap anything else to colour 0, in order to preserve original transparency. Maybe this isn't always the right thing to do. It would probably be better to show that transparency-picking prompt also when importing a 8-bit bmp that doesn't match your master palette rather than forcing 0 -> 0. I'll change that.
In the meantime, either convert your bmp to 32 bit before import, or manually remap the transparency colour.
Last edited by TMC on Sun Mar 08, 2015 10:32 pm, edited 2 times in total.
Aaaah finally this makes sense. Ok yeah, I figured out how to remap the colors in GIMP. Now I just have to figure out how to make it change the colors without messing up the picture. I'm very unfamiliar with paint programs so I'm going at this blind, but thank you, I can figure this out now.
My pronouns are they/them
Ps. I love my wife
Ps. I love my wife
- sheamkennedy
- Liquid Metal Slime
- Posts: 1110
- Joined: Mon Sep 16, 2013 9:29 pm
- Location: Tama-shi, Tokyo, Japan
- Contact:
That's good to know. I guess I've always been importing 32 bit .bmp's until today.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
- sheamkennedy
- Liquid Metal Slime
- Posts: 1110
- Joined: Mon Sep 16, 2013 9:29 pm
- Location: Tama-shi, Tokyo, Japan
- Contact:
Or you could save the file as a 32-bit .bmp from gimp allowing you to use the transparency picker tool when importing in to CUSTOM. Might be easier for you.kylekrack wrote:Aaaah finally this makes sense. Ok yeah, I figured out how to remap the colors in GIMP. Now I just have to figure out how to make it change the colors without messing up the picture. I'm very unfamiliar with paint programs so I'm going at this blind, but thank you, I can figure this out now.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
- sheamkennedy
- Liquid Metal Slime
- Posts: 1110
- Joined: Mon Sep 16, 2013 9:29 pm
- Location: Tama-shi, Tokyo, Japan
- Contact:
Alright cool can't wait to see. I'm not too familiar with GIMP but in photoshop when you "save as" you can choose .bmp and it asks if you want 8-bit, 16-bit, 32-bit, etc... Maybe in GIMP it may be under File>Export or something along those lines. Either way if you got it figured out it's not a problem.
⊕ P E R S O N A L M U S I C: https://open.spotify.com/album/6fEo3fCm5C3XhtFRflfANr
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases
â� C O L L A B M U S I C: https://dustpuppets.bandcamp.com/releases