Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Importing problems...?

I do realise that there are many topics like this, but I cant get the answer I seek.  What exactly is the correct way to import.  I have tried doing it through the material database, but I didn't get the transparency option.  Then I tried moving the picture(trying to import battler graphics) but still no transparency option.  Then I used Gimp to add an alpha layer, but when I try importing the two ways listed, there is still no transparency option and the white box is still there.  Thank you for everyone's time and I hope that someone can help me.
 
You can remove the white box in GIMP.  Select by color,  Cntl-K to delete.

You can also do it in MS Photo Editor, if you have it.

From my experience, so far, if your image has an alpha channel, it won't ask you to set transparency on Import.
I've always assumed that if the image does not have an alpha channel, the 'set transparency' option would appear.
I may have to test a few images out...

Be Well

[ edit ] Reg, he wasn't asking 'how' to import. He was saying the Transparency selection dialog wasn't showing up

[ edit 2 ]  Ok, every image I tested that 'did not' have an alpha channel gave me the Transparency menu.
In fact, even images with an alpha channel that did not have any pixels with alpha values less than 255 (no erasing done) also showed the menu.
The only images that did not show the menu had an alpha channel, and also had some pixels with some transparency (alpha values less than 255).
The one ODD example was an image with EXACTLY 50% alpha values, the menu showed up.  ????

The only conclusion I can draw (pun intended), is that your original image had SOME transparency. Can you post the original image?
 
This is the original.

http://wiimedia.ign.com/wii/image/artic ... 08-000.jpg

Steps I took in Gimp:
I cut out the ign.com at the bottom
I set whole backround(including kunai hole, jacket string hole, and the hand hole)
I made a alpha channel
I used the magic wand to cut all the green backround
I shrunk the image.
Then I saved it as a gimp file(it said that a jpg file couldn't handle the transparency.
Then I tryed importing it the ways listed in my first post
 
Sorry for the double post, but I found that the transparency sheet will come up for sprites that I want to use for the characters, but it won't for other pictures that I want to use for the battler graphics.  Don't know if this helps any.
 
Ahhhhhhhhhh.....    A picture speaks a hundred words!  :scruff:

Ok, you're starting with a .jpg
JPG is notorious for 'mucking' with the image when you save it.
The image you uploaded has a white (mostly) background, not green??
If you use the "Color Picker" tool (eyedropper), and pick one of the white pixels far away from the image, you'll see that even those are not completely white. The pixel values are (254,254,254).  Total white is (255,255,255).
Now, use the "Select Region by Color" tool, and pick away from the image. Make sure the "Threshold" is set to '0'.  Notice all the pixels around the image that are 'kind of' white?
For the Transparency Dialog in RMXP to set a color, they all have to be EXACTLY the same color.  Otherwise, you get all that fuzzy / speckly white around your image.

So, you either need to make ALL of the background the exact same color, or just make it transparent, and don't worry about the Import setting the transparency.

Here's what I would do. (Some of our Graphic Artists here may have a better way)

Create an alpha channel
Use the "Select by Color" tool, and set the threshold to 16 (looks like a magic # for this image)
Select a pixel far away from the image

Now, you'll see that some of the white pixels inside the image (eyes, collar) get selected.
You can use one of the selection tools, and set the "Mode" to "Subtract", and remove those
areas from the selection.
Or, since I'm lazy, I just erase them, then either use the "Fill" tool, or another layer below the image to paint them back in.  Either way....

CNTL-K  will erase the selected pixels.

Crop & Scale to get your desired size.

Save as .png, NOT Gimp format(.xcf)  (you still have the original .jpg as a backup)

Copy the image into the Graphics\Battlers folder in your project. Don't bother with the
Import function.

I hope that helps...

Be Well
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top