April 27, 2024, 06:06:07 AM

Author Topic: Transparency and scrolling doesn't work on my preset :/  (Read 2552 times)

Offline Nekoszowy

  • Quarter Moon
  • *
  • Posts: 14Female
  • Karma: 2
    • View Profile
Transparency and scrolling doesn't work on my preset :/
« on: March 07, 2016, 12:15:58 AM »
Can someone look if it is right??
I don't know what I did wrong :c
Spoiler for Hiden:
material PS_ChronosMat/EyeMat
{
   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
         emissive 0.000000 0.000000 0.000000 1.000000
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture presets\ChronosEyeTex.png
            tex_address_mode wrap
            filtering trilinear
         }
      }
   }
}
material PS_ChronosMat/BodyMat
{
   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.010000 0.010000 0.010000 1.000000
         emissive 0.000000 0.000000 0.000000 1.000000
         texture_unit
         {
            texture presets\ChronosBodyTex.png
            tex_address_mode wrap
            filtering trilinear
         }
      }
   }
}
material PS_ChronosMat/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.010000 0.010000 0.010000 1.000000
         emissive 0.000000 0.000000 0.000000 1.000000
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture presets\ChronosManeTex.png
            tex_address_mode wrap
            filtering trilinear
         }
      }
   }
}
material PS_ChronosMat/TeethMat
{
   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
         emissive 0.000000 0.000000 0.000000 1.000000
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture presets\ChronosTeethTex.png
            tex_address_mode wrap
            filtering trilinear
         }
      }
   }
}
material PS_ChronosMat/HeadMat
{
   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.010000 0.010000 0.010000 1.000000
         emissive 0.000000 0.000000 0.000000 1.000000
         texture_unit
         {
            texture presets\ChronosHeadTex.png
            tex_address_mode wrap
            filtering trilinear
         }
      }
   }
}
material PS_ChronosMat/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.010000 0.010000 0.010000 1.000000
         emissive 0.000000 0.000000 0.000000 1.000000
         texture_unit
         {
            texture presets\ChronosTailTex.png
            tex_address_mode wrap
            filtering trilinear
         }
      }
   }
}
material PS_ChronosMat/WingMat
{
   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.010000 0.010000 0.010000 1.000000
         emissive 0.000000 0.000000 0.000000 1.000000
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture presets\ChronosWingTex.png
            tex_address_mode wrap
            filtering trilinear
         }
      }
   }
}
material PS_ChronosMat/BodyMat
{
   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
         emissive 0.000000 0.000000 0.000000 1.000000
         cull_hardware none
         cull_software none
         alpha_rejection greater_equal 128
         texture_unit
         {
            texture presets\ChronosBodyTex.png
            tex_address_mode wrap
            filtering trilinear
         }
      }
   }
}
material PS_ChronosMat/BodyMat
{
   technique
   {
      pass
      {
               ambient 1 1 1 0.5
               diffuse 1 1 1 0.5
               specular 0.05 0.05 0.05 0.5
               emissive 0 0 0 0.5
               cull_hardware none
               cull_software none
                                        scene_blend alpha_blend
               
               texture_unit
         {
            texture presets\ChronosScrollTex.png
            scroll_anim 0.1 0.1
         }
      }
      pass
      {
         scene_blend alpha_blend
         texture_unit   
         {
            texture presets\ChronosBodyTex.png
         }
      }
   }
}

And here are my textures...
http://imgur.com/a/Wckjq

I really don't know where is mistake ;;
Lecz jak nasze winy
Przebaczyć, pamiętając
Nie wolno szukać tego...
Co ziemia wzięła drogiego.

Offline Jenxie13

  • May 2015 MotM
  • Full Moon
  • **
  • Posts: 441Male
  • Karma: 46
  • corruption is the result of too much power
    • View Profile
