Feral Heart

Help & Guidance => Game Help => Topic started by: spectree on November 10, 2018, 01:29:15 pm

Title: Transparent presets won't work! (SOLVED)
Post by: spectree on November 10, 2018, 01:29:15 pm
I decided to make a FH preset out of my fellow Ginga OC, Kaizoku. (Can be seen on my pfp)
I spent half an hour looking for tutorials that had not been removed and was easy to understand.



When I decided that I was finished, I tested it in Preset Maker, but then I see the black leg....



(https://preview.ibb.co/kpA35A/fml.png) (https://ibb.co/mE3edV)



I've tried to look for any solutions in the comments, but then they keep talking about black and yellow legs.

And of course, there are people talking about white legs as well.


I've tried pretty much everything. I've checked the coding, etc. I'm not sure if the code is outdated, or if codes on FH even can get outdated. Here's my code;


Code: [Select]
material preset_5_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture TransparentBodyL.png
}
}
}
}
material preset_5_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture TransparentBodyR.png
}
}
}
}
material preset_5_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_5headL.png
}
}
}
}
material preset_5_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_5headR.png
}
}
}
}
material preset_5_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_5eyeL.png
}
}
}
}
material preset_5_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_5eyeR.png
}
}
}
}
material preset_5_tailMat
{
technique
{
pass
{
texture_unit
{
texture TransparentTail.png
}
}
}
}
material preset_5_maneMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture preset_5mane.png
}
}
}
}
material preset_5_bodyMatL
{
      receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture TransparentbodyL.png
                         tex_address_mode wrap
                         filtering trilinear
         }
      }
   }
}
   texture_unit
   {
    texture TransparentbodyL.png
   }
  }
 }
}
material preset_5_bodyMatR
{
 receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture TransparentBodyR.png
                         tex_address_mode wrap
                         filtering trilinear
   }
    texture TransparentBodyR.png
   }
  }
 }
}
material preset_5_headMatL
{
      receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture Transparenthead.png
                         tex_address_mode wrap
                         filtering trilinear
   }
    texture Transparenthead.png
   }
  }
 }
}
material preset_5_headMatR
{
 
      receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture Transparenthead.png
                         tex_address_mode wrap
                         filtering trilinear
   }
    texture Transparenthead.png
   }
  }
 }
}
material preset_5_eyeMatL
{ receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture eyes.png
                         tex_address_mode wrap
                         filtering trilinear
   }
    texture Transparenteye.png
   }
  }
 }
}
material preset_5_eyeMatR
{
  receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture eyes.png
                         tex_address_mode wrap
                         filtering trilinear
   }
    texture Transparenteye.png
   }
  }
 }
}
material preset_5_tailMat
{
 receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture TransparentTail.png
                         tex_address_mode wrap
                         filtering trilinear
         }
    texture TransparentTail.png
   }
  }
 }
}
material preset_5_maneMat
{
 technique
 {
  pass
  {
   lighting off
   cull_hardware none
   cull_software none
   scene_blend alpha_blend
   depth_write off
   texture_unit
   {
    texture GuideMane.png
   }
  }
 }
}


The tail is black as well cause I needed to do a short tail. The name on the files are different as well cause that was one of the methods I tried. If someone could fix this for me, that would be great. <3


Like I said, the preset names are quite different. Here's what they are called;

Body right; TransparentBodyR
Body left; TransparentBodyL
Tail; TransparentTail


I'm also sorry if this was the wrong place to post it. I'm pretty sure It's not.



Edit: Forgot to link the tutorial. >-> https://feral-heart.com/smf/index.php?topic=5656.0
Title: Re: Transparent presets won't work!
Post by: PrettyReckless on November 10, 2018, 03:58:03 pm
Did you see this tutorial made by Ruby?
https://feral-heart.com/smf/index.php?topic=26062.msg467116#msg467116

It is my go-to tutorial when messing around with presets.
Title: Re: Transparent presets won't work!
Post by: Puffythewolf on November 10, 2018, 04:11:45 pm
I think you are using the wrong kind of code, make sure to probably look up the coding again
Title: Re: Transparent presets won't work!
Post by: Morgra on November 10, 2018, 04:46:28 pm
I think I found your problem <3
Try this:

Code: [Select]
material preset_5_bodyMatL
{
      receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture TransparentbodyL.png
                         tex_address_mode wrap
                         filtering trilinear
         }
      }
   }
}
material preset_5_bodyMatR
{
      receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture TransparentbodyR.png
                         tex_address_mode wrap
                         filtering trilinear
         }
      }
   }
}
material preset_5_headMatL
{
      receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture Transparenthead.png
                         tex_address_mode wrap
                         filtering trilinear
   }
    texture Transparenthead.png
   }
  }
 }
}
material preset_5_headMatR
{
 
      receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture Transparenthead.png
                         tex_address_mode wrap
                         filtering trilinear
   }
    texture Transparenthead.png
   }
  }
 }
}
material preset_5_eyeMatL
{
receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture eyes.png
                         tex_address_mode wrap
                         filtering trilinear
   }
  }
 }
}
material preset_5_eyeMatR
{
  receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture eyes.png
                         tex_address_mode wrap
                         filtering trilinear
   }
  }
 }
}
material preset_5_tailMat
{
 receive_shadows on
   technique
   {
      pass
      {
                     ambient 1.000000 1.000000 1.000000 1.000000
                    diffuse 1.000000 1.000000 1.000000 1.000000
                     specular 0.050000 0.050000 0.050000 1.000000 12.500000
                     emissive 0.000000 0.000000 0.000000 1.000000
                    cull_hardware none
                     cull_software none
                     scene_blend alpha_blend
             alpha_rejection greater_equal 128
                     texture_unit
         {
            texture TransparentTail.png
                         tex_address_mode wrap
                         filtering trilinear
   }
  }
 }
}
material preset_5_maneMat
{
 technique
 {
  pass
  {
   lighting off
   cull_hardware none
   cull_software none
   scene_blend alpha_blend
   depth_write off
   texture_unit
   {
    texture GuideMane.png
   }
  }
 }
}
Title: Re: Transparent presets won't work!
Post by: spectree on November 10, 2018, 08:34:28 pm
Thanks guys! It worked now!
Title: Re: Transparent presets won't work! (SOLVED)
Post by: Morgra on November 10, 2018, 08:46:07 pm
Great to hear! Gonna lock up this topic now that the problem has been resolved ^^