Feral Heart

Help & Guidance => Game Help => Topic started by: Wolflover224 on July 02, 2017, 07:11:35 pm

Title: Transparent preset?
Post by: Wolflover224 on July 02, 2017, 07:11:35 pm
Hello!
I'm making a preset and I don't want it to have ears. Problem is is that I don't know how to do transparency.
I use GIMP for making my presets.

Thank you,
Ashyak
Title: Re: Transparent preset?
Post by: Astraea on July 02, 2017, 07:14:46 pm
Hello there!

This may just help you with that problem - https://feral-heart.com/smf/index.php?topic=34786.0
If you have any more questions or are confused, let us know! <33 c:
Title: Re: Transparent preset?
Post by: Wolflover224 on July 02, 2017, 07:28:32 pm
Hello there!

This may just help you with that problem - https://feral-heart.com/smf/index.php?topic=34786.0
If you have any more questions or are confused, let us know! <33 c:

all of the pictures are dead links.
Title: Re: Transparent preset?
Post by: sanrio on July 02, 2017, 07:32:54 pm
You can use this one, it's much easier to understand!:
(Only the starting photo is unavailable-)
https://feral-heart.com/smf/index.php?topic=26062.msg467116#msg467116
Title: Re: Transparent preset?
Post by: Astraea on July 02, 2017, 07:33:44 pm
Sorry about that~

This might help, it has the codes needed I believe after I read it briefly c:
https://feral-heart.com/smf/index.php?topic=5665.0
Title: Re: Transparent preset?
Post by: Wolflover224 on July 03, 2017, 05:57:11 am
Sorry about that~

This might help, it has the codes needed I believe after I read it briefly c:
https://feral-heart.com/smf/index.php?topic=5665.0

