Author Topic: Oh boy.. {Preset Coding}  (Read 2059 times)

Thierry

  • Guest
Re: Oh boy.. {Preset Coding}
« Reply #10 on: March 09, 2015, 06:53:30 am »
For some reason, Forum is not allowing me to send a PM right now.
I don't know why the animation code you did its failing, looks correct.
Mediafire is offline right now so I will tell you how i got it working

I renamed the files to:
body_0.png
body_1.png
body_2.png
body_3.png
body_4.png
body_5.png
body_6.png

And used the old style of texture animation like this:
Code: [Select]
material preset_5_headMatL
{
 technique
 {
  pass
  {
   cull_hardware none
   cull_software none
   alpha_rejection greater_equal 128
   texture_unit
   {
    anim_texture body.png 7 0.5
   }
  }
 }
}
material preset_5_headMatR
{
 technique
 {
  pass
  {
   cull_hardware none
   cull_software none
   alpha_rejection greater_equal 128
   texture_unit
   {
    anim_texture body.png 7 0.5
   }
  }
 }
}

Worked nice and i could see the little triangle under the eye changing colors.

I hope you can get it working too