Author Topic: Animated Preset?  (Read 9506 times)

Crocodile

  • Guest
Re: Animated Preset?
« Reply #20 on: February 02, 2012, 06:47:42 pm »
Here's the code:

material preset_9_bodyMatL
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
         {
         anim_texture body.jpg body10.jpg body11.jpg body12.jpg 1
         tex_address_mode wrap
         filtering trilinear
         rotate_anim 0.00
         }
      }
   }
}     
material preset_9_bodyMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_9body.jpg
         }
      }
   }
}
material preset_9_headMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_9head.jpg
         }
      }
   }
}
material preset_9_headMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture preset_9head.jpg
         }
      }
   }
}
material preset_9_eyeMatL
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_2eye.jpg
         }
      }
   }
}
material preset_9_eyeMatR
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture preset_9eye.jpg
         }
      }
   }
}
material preset_9_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
         {
         anim_texture preset_9tail1.jpg preset_9tail2.jpg 1
         tex_address_mode wrap
         filtering trilinear
         rotate_anim 0.00
         }
      }
   }
}     
material preset_9_maneMat
{
   technique
   {
      pass
      {
         lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         depth_write off
         texture_unit
         {
            texture preset_9mane.png
         }   
      }   
   }
}



Here's the preset (or what happens when I go to preset maker):


missing preset by Crocodilian1, on Flickr

Offline Lawcere

  • Finest Floof
  • ***
  • Posts: 513
  • Floof-O-Meter: 21
    • View Profile
Re: Animated Preset?
« Reply #21 on: February 02, 2012, 07:18:16 pm »
Well, you're missing the { before "receive_shadows on" in the first section, but I don't know if that's a big difference or not. I don't understand why everything is not working...

The file for preset_9_eyeMatL is marked as preset_2eye.jpg...

Change that first and test it again.

---

Oh, also to make sure, are your files saved as .jpg or .png? Because I often forget to change that in the coding.

Try putting
color_op replace
in between "filtering trilinear" and "rotate_anim 0.0"

I have this in my coding, though I'm not sure why. I do remember I had a lot of trouble getting mine to work as well, so maybe this randomly helps you out. If not then I'm going to have to say you need to start over and carefully look over each file and your coding. And when that doesn't work, go nuts and mess around with the coding until it works. It's all very frustrating when things don't work like they're suppose to...
« Last Edit: February 02, 2012, 07:25:37 pm by Lawcere »

Crocodile

  • Guest
Re: Animated Preset?
« Reply #22 on: February 02, 2012, 07:28:56 pm »
Nope. I even switched this code to an updated version I just downloaded, added the "color_op replace", but same results.

Offline Lawcere

  • Finest Floof
  • ***
  • Posts: 513
  • Floof-O-Meter: 21
    • View Profile
Re: Animated Preset?
« Reply #23 on: February 02, 2012, 07:47:04 pm »
Nope. I even switched this code to an updated version I just downloaded, added the "color_op replace", but same results.

Well, like I said, restart with the default coding and make sure it'll run with just one version of your files (no multiple "slides"). Then add in different coding one at a time to see where things go wrong.

Crocodile

  • Guest
Re: Animated Preset?
« Reply #24 on: February 02, 2012, 08:51:32 pm »
I went down to just 2 slides, and I'm unable to see the preset folder in the preset maker. :/

Crocodile

  • Guest
Re: Animated Preset?
« Reply #25 on: February 02, 2012, 09:48:29 pm »
It worked with the tail, I don't know why it didn't work with the body.

Lol, at this rate I doubt I'm going to manage 50+ slides. >.<

Offline Lawcere

  • Finest Floof
  • ***
  • Posts: 513
  • Floof-O-Meter: 21
    • View Profile
Re: Animated Preset?
« Reply #26 on: February 02, 2012, 10:11:41 pm »
It worked with the tail, I don't know why it didn't work with the body.

Lol, at this rate I doubt I'm going to manage 50+ slides. >.<

lol I tell you, it doesn't listen to reason. You just need to beat it with a stick for it to work.

Crocodile

  • Guest
Re: Animated Preset?
« Reply #27 on: February 02, 2012, 10:25:45 pm »
How'd you get your moving-clouds preset to work? It must've taken a LOOONG time. xD




I'll try animating the tail once more.

Crocodile

  • Guest
Re: Animated Preset?
« Reply #28 on: February 02, 2012, 10:43:07 pm »
Fo the tail, though, and other parts of the body, is there a way to change a certain color, but leave another alone?

I want to change the black to blue, and then to purple, red, and so on, but keep the stars in the same position to make it look a bit more realistic. Is there a way to do this in Photoshop?

Crocodile

  • Guest
Re: Animated Preset?
« Reply #29 on: February 02, 2012, 10:44:12 pm »
Never mind, I just figured out layering. >.<