Author Topic: Black transparent areas(Fixed)  (Read 3783 times)

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
Black transparent areas(Fixed)
« 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:


This is the tail overlay file, it is set as an overlay for the tail, it is a .png:


This is the tail file, it is not pitch black:
[/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: 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.
« Last Edit: August 18, 2017, 04:01:46 am by FlyingGrass »

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.

Offline Kuri

  • Immortal Legend
  • *****
  • Posts: 8,168
  • Country: nz
  • Floof-O-Meter: 136
  • Foreboding evil harmless kitten.
    • dumbstuff4friends
    • channel/UCo42jgbLvEzkofpOin0_a4A
    • View Profile
Re: Tail overlay won't be transparent
« Reply #1 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.
« Last Edit: July 01, 2017, 10:36:18 am by Kuri »
The Japanese concept of wabisabi:
The closest concept in english would be 'rustic'
They might have an old thing, one example is a favourite bowl or dish, it's broken, pieces are missing, why fix it?  With gold and pieces from other dishes?
"Because it was my favourite & I like it"

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
Re: Tail overlay won't be transparent
« Reply #2 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?
« Last Edit: July 01, 2017, 10:44:01 am by FlyingGrass »

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.

Offline Kuri

  • Immortal Legend
  • *****
  • Posts: 8,168
  • Country: nz
  • Floof-O-Meter: 136
  • Foreboding evil harmless kitten.
    • dumbstuff4friends
    • channel/UCo42jgbLvEzkofpOin0_a4A
    • View Profile
Re: Tail overlay won't be transparent
« Reply #3 on: July 01, 2017, 10:45:44 am »
IDK...  open a new layer and add the old layer to it?
The Japanese concept of wabisabi:
The closest concept in english would be 'rustic'
They might have an old thing, one example is a favourite bowl or dish, it's broken, pieces are missing, why fix it?  With gold and pieces from other dishes?
"Because it was my favourite & I like it"

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
Re: Tail overlay won't be transparent
« Reply #4 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?
« Last Edit: July 01, 2017, 11:07:12 am by FlyingGrass »

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.

Offline Kuri

  • Immortal Legend
  • *****
  • Posts: 8,168
  • Country: nz
  • Floof-O-Meter: 136
  • Foreboding evil harmless kitten.
    • dumbstuff4friends
    • channel/UCo42jgbLvEzkofpOin0_a4A
    • View Profile
Re: Tail overlay won't be transparent
« Reply #5 on: July 01, 2017, 10:51:49 am »
No idea, i've never done it before.  Worth a try?
The Japanese concept of wabisabi:
The closest concept in english would be 'rustic'
They might have an old thing, one example is a favourite bowl or dish, it's broken, pieces are missing, why fix it?  With gold and pieces from other dishes?
"Because it was my favourite & I like it"

Offline Kuri

  • Immortal Legend
  • *****
  • Posts: 8,168
  • Country: nz
  • Floof-O-Meter: 136
  • Foreboding evil harmless kitten.
    • dumbstuff4friends
    • channel/UCo42jgbLvEzkofpOin0_a4A
    • View Profile
Re: Tail overlay won't be transparent
« Reply #6 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.
The Japanese concept of wabisabi:
The closest concept in english would be 'rustic'
They might have an old thing, one example is a favourite bowl or dish, it's broken, pieces are missing, why fix it?  With gold and pieces from other dishes?
"Because it was my favourite & I like it"

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
Re: Tail overlay won't be transparent
« Reply #7 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?
You can use both tail files in your own presets, no need to credit me.
« Last Edit: July 01, 2017, 11:45:03 am by FlyingGrass »

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.

Offline Kuri

  • Immortal Legend
  • *****
  • Posts: 8,168
  • Country: nz
  • Floof-O-Meter: 136
  • Foreboding evil harmless kitten.
    • dumbstuff4friends
    • channel/UCo42jgbLvEzkofpOin0_a4A
    • View Profile
Re: EDIT: Paint.net won't save good transparency anymore.
« Reply #8 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.
The Japanese concept of wabisabi:
The closest concept in english would be 'rustic'
They might have an old thing, one example is a favourite bowl or dish, it's broken, pieces are missing, why fix it?  With gold and pieces from other dishes?
"Because it was my favourite & I like it"

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
Re: EDIT: Paint.net won't save good transparency anymore.
« Reply #9 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.
« Last Edit: July 02, 2017, 06:52:53 am by FlyingGrass »

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.