Feral Heart

Help & Guidance => Game Help => Topic started by: FlyingGrass on July 01, 2017, 10:27:46 am

Title: Black transparent areas(Fixed)
Post by: FlyingGrass on July 01, 2017, 10:27:46 am
I am currently in the process of updating Gui, but something's wrong with the transparent parts of the Gui's tail. The same thing happens with eyes if I try to make them completely transparent.

Images
The problem:
(http://i.imgur.com/DL5ISqI.png)

This is the tail overlay file, it is set as an overlay for the tail, it is a .png:
(http://i.imgur.com/tgmYGuV.png)

This is the tail file, it is not pitch black:
(http://i.imgur.com/LthdcrM.png)[/color]

This is the code for the tail:
Code: [Select]
material preset_1_tailMat
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5
   cull_hardware none
   cull_software none
   scene_blend alpha_blend
   alpha_rejection greater_equal 128
   texture_unit
   {
    texture presetGuitailT.png
   }
  }
  pass
  {
   specular 1.0 1.0 1.0 128
   emissive 1.0 1.0 1.0
   cull_hardware none
   cull_software none
   scene_blend alpha_blend
   alpha_rejection greater_equal 128
   texture_unit
   {
    texture presetGuiTailStripesT.png
   }
  }
 }
}
Yes those are the names of the files.


EDIT: Every transparent image I save with paint.net just has black where the transparency was. I made the head have black stripes where the animated textures were, simply by editing the image. Is Paint.net's saving causing this?
Paint.net is my main paint program but I'm also good at using GIMP so I'll try painting the rest of the images with GIMP but in the meantime, is there any way I can stop Paint.net from ruining the transparency of the preset files? It looks completely transparent outside of the game but ingame I only see black where the transparency is supposed to be? It started only an hour before this edit and I didn't even look at the settings before and when it started.

I have an image that works with transparency, oddly, it was made right after the transparency problem started.
Here's the image:(http://i.imgur.com/u4F234X.png) it appears on Imgur with a white background and looks perfectly transparent ingame, but the non-working images have a black background and don't look transparent ingame.

EDIT AGAIN: It seems that Paint.net is compressing automatically upon saving, does anyone know how to stop Paint.net from automatically compressing the files it saves, and why did the compression problem start so suddenly? Paint.net didn't update in months and still hasn't updated to this day.
Title: Re: Tail overlay won't be transparent
Post by: Kuri on July 01, 2017, 10:33:10 am
Looks like one of mine.  Wind the emissive down to 0.75 and the specular similar, that's how mine is and no malfunctions.

P.S. if you compressed the .png you'll loose the transparency.
Title: Re: Tail overlay won't be transparent
Post by: FlyingGrass on July 01, 2017, 10:40:10 am
Looks like one of mine.  Wind the emissive down to 0.75 and the specular similar, that's how mine is and no malfunctions.

P.S. if you compressed the .png you'll loose the transparency.
I still get the same problem when I modify the code, so I'll try decompressing the .png.

How do I decompress the .png in Paint.net or GIMP?
Title: Re: Tail overlay won't be transparent
Post by: Kuri on July 01, 2017, 10:45:44 am
IDK...  open a new layer and add the old layer to it?
Title: Re: Tail overlay won't be transparent
Post by: FlyingGrass on July 01, 2017, 10:50:24 am
IDK...  open a new layer and add the old layer to it?
I copied and pasted the background layer onto a new layer then deleted the background layer... did I do it right?
Title: Re: Tail overlay won't be transparent
Post by: Kuri on July 01, 2017, 10:51:49 am
No idea, i've never done it before.  Worth a try?
Title: Re: Tail overlay won't be transparent
Post by: Kuri on July 01, 2017, 11:02:19 am
i put a new layer at the bottom and can merge from there.  Just no compression for obvious reasons.
Title: Re: Tail overlay won't be transparent
Post by: FlyingGrass on July 01, 2017, 11:24:16 am
i put a new layer at the bottom and can merge from there.  Just no compression for obvious reasons.
I've tried merging layers too but that didn't work, so I tried looking for a Decompress button(Though there's not even a Compress button on Paint.net) but I couldn't find any button to decompress.

Below is a working tail overlay file I made, is there any difference between it and the non-working file?
(http://i.imgur.com/u4F234X.png)You can use both tail files in your own presets, no need to credit me.
Title: Re: EDIT: Paint.net won't save good transparency anymore.
Post by: Kuri on July 01, 2017, 07:38:16 pm
i can't seem to compare the 2.  The only one i see is corrupted and won't open.
Title: Re: EDIT: Paint.net won't save good transparency anymore.
Post by: FlyingGrass on July 02, 2017, 06:47:41 am
i can't seem to compare the 2.  The only one i see is corrupted and won't open.
My PC doesn't detect any corruptness in the file, it might be a glitch with Imgur.

But I've found the problem and got the transparency to work by using GIMP to edit the images. GIMP gives me the option to compress the images, whereas Paint.net seems to be automatically compressing whenever it saves and there's no menu I can find to stop it from doing so.
Title: Re: Black transparent areas(Fixed)
Post by: FlyingGrass on August 18, 2017, 04:06:53 am
This is fixed, it can be locked now. Paint.net was just compressing the image to lower-than 32-Bit which didn't allow the images to be transparent ingame.