Feral Heart

Help & Guidance => Game Help => Topic started by: JASCrystal on July 31, 2014, 03:44:27 am

Title: Preset issue
Post by: JASCrystal on July 31, 2014, 03:44:27 am
So, I tried to use a code that would make the preset turn invisible and come back again, but the areas that are supposed to be invisible are white.
(http://i62BannedImageSite/iw17yd.png)
This is the code I have in the material file
Quote
material preset_4_bodyMatL
{
   technique
   {
      pass
      {
      lighting off
      scene_blend colour_blend
      depth_write off
      cull_hardware none
      cull_software none
         texture_unit
         {
           texture Invisibletex.png
           tex_address_mode wrap
           filtering trilinear
         }
         texture_unit
         {
            texture main.png
      scroll_anim 0.01 0.02
      tex_address_mode wrap
      rotate_anim -0.01
      wave_xform scale_x sine 3 0.1 0 3
      wave_xform scale_y sine 3 0.1 0 3           
            colour_op alpha_blend
         }
         texture_unit
         {
            texture Invisibletex.png
            colour_op_ex blend_current_alpha src_texture src_current
         }
      }
   }
}
material preset_4_bodyMatR
{
   technique
   {
      pass
      {
      lighting off
      scene_blend colour_blend
      depth_write off
      cull_hardware none
      cull_software none
         texture_unit
         {
           texture Invisibletex.png
           tex_address_mode wrap
           filtering trilinear
         }
         texture_unit
         {
            texture main.png
      scroll_anim 0.01 0.02
      tex_address_mode wrap
      rotate_anim -0.01
      wave_xform scale_x sine 3 0.1 0 3
      wave_xform scale_y sine 3 0.1 0 3           
            colour_op alpha_blend
         }
         texture_unit
         {
            texture Invisibletex.png
            colour_op_ex blend_current_alpha src_texture src_current
         }
      }
   }
}
material preset_4_headMatL
{
   technique
   {
      pass
      {
      lighting off
      scene_blend colour_blend
      depth_write off
      cull_hardware none
      cull_software none
         texture_unit
         {
           texture Invisibletex.png
           tex_address_mode wrap
           filtering trilinear
         }
         texture_unit
         {
            texture main.png
      scroll_anim 0.01 0.02
      tex_address_mode wrap
      rotate_anim -0.01
      wave_xform scale_x sine 3 0.1 0 3
      wave_xform scale_y sine 3 0.1 0 3           
            colour_op alpha_blend
         }
         texture_unit
         {
            texture Invisibletex.png
            colour_op_ex blend_current_alpha src_texture src_current
         }
      }
   }
}
material preset_4_headMatR
{
   technique
   {
      pass
      {
      lighting off
      scene_blend colour_blend
      depth_write off
      cull_hardware none
      cull_software none
         texture_unit
         {
           texture Invisibletex.png
           tex_address_mode wrap
           filtering trilinear
         }
         texture_unit
         {
            texture main.png
      scroll_anim 0.01 0.02
      tex_address_mode wrap
      rotate_anim -0.01
      wave_xform scale_x sine 3 0.1 0 3
      wave_xform scale_y sine 3 0.1 0 3           
            colour_op alpha_blend
         }
         texture_unit
         {
            texture Invisibletex.png
            colour_op_ex blend_current_alpha src_texture src_current
         }
      }
   }
}
material preset_4_eyeMatL
{
   technique
   {
      pass
      {
      lighting off
      scene_blend colour_blend
      depth_write off
      cull_hardware none
      cull_software none
         texture_unit
         {
           texture Invisibletex.png
           tex_address_mode wrap
           filtering trilinear
         }
         texture_unit
         {
            texture lefteye.png
      scroll_anim 0.01 0.02
      tex_address_mode wrap
      rotate_anim -0.01
      wave_xform scale_x sine 3 0.1 0 3
      wave_xform scale_y sine 3 0.1 0 3           
            colour_op alpha_blend
         }
         texture_unit
         {
            texture Invisibletex.png
            colour_op_ex blend_current_alpha src_texture src_current
         }
      }
   }
}
material preset_4_eyeMatR
{
   technique
   {
      pass
      {
      lighting off
      scene_blend colour_blend
      depth_write off
      cull_hardware none
      cull_software none
         texture_unit
         {
           texture Invisibletex.png
           tex_address_mode wrap
           filtering trilinear
         }
         texture_unit
         {
            texture righteye.png
      scroll_anim 0.01 0.02
      tex_address_mode wrap
      rotate_anim -0.01
      wave_xform scale_x sine 3 0.1 0 3
      wave_xform scale_y sine 3 0.1 0 3           
            colour_op alpha_blend
         }
         texture_unit
         {
            texture Invisibletex.png
            colour_op_ex blend_current_alpha src_texture src_current
         }
      }
   }
}
material preset_4_tailMat
{
   technique
   {
      pass
      {
      lighting off
      scene_blend colour_blend
      depth_write off
      cull_hardware none
      cull_software none
         texture_unit
         {
           texture Invisibletex.png
           tex_address_mode wrap
           filtering trilinear
         }
         texture_unit
         {
            texture main.png
      scroll_anim 0.01 0.02
      tex_address_mode wrap
      rotate_anim -0.01
      wave_xform scale_x sine 3 0.1 0 3
      wave_xform scale_y sine 3 0.1 0 3           
            colour_op alpha_blend
         }
         texture_unit
         {
            texture Invisibletex.png
            colour_op_ex blend_current_alpha src_texture src_current
         }
      }
   }
}
material preset_4_maneMat
{
   technique
   {
      pass
      {
      lighting off
      scene_blend colour_blend
      depth_write off
      cull_hardware none
      cull_software none
         texture_unit
         {
           texture Invisibletex.png
           tex_address_mode wrap
           filtering trilinear
         }
         texture_unit
         {
            texture mane.png
      scroll_anim 0.01 0.02
      tex_address_mode wrap
      rotate_anim -0.01
      wave_xform scale_x sine 3 0.1 0 3
      wave_xform scale_y sine 3 0.1 0 3           
            colour_op alpha_blend
         }
         texture_unit
         {
            texture Invisibletex.png
            colour_op_ex blend_current_alpha src_texture src_current
         }
      }
   }
}
Title: Re: Preset issue
Post by: AlphaEclipse on July 31, 2014, 04:05:21 am
Edit: Strange... Are you sure the files are being saved as .pngs?
Title: Re: Preset issue (solved)
Post by: JASCrystal on July 31, 2014, 07:08:39 pm
Yep, I double checked to make sure they were.
Edit: Just figured out what I was doing wrong.