Feral Heart

Help & Guidance => Game Help => Topic started by: Arandomperson on January 08, 2018, 04:33:50 pm

Title: Preset transparency help
Post 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.
Title: Re: Preset transparency help
Post by: Kuri on January 08, 2018, 06:01:58 pm
I've done that.
One way to do that is to use a .png image with the part you want missing erased.
Code: [Select]
}
pass
{
alpha_rejection greater_equal 128
texture_unit
That will make it transparent rather than white.
Title: Re: Preset transparency help
Post by: Kerriki on January 08, 2018, 06:16:48 pm
Moving this over to game help
Title: Re: Preset transparency help
Post by: Arandomperson on January 08, 2018, 06:49:19 pm
Andddddddddd the code broke the preset.
Title: Re: Preset transparency help
Post by: Morgra on January 08, 2018, 09:54:47 pm
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]
Title: Re: Preset transparency help
Post by: Arandomperson on January 08, 2018, 10:13:10 pm
Code: [Select]
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
}
}
}
}
Title: Re: Preset transparency help
Post by: Kastilla on January 08, 2018, 10:28:59 pm
Yeah, the bracket was the wrong way and in the wrong place. Try again with this one.

Code: [Select]
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
}
}
}
}
Title: Re: Preset transparency help
Post by: Arandomperson on January 08, 2018, 10:41:44 pm
Its fixed, but transparency still not working.
Title: Re: Preset transparency help
Post by: Morgra on January 08, 2018, 11:09:01 pm
The file format of the body part that has some transparency to it must be .png
Title: Re: Preset transparency help
Post by: Arandomperson on January 09, 2018, 12:11:25 am
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
Title: Re: Preset transparency help
Post by: D-ead7Dog on January 09, 2018, 12:21:09 am
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.
Title: Re: Preset transparency help
Post by: Arandomperson on January 09, 2018, 12:42:46 am
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

Code: [Select]
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
}
}
}
}
Title: Re: Preset transparency help
Post by: D-ead7Dog on January 09, 2018, 12:51:27 am
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:
Quote
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.
Title: Re: Preset transparency help
Post by: Arandomperson on January 09, 2018, 01:21:15 am
Omg finally it works.
Title: Re: Preset transparency help
Post by: D-ead7Dog on January 09, 2018, 01:26:27 am
Omg finally it works.

I'm glad. :)
Title: Re: Preset transparency help
Post by: Morgra on January 09, 2018, 02:31:23 am
Locking this up. Happy it has been resolved!