Feral Heart

Help & Guidance => Game Help => Topic started by: Praelude on October 30, 2011, 11:50:53 am

Title: Invisible Preset Code Help?
Post by: Praelude on October 30, 2011, 11:50:53 am
I'm trying to find out exactly how to create an invisibility code so I can finish a preset for a friend.
I'm trying it on one of my own to see how it'll work out, but always the body parts that have invisible parts always go white.
I made the background in the desired areas transparent and followed the tutorials as best as I could.
Did I mess something up with the file? Here is the code.



Code: [Select]
material preset_7_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture presetright_7body.jpg
}
}
}
}
material preset_7_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 preset_7head.jpg
                         tex_address_mode wrap
                         filtering trilinear
         }
      }
   }
}
texture_unit
{
texture preset_7head.jpg
}
}
}
}

material preset_7_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 preset_7head.jpg
                         tex_address_mode wrap
                         filtering trilinear
         }
      }
   }
}
texture_unit
{
texture preset_7head.jpg
}
}
}
}

material preset_7_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 preset_7eye.jpg
                         tex_address_mode wrap
                         filtering trilinear
         }
      }
   }
}
texture_unit
{
texture preset_7eye.jpg
}
}
}
}

material preset_7_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 preset_7eye.jpg
                         tex_address_mode wrap
                         filtering trilinear
         }
      }
   }
}
texture_unit
{
texture preset_7eye.jpg
}
}
}
}

material preset_7_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 preset_7tail.jpg
                         tex_address_mode wrap
                         filtering trilinear
         }
      }
   }
}
texture_unit
{
texture preset_7head.jpg
}
}
}
}

material preset_7_maneMat
{
      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 preset_7mane.png
                         tex_address_mode wrap
                         filtering trilinear
         }
      }
   }
}
texture_unit
{
texture preset_7mane.png
}
}
}
}
Title: Re: Invisible Preset Code Help?
Post by: Ingredient on November 17, 2011, 05:40:55 am
Try using this code

material preset_8_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 preset_8body.png
                         tex_address_mode wrap
                         filtering trilinear
         }
      }
   }
}
         texture_unit
         {
            texture preset_8body.png
         }
      }
   }
}
material preset_8_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 preset_8body.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_8body.png
         }
      }
   }
}
material preset_8_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 preset_8head.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_8head.png
         }
      }
   }
}
material preset_8_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 preset_8head.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_8head.png
         }
      }
   }
}
material preset_8_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 preset_8eye.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_8eye.png
         }
      }
   }
}
material preset_8_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 preset_8eye.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_8eye.png
         }
      }
   }
}
material preset_8_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 preset_8tail.png
                         tex_address_mode wrap
                         filtering trilinear
         }
            texture preset_8tail.png
         }
      }
   }
}
material preset_8_maneMat
{
   technique
   {
      pass
      {
         lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         depth_write off
         texture_unit
         {
            texture preset_8mane.png
         }
      }
   }
}