Author Topic: Preset issue  (Read 1488 times)

Offline JASCrystal

  • Curious Wanderer
  • *
  • Posts: 31
  • Country: 00
  • Floof-O-Meter: 2
    • View Profile
Preset issue
« 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.

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
         }
      }
   }
}

AlphaEclipse

  • Guest
Re: Preset issue
« Reply #1 on: July 31, 2014, 04:05:21 am »
Edit: Strange... Are you sure the files are being saved as .pngs?
« Last Edit: July 31, 2014, 04:29:19 am by AlphaEclipse »

Offline JASCrystal

  • Curious Wanderer
  • *
  • Posts: 31
  • Country: 00
  • Floof-O-Meter: 2
    • View Profile
Re: Preset issue (solved)
« Reply #2 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.
« Last Edit: July 31, 2014, 08:13:50 pm by JASCrystal »