Re: Transparency and scrolling doesn't work on my preset :/
« Reply #1 on: March 07, 2016, 01:14:27 AM »
Try using this coding here:
Spoiler for Hiden:
Code: [Select]
material PS_ChronosMat/HeadMat
{
   technique
   {
      pass
      {
ambient 1 1 1 0.5
diffuse 1 1 1 0.5
specular 0.05 0.05 0.05 0.5
emissive 0 0 0 0.5
cull_hardware none
cull_software none
                                        scene_blend alpha_blend

texture_unit
         {
            texture presets\ChronosScrollTex.png
            scroll_anim 0.1 0.1
         }
      }
      pass
      {
         scene_blend alpha_blend
         texture_unit   
         {
            texture presets\ChronosHeadTex.png
         }
      }
   }
}
material PS_ChronosMat/TailMat
{
   technique
   {
      pass
      {
ambient 1 1 1 0.5
diffuse 1 1 1 0.5
specular 0.05 0.05 0.05 0.5
emissive 0 0 0 0.5
cull_hardware none
cull_software none
                                        scene_blend alpha_blend

texture_unit
         {
            texture presets\ChronosScrollTex.png
            scroll_anim 0.1 0.1
         }
      }
      pass
      {
         scene_blend alpha_blend
         texture_unit   
         {
            texture presets\ChronosTailTex.png
         }
      }
   }
}
material PS_ChronosMat/BodyMat
{
   technique
   {
      pass
      {
ambient 1 1 1 0.5
diffuse 1 1 1 0.5
specular 0.05 0.05 0.05 0.5
emissive 0 0 0 0.5
cull_hardware none
cull_software none
                                        scene_blend alpha_blend

texture_unit
         {
            texture presets\ChronosScrollTex.png
            scroll_anim 0.1 0.1
         }
      }
      pass
      {
         scene_blend alpha_blend
         texture_unit   
         {
            texture presets\ChronosBodyTex.png
         }
      }
   }
}
material PS_ChronosMat/HeadMat
{
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
         emissive 0.000000 0.000000 0.000000 1.000000
         cull_hardware none
         cull_software none
         alpha_rejection greater_equal 128
         texture_unit
{
texture presets\ChronosHeadTex.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material PS_ChronosMat/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
         emissive 0.000000 0.000000 0.000000 1.000000
         cull_hardware none
         cull_software none
         alpha_rejection greater_equal 128
         texture_unit
{
texture presets\ChronosTailTex.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material PS_ChronosMat/EyeMat
{
   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
         emissive 0.000000 0.000000 0.000000 1.000000
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture presets\ChronosEyeTex.png
            tex_address_mode wrap
            filtering trilinear
         }
      }
   }
}
material PS_ChronosMat/BodyMat
{
   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.010000 0.010000 0.010000 1.000000
         emissive 0.000000 0.000000 0.000000 1.000000
         texture_unit
         {
            texture presets\ChronosBodyTex.png
            tex_address_mode wrap
            filtering trilinear
         }
      }
   }
}
material PS_ChronosMat/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.010000 0.010000 0.010000 1.000000
         emissive 0.000000 0.000000 0.000000 1.000000
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture presets\ChronosManeTex.png
            tex_address_mode wrap
            filtering trilinear
         }
      }
   }
}
material PS_ChronosMat/TeethMat
{
   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
         emissive 0.000000 0.000000 0.000000 1.000000
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture presets\ChronosTeethTex.png
            tex_address_mode wrap
            filtering trilinear
         }
      }
   }
}
material PS_ChronosMat/HeadMat
{
   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.010000 0.010000 0.010000 1.000000
         emissive 0.000000 0.000000 0.000000 1.000000
         texture_unit
         {
            texture presets\ChronosHeadTex.png
            tex_address_mode wrap
            filtering trilinear
         }
      }
   }
}
material PS_ChronosMat/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.010000 0.010000 0.010000 1.000000
         emissive 0.000000 0.000000 0.000000 1.000000
         texture_unit
         {
            texture presets\ChronosTailTex.png
            tex_address_mode wrap
            filtering trilinear
         }
      }
   }
}
material PS_ChronosMat/WingMat
{
   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.010000 0.010000 0.010000 1.000000
         emissive 0.000000 0.000000 0.000000 1.000000
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture presets\ChronosWingTex.png
            tex_address_mode wrap
            filtering trilinear
         }
      }
   }
}
material PS_ChronosMat/BodyMat
{
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
         emissive 0.000000 0.000000 0.000000 1.000000
         cull_hardware none
         cull_software none
         alpha_rejection greater_equal 128
         texture_unit
{
texture presets\ChronosBodyTex.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material PS_ChronosMat/BodyMat
{
   technique
   {
      pass
      {
               ambient 1 1 1 0.5
               diffuse 1 1 1 0.5
               specular 0.05 0.05 0.05 0.5
               emissive 0 0 0 0.5
               cull_hardware none
               cull_software none
                                        scene_blend alpha_blend
               
               texture_unit
         {
            texture presets\ChronosScrollTex.png
            scroll_anim 0.1 0.1
         }
      }
      pass
      {
         scene_blend alpha_blend
         texture_unit   
         {
            texture presets\ChronosBodyTex.png
         }
      }
   }
}
And paste that into your MATERIAL file.
Download this bc I had problems with the transparency on the body. I ran it through an art program on my computer to fix any sort of bug with the transparency. Make sure all the files you have are named exactly as they are in the coding up there and it should work.

Offline Nekoszowy

  • Quarter Moon
  • *
  • Posts: 14Female
  • Karma: 2
    • View Profile
Re: Transparency and scrolling doesn't work on my preset :/
« Reply #2 on: March 07, 2016, 02:04:01 AM »
It's working now, you helped a lot, thank you ^^

Now just transparency on wings does not work(but when I was editing Vitani's material file into Chronos it worked somehow...)
Lecz jak nasze winy
Przebaczyć, pamiętając
Nie wolno szukać tego...
Co ziemia wzięła drogiego.

Offline Jenxie13

  • May 2015 MotM
  • Full Moon
  • **
  • Posts: 441Male
  • Karma: 46
  • corruption is the result of too much power
    • View Profile
Re: Transparency and scrolling doesn't work on my preset :/
« Reply #3 on: March 07, 2016, 03:27:32 AM »
Uhh, I'm not the best when it comes to transparency on the wings but you can try this:
Spoiler for Hiden:
Code: [Select]
material PS_ChronosMat/WingMat
{
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
         emissive 0.000000 0.000000 0.000000 1.000000
         cull_hardware none
         cull_software none
         alpha_rejection greater_equal 128
         texture_unit
{
texture presets\ChronosWingTex.png
tex_address_mode wrap
filtering trilinear
}
}
}
}

Offline Nekoszowy

  • Quarter Moon
  • *
  • Posts: 14Female
  • Karma: 2
    • View Profile
Re: Transparency and scrolling doesn't work on my preset :/
« Reply #4 on: March 07, 2016, 06:50:36 AM »
Ok, it work.
Thanks again.
I was trying by myself while copy>past Vitani's material, but it didn't work either xd
Lecz jak nasze winy
Przebaczyć, pamiętając
Nie wolno szukać tego...
Co ziemia wzięła drogiego.

Offline Jenxie13

  • May 2015 MotM
  • Full Moon
  • **
  • Posts: 441Male
  • Karma: 46
  • corruption is the result of too much power
    • View Profile
Re: Transparency and scrolling doesn't work on my preset :/
« Reply #5 on: March 07, 2016, 11:14:42 AM »
Ah, alright. Good to know it's working now! I'll go ahead and lock this now, if you need it unlocked for any reason, just PM me.
//LOCKING.