Feral Heart
Help & Guidance => Game Help => Topic started by: Arandomperson on January 08, 2018, 04:33:50 pm
-
Need help making the left side of my presets leg invisible. To make it look like they are missing a leg.
-
I've done that.
One way to do that is to use a .png image with the part you want missing erased.
}
pass
{
alpha_rejection greater_equal 128
texture_unit
That will make it transparent rather than white.
-
Moving this over to game help
-
Andddddddddd the code broke the preset.
-
Andddddddddd the code broke the preset.
Mind copying and pasting your code here for us to take a look at and see what might be wrong? ^^
Paste it in like this:
[code]-Code contents here-[/code]
-
material preset_3_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_3bodyL.jpg
}
}
}
}
material preset_3_bodyMatR
{
technique }
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_3bodyR.jpg
}
}
}
}
material preset_3_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_3head.jpg
}
}
}
}
material preset_3_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_3head.jpg
}
}
}
}
material preset_3_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_3eyeL.jpg
}
}
}
}
material preset_3_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_3eyeR.jpg
}
}
}
}
material preset_3_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_3tail.jpg
}
}
}
}
material preset_3_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_3mane.png
}
}
}
}
-
Yeah, the bracket was the wrong way and in the wrong place. Try again with this one.
material preset_3_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_3bodyL.jpg
}
}
}
}
material preset_3_bodyMatR
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_3bodyR.jpg
}
}
}
}
material preset_3_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_3head.jpg
}
}
}
}
material preset_3_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_3head.jpg
}
}
}
}
material preset_3_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_3eyeL.jpg
}
}
}
}
material preset_3_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_3eyeR.jpg
}
}
}
}
material preset_3_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_3tail.jpg
}
}
}
}
material preset_3_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_3mane.png
}
}
}
}
-
Its fixed, but transparency still not working.
-
The file format of the body part that has some transparency to it must be .png
-
Chaged the body's tp png, now when i add the alpha channel to erase it nothing shows up. Not even white. its like i never used the earner on it
-
Chaged the body's tp png, now when i add the alpha channel to erase it nothing shows up. Not even white. its like i never used the earner on it
When you alpha channel the area you want invisible it makes things MUCH easier to make everything all on ONE layer [Merge all the layers so they're one whole] and then erase parts you want to be transparent! And then Export it and save it as a .png as stated previously. :)
If it still doesn't work copy and paste your as-of-now notepad material code here. I've done a bunchhhh of presets with missing parts.
-
I did all of that and I always make my presets one layer. And ive also done missing legs. But ive lost my code when cleaning out my FH folder. No need to treat me like a noob.
heres the code
material preset_3_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_3bodyL.png
}
}
}
}
material preset_3_bodyMatR
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_3bodyR.png
}
}
}
}
material preset_3_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_3head.jpg
}
}
}
}
material preset_3_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_3head.jpg
}
}
}
}
material preset_3_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_3eyeL.jpg
}
}
}
}
material preset_3_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_3eyeR.jpg
}
}
}
}
material preset_3_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_3tail.jpg
}
}
}
}
material preset_3_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_3mane.png
}
}
}
}
-
I did all of that and I always make my presets one layer. And ive also done missing legs. But ive lost my code when cleaning out my FH folder. No need to treat me like a noob.
heres the code
I didn't mean to come off that way of treating you like a noob. Just trying to be friendly.
But change your code to this:
material preset_3_bodyMatL
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_3bodyL.png
}
}
}
}
material preset_3_bodyMatR
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_3bodyR.png
}
}
}
}
material preset_3_headMatL
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_3head.png
}
}
}
}
material preset_3_headMatR
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_3head.png
}
}
}
}
material preset_3_eyeMatL
{
technique
{
pass
{
ambient 0.5 0.5 0.5 1.0
texture_unit
{
texture preset_3eyeL.png
}
}
pass
{
emissive 1.0 1.0 1.0 1.0
scene_blend alpha_blend
texture_unit
{
texture preset_3eyeL.png
}
}
}
}
material preset_3_eyeMatR
{
technique
{
pass
{
ambient 0.5 0.5 0.5 1.0
texture_unit
{
texture preset_3eyeR.png
}
}
pass
{
emissive 1.0 1.0 1.0 1.0
scene_blend alpha_blend
texture_unit
{
texture preset_3eyeR.png
}
}
}
}
material preset_3_tailMat
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_3tail.png
}
}
}
}
material preset_3_maneMat
{
technique
{
pass
{
ambient 2.0 2.0 2.0
cull_hardware none
cull_software none
scene_blend alpha_blend
alpha_rejection greater_equal 250
texture_unit
{
texture preset_3mane.png
}
}
}
}
Change it all to .png to make this easier.
-
Omg finally it works.
-
Omg finally it works.
I'm glad. :)
-
Locking this up. Happy it has been resolved!