Author Topic: Rogue Preset Texture  (Read 1714 times)

Offline Millyuro

  • Curious Wanderer
  • *
  • Posts: 20
  • Floof-O-Meter: 0
    • View Profile
Rogue Preset Texture
« on: March 11, 2015, 03:35:31 am »
So I just started making animated presets, and all was going well until the textures stopped working. I managed to fix that after resetting the material file a few times over, but now something very strange is happening.

There is a rogue texture.

What I mean by that is that in the animations on the preset, a completely random out-of-the-blue texture pops up and takes up about 4 frame rates of the animation. But the thing is, I have never seen this texture before, I have never downloaded anything like it, and never did I list it in the animation list. Heck, the texture isn't even in the preset folder!

I have no idea why it has somehow magically turned up or how, and some help would be hugely appreciated.

Here are some pictures of the texture:



As you can see it fades into the preset then disappears.

As for my material file (It is super long):
material preset_11_bodyMatL
{
   technique
   {
      pass
      {

alpha_rejection greater_equal 128
         texture_unit
         {
            anim_texture 1.png 1.png 1.png 1.png 1.png 2.png 2.png 2.png 2.png 2.png 3.png 3.png 3.png 3.png 3.png 4.png 4.png 4.png 4.png 4.png 5.png 5.png 5.png 5.png 5.png 6.png 6.png 6.png 6.png 6.png 7.png 7.png 7.png 7.png 7.png 8.png 8.png 8.png 8.png 8.png 9.png 9.png 9.png 9.png 9.png 10.png 10.png 10.png 10.png 10.png 11.png 11.png 11.png 11.png 11.png 12.png 12.png 12.png 12.png 12.png 1
         }
      }
   }
}
material preset_11_bodyMatR
{
   technique
   {
      pass
      {

alpha_rejection greater_equal 128
         texture_unit
         {
            anim_texture 1.png 1.png 1.png 1.png 1.png 2.png 2.png 2.png 2.png 2.png 3.png 3.png 3.png 3.png 3.png 4.png 4.png 4.png 4.png 4.png 5.png 5.png 5.png 5.png 5.png 6.png 6.png 6.png 6.png 6.png 7.png 7.png 7.png 7.png 7.png 8.png 8.png 8.png 8.png 8.png 9.png 9.png 9.png 9.png 9.png 10.png 10.png 10.png 10.png 10.png 11.png 11.png 11.png 11.png 11.png 12.png 12.png 12.png 12.png 12.png 1
         }
      }
   }
}
material preset_11_headMatL
{
   technique
   {
      pass
      {

alpha_rejection greater_equal 128
         texture_unit
         {
            texture see.png
         }
      }
   }
}
material preset_11_headMatR
{
   technique
   {
      pass
      {

alpha_rejection greater_equal 128
         texture_unit
         {
            texture see.png
         }
      }
   }
}
material preset_11_eyeMatL
{
   technique
   {
      pass
      {

alpha_rejection greater_equal 128
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture see.png
         }
      }
   }
}
material preset_11_eyeMatR
{
   technique
   {
      pass
      {

alpha_rejection greater_equal 128
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture see.png
         }
      }
   }
}
material preset_11_tailMat
{
   technique
   {
      pass
      {
alpha_rejection greater_equal 128
         texture_unit
         {
            texture see.png
         }
      }
   }
}
material preset_11_maneMat
{
   technique
   {
      pass
      {
         lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         depth_write off
         texture_unit
         {
            texture preset_11mane.png
         }
      }
   }
}
material preset_11_equipMatL
{
   technique
   {
      pass
      {
alpha_rejection greater_equal 128
         texture_unit
         {
            texture see.png
         }
      }
   }
}
material preset_11_equipMatR
{
   technique
   {
      pass
      {
alpha_rejection greater_equal 128
         texture_unit
         {
            texture see.png
         }
      }
   }
}

I am using the material file from a youtube tutorial I watched on how to make animated presets, which you can find here:
https://www.youtube.com/watch?v=zWWc-aIHCzY

Thanks in advance for the help!  ;D

Offline Shazadah

  • Dedicated Supporter
  • ***
  • Posts: 259
  • Country: us
  • Floof-O-Meter: 11
  • Call me NaruWolf
    • http://shay-wolf.deviantart.com
    • https://www.youtube.com/user/Mid
    • View Profile
Re: Rogue Preset Texture
« Reply #1 on: March 13, 2015, 01:14:11 am »
Strange.

I've seen something like this only once before, but I never looked much into it for the problem's resolve, so I couldn't tell you a straight answer.

However, I somewhat question your preset coding. Although there are many ways to code an animated preset, some ways work better than others, and proven easier too. For simple codes that you can use to do things beyond their specific purpose, I'd recommend visiting this thread here. Look for the "Scrolling" code.

If you still can't figure out what is going on, I might be able to tweak it myself if you feel comfortable with PMing me the preset's folder, and I'll try my best to fix it up. If not, I'll try looking around for any similar problems and the answers to solving them, but given some threads are deleted if ever left untouched from over time, there are no guarantees anything of the like is still around.
« Last Edit: March 13, 2015, 01:18:41 am by Shasta~ »