Post Reply 

Semi-Flattening

Aug 25, 2014, 04:29
Post: #1
Bug Semi-Flattening
Hello, I'm new to GIMP and I'm trying to semi-flatten my image for my game so that I can have a texture with transparency. The image can only be a 256 color indexed image (which as I understand cannot have inbetween transparency). So I found that GIMP luckily has a semi-flatten plug-in. I was wondering how I can get it so that it isn't grayed out. I've changed the image mode to RGB and everything that the manual said but the "Semi-Flatten" option is still grayed out. If anyone knows how I can get it not grayed out, please respond.

Thank you,
Limits
Find all posts by this user
Quote this message in a reply
Aug 25, 2014, 05:25
Post: #2
RE: Semi-Flattening
(Aug 25, 2014 04:29)Limits Wrote:  Hello, I'm new to GIMP and I'm trying to semi-flatten my image for my game so that I can have a texture with transparency. The image can only be a 256 color indexed image (which as I understand cannot have inbetween transparency). So I found that GIMP luckily has a semi-flatten plug-in. I was wondering how I can get it so that it isn't grayed out. I've changed the image mode to RGB and everything that the manual said but the "Semi-Flatten" option is still grayed out. If anyone knows how I can get it not grayed out, please respond.

Thank you,
Limits
This plugin works on Image type RGB and you must select a layer that has an 'Alpha Channel'.
The only way the menu items stay grayed out for me is when those conditions are not met.

So if you have set your image type to RGB, then make sure you have a layer selected and that it has an 'Alpha Channel'. Layer->Transparency->Add Alpha Channel
Find all posts by this user
Quote this message in a reply
Aug 25, 2014, 08:52 (This post was last modified: Aug 25, 2014 09:23 by rich2005.)
Post: #3
RE: Semi-Flattening
Quote:..I'm trying to semi-flatten my image for my game so that I can have a texture with transparency. The image can only be a 256 color indexed image (which as I understand cannot have inbetween transparency). So I found that GIMP luckily has a semi-fatten plug-in...

You have sort-of answered your own question, an indexed image has all transparency or nothing, but I wonder if you have tried the semi-flatten filter. It does what it says, replaces semi-transparent pixels with a colour.

An extreme example, lots of full and semi-transparency. http://i.imgur.com/BgLfyxf.jpg
Unless you change the Gimp settings the color mode is shown in the title bar, both these RGB

Quote:..I was wondering how I can get it so that it isn't grayed out. I've changed the image mode to RGB and everything that the manual said but the "Semi-Flatten" option is still grayed out. If anyone knows how I can get it not grayed out.

For semi-flatten to be active
1. The image is in RGB mode
2. The image has an alpha- channel.

You change the color mode in Image -> Mode, like this: http://i.imgur.com/Fcx3yax.jpg

But if your image has already been through indexed mode and changed to RGB even if the semi-flatten is active, there is no semi-transparency to work with. Nothing will happen.
http://i.imgur.com/iJhiTJi.jpg note at the top - RGB mode.

What you probably need is some sort of dithering to simulate areas of semi-transparency/shade.
Can you post an example of your work and maybe someone will have a try with it.

edit: an RGB image with the semi-transparency you are trying to preserve.

** https://www.gimp-forum.net/ now answering questions**
Find all posts by this user
Quote this message in a reply
Aug 25, 2014, 16:02
Post: #4
RE: Semi-Flattening
Thank you all for your replies.

This is the test image I'm using.
[Image: 23qyuc1.png]

I need this to be a 256-color indexed image with the background completely transparent. It's going to be used as sprites for enemies. The game renders it with a black background currently.
Find all posts by this user
Quote this message in a reply
Aug 25, 2014, 18:00
Post: #5
RE: Semi-Flattening
You do not have to worry about semi-transparency because that is an indexed image and has none, so semi-flatten is not relevant.

Your image has 47 shades of gray. http://i.imgur.com/mo8qaOt.jpg (was that not a book or something Wink )

I am not into games, but I do know that they often handle transparency in a strange way, even this forum will show thumbnails as transparent = black.

You could try re-exporting your sprite and turn off save color values from transparent pixels

screenshot http://i.imgur.com/33ZngNy.jpg

It might make a difference, or it might not. Another way is to re-save the image using some other graphics application such as XnView, that sometimes works.

** https://www.gimp-forum.net/ now answering questions**
Find all posts by this user
Quote this message in a reply
Aug 25, 2014, 18:12
Post: #6
RE: Semi-Flattening
I tried that but it didn't work. Sad
Find all posts by this user
Quote this message in a reply
Aug 25, 2014, 18:21
Post: #7
RE: Semi-Flattening
(Aug 25, 2014 18:12)Limits Wrote:  I tried that but it didn't work. Sad

Does your game have a forum?
If it does, ask there.

** https://www.gimp-forum.net/ now answering questions**
Find all posts by this user
Quote this message in a reply
Aug 25, 2014, 19:05
Post: #8
RE: Semi-Flattening
Sadly, I'm working on this alone. It's a 3D engine
Find all posts by this user
Quote this message in a reply
Post Reply 


Possibly Related Threads...
Thread: Author Replies: Views: Last Post
  Erasing semi-transparent selections Andrew 2 306 Aug 13, 2014 22:03
Last Post: Andrew
  Making an icon semi-transparent chrisj 6 1,561 Sep 6, 2013 17:56
Last Post: chrisj
  How to create a Semi transparent text box ummaya 2 999 Aug 19, 2013 09:29
Last Post: Wendy Black
  Changing Semi-Monochrome Color photojoe 1 540 Jul 30, 2013 07:14
Last Post: ofnuts
  Text onto a Semi-Transparent Box on a Gif ? rudamentry 4 903 Dec 12, 2012 15:55
Last Post: rudamentry

Forum Jump:


GIMP ForumPortalArchiveContactTermsRSS