Thank you!!!
But I have another problem- why does this appear?
(http://i.imgur.com/arHJ6iW.png)

(http://i.imgur.com/Jtw6kxo.jpg)
This is my preset head. What am I missing?
Title: Re: Transparent preset?
Post by: Kuri on July 03, 2017, 06:27:38 am
Little tiny snippets of the UV sometimes overlap.  Try putting a thread of rainbow colours around the edge of the head and see where they appear, then you know where to shave it slightly.
Title: Re: Transparent preset?
Post by: Kerriki on July 03, 2017, 06:56:52 am
To know exactly where those snippets are, try placing the UV lines (found in "my presets" folder, under "reference") onto your preset colors (on another layer, of course); the lines will help you find exactly where you need to erase
Title: Re: Transparent preset?
Post by: Wolflover224 on July 17, 2017, 08:19:36 pm
To know exactly where those snippets are, try placing the UV lines (found in "my presets" folder, under "reference") onto your preset colors (on another layer, of course); the lines will help you find exactly where you need to erase

I did and overlayed it on the preset and the black lines are still showing. I've actually erased a little too much of the gums trying to find it. :/
Title: Re: Transparent preset?
Post by: Kuri on July 17, 2017, 08:24:15 pm
Have you swapped the ears to a different type of ear?  Sometimes they don't overlap as much on a different ear model.
Title: Re: Transparent preset?
Post by: Wolflover224 on July 17, 2017, 08:45:05 pm
Have you swapped the ears to a different type of ear?  Sometimes they don't overlap as much on a different ear model.

no but I'll try!
Title: Re: Transparent preset?
Post by: Wolflover224 on July 20, 2017, 02:26:06 am
UPDATE: It worked on the ears but now I'm making a preset where the teeth are not there and I did copy and paste the transparency thing but it's not working on the teeth :/
The transparency stuff turns black.
Title: Re: Transparent preset?
Post by: FlyingGrass on July 20, 2017, 04:40:34 am
UPDATE: It worked on the ears but now I'm making a preset where the teeth are not there and I did copy and paste the transparency thing but it's not working on the teeth :/
The transparency stuff turns black.

If the image is compressed at all, the transparency turns black. I don't know how to un-compress an image, so you'll have to find an image you haven't compressed. if you use Paint.net, only save preset images as 32-bit. If you use GIMP, slide the "Compression Level" slider to 0. I don't know how to use other paint programs.
Title: Re: Transparent preset?
Post by: Wolflover224 on July 20, 2017, 05:15:10 am
UPDATE: It worked on the ears but now I'm making a preset where the teeth are not there and I did copy and paste the transparency thing but it's not working on the teeth :/
The transparency stuff turns black.

If the image is compressed at all, the transparency turns black. I don't know how to un-compress an image, so you'll have to find an image you haven't compressed. if you use Paint.net, only save preset images as 32-bit. If you use GIMP, slide the "Compression Level" slider to 0. I don't know how to use other paint programs.

Okay thank you! Will try out in the morning :)
Title: Re: Transparent preset?
Post by: Kuri on July 20, 2017, 05:42:45 am
Also
Code: [Select]
pass
{
cull_hardware none
cull_software none
scene_blend alpha_blend

Should give you transparent teeth with a transparent image.  Not sure if the compression is being an issue or not.
I have transparent teeth once and this was the sort of code i used to make them clear instead of black.
Title: Re: Transparent preset?
Post by: VortexAlive on July 20, 2017, 12:40:06 pm
Code: [Select]
pass
{
alpha_rejection greater_equal 128
#makes any alpha(transparent) pixels not show if the alpha is greater or equal to the number.

scene_blend alpha_blend
#makes any transparent parts of the image blend with either the previously passed images or the scene behind the character.

texture_unit
{
texture preset_#body.png
}
}
This should help. ^.^
Title: Re: Transparent preset?
Post by: Wolflover224 on July 20, 2017, 06:25:12 pm
Also
Code: [Select]
pass
{
cull_hardware none
cull_software none
scene_blend alpha_blend

Should give you transparent teeth with a transparent image.  Not sure if the compression is being an issue or not.
I have transparent teeth once and this was the sort of code i used to make them clear instead of black.

This didn't do anything
Title: Re: Transparent preset?
Post by: Wolflover224 on July 20, 2017, 06:27:05 pm
Code: [Select]
pass
{
alpha_rejection greater_equal 128
#makes any alpha(transparent) pixels not show if the alpha is greater or equal to the number.

scene_blend alpha_blend
#makes any transparent parts of the image blend with either the previously passed images or the scene behind the character.

texture_unit
{
texture preset_#body.png
}
}
This should help. ^.^

Could you give me the entire thing (without the notes and with the correct layout) and for the eyes? This would help alot!
Thank you!
Title: Re: Transparent preset?
Post by: VortexAlive on July 20, 2017, 07:23:11 pm
Here you go, just change the number to match yours and it should work:

Code: [Select]
material preset_12_eyeMatL
{
technique
{
pass
{
alpha_rejection greater_equal 128
scene_blend alpha_blend

texture_unit
{
texture preset_12eye.png
}
}
}
}
material preset_12_eyeMatR
{
technique
{
pass
{
alpha_rejection greater_equal 128
scene_blend alpha_blend

texture_unit
{
texture preset_12eye.png
}
}
}
}

Sorry about the format... it doesn't want to let me keep it. >.<
Title: Re: Transparent preset?
Post by: Wolflover224 on July 20, 2017, 07:59:40 pm
Here you go, just change the number to match yours and it should work:

Code: [Select]
material preset_12_eyeMatL
{
technique
{
pass
{
alpha_rejection greater_equal 128
scene_blend alpha_blend

texture_unit
{
texture preset_12eye.png
}
}
}
}
material preset_12_eyeMatR
{
technique
{
pass
{
alpha_rejection greater_equal 128
scene_blend alpha_blend

texture_unit
{
texture preset_12eye.png
}
}
}
}

Sorry about the format... it doesn't want to let me keep it. >.<
Thank you!! Although I've decided against using transparency /for now/ to make things easier, I will definitely test this!!
Title: Re: Transparent preset?
Post by: Wolflover224 on July 21, 2017, 01:13:20 am
Here you go, just change the number to match yours and it should work:

Code: [Select]
material preset_12_eyeMatL
{
technique
{
pass
{
alpha_rejection greater_equal 128
scene_blend alpha_blend

texture_unit
{
texture preset_12eye.png
}
}
}
}
material preset_12_eyeMatR
{
technique
{
pass
{
alpha_rejection greater_equal 128
scene_blend alpha_blend

texture_unit
{
texture preset_12eye.png
}
}
}
}

Sorry about the format... it doesn't want to let me keep it. >.<
Thank you!! Although I've decided against using transparency /for now/ to make things easier, I will definitely test this!!

Update: I decided to try it with the eye and it's still not working. The parts that are supposed to be transparent are just black and it looks more like my character ate a bunch of charcol instead of having missing teeth lol
Title: Re: Transparent preset?
Post by: Kuri on July 21, 2017, 04:34:12 am
That's weird..
(https://i.imgur.com/QY47jM8.jpg)

If you ignore the fact i put a green grid on it as a second pass
Code: [Select]
material preset_8_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
scene_blend alpha_blend

specular 0.447059 0.498039 0.454902 1 61.44
texture_unit
{
texture preset_8eyeL.png
}
               }
         }
}
(https://i.imgur.com/TIzXzpv.jpg)
i ended up with transparent teeth.  Well, only were they were supposed to be.  Without the scene_blend alpha_blend part they looked like charcoal like you said.