Author Topic: Preset Help- Moving Textures?  (Read 4597 times)

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Preset Help- Moving Textures?
« Reply #10 on: August 02, 2011, 10:52:43 pm »
Ah, okay. Try this code:
Code: [Select]
material preset_(FOLDER NUMBER)_tailMat
{
technique
{
pass
{
texture_unit
{
animtexture IMAGENAMEHERE.png IMAGENAMEHERE.png 1
}
}
}
}
Change IMAGENAMEHERE.png to your image's names. (And yes, you can add more.) Then change the 1 to how many seconds before it switches to the next image.
« Last Edit: August 02, 2011, 10:54:27 pm by xRubyx »

Hydraulis

  • Guest
Re: Preset Help- Moving Textures?
« Reply #11 on: August 03, 2011, 08:09:14 pm »
Ok, I'll try it once I can get on my desktop. I'll reply again to say if it works or not.

Hydraulis

  • Guest
Re: Preset Help- Moving Textures?
« Reply #12 on: August 04, 2011, 12:24:03 am »
Again, it didn't work. This time, the preset number didn't even show up in the Maker. Here is the code I used:

material preset_7_BodyMat
{
   technique
   {
      pass
      {
         texture_unit
         {
            animtexture preset_7body1.png preset_7body2.png 1
         }
      }
   }
}

Is there something I'm doing wrong? Maybe the animated part isn't supposed to be on a transparent background...?

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Preset Help- Moving Textures?
« Reply #13 on: August 04, 2011, 05:15:04 am »
All of them need to be flat images, no layers.

Offline Toxikk

  • Finest Floof
  • ***
  • Posts: 525
  • Floof-O-Meter: 16
  • HoNk!
    • View Profile
Re: Preset Help- Moving Textures?
« Reply #14 on: August 04, 2011, 02:03:13 pm »
Check out the administrator "Tigg"'s tutorial or her presets. c:
Look in the tutorial section for more if her's doesn't help. If all fails, just tell me.

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Preset Help- Moving Textures?
« Reply #15 on: August 04, 2011, 03:35:13 pm »
They were using Tigg's thread.

Hydraulis

  • Guest
Re: Preset Help- Moving Textures?
« Reply #16 on: August 04, 2011, 07:56:37 pm »
They're all flat images; I made sure of that. But the number 7, the preset I'm using for this, isn't showing up in the Preset Maker so I can't see if anything's working. How do I get it back?

And Coony, what tutorial? Can you link me?

Thunderheart

  • Guest
Re: Preset Help- Moving Textures?
« Reply #17 on: August 05, 2011, 02:22:44 pm »
If the preset doesn't show up ingame, there must be something wrong with the mat code names.
In the code you posted at last you forgot the side the mat should be on; left or right. If you want both sides to show the same mat, just copy the code for one side and rename it for the other side. Hope this is understandable, I confused myself with it...

Hydraulis

  • Guest
Re: Preset Help- Moving Textures?
« Reply #18 on: August 08, 2011, 12:43:34 pm »
I know what you mean, Thunder. I changed it. xD
Buuuut I think I've found the real source of the problem: I think You gave me the wrong code, Ruby. ^^' Well, that or I didn't specify well enough what I was trying to do. Let me explain it like this: I'm trying to get an animated texture (with transparency) over a solid texture.

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Preset Help- Moving Textures?
« Reply #19 on: August 08, 2011, 03:40:14 pm »
Oh, now I see. You want a layered preset... okay. Lemme find my code.

-Edit-
Lol, sorry for derpin' xD
Try this one.
Code: [Select]
material preset_7_bodyMatL
{
receive_shadows on
technique
{
pass
{
texture_unit
{
texture (base layer here)
scale 1 1
}
texture_unit
{
texture (mask layer here)
colour_op alpha_blend
}
texture_unit
{
anim_texture (textures you want to be animated here) 1
colour_op_ex blend_current_alpha src_texture src_current
tex_address_mode wrap
filtering trilinear
}
}
}
}
Now let me explain this.
"base layer here" Is where the main texture goes. The texture of your lion/wolf's body, legs colored, everything colored.
"mask layer here" is where you put a transparent image with just the legs colored in white. (The area colored in white will be where the animation is.)
"textures you want to be animated here" is where you name all the textures for the animation. And that 1 tells you how long until it switches frames.

Okay, provided I understand what you want, that should work.
« Last Edit: August 08, 2011, 04:02:15 pm by xRubyx »