Author Topic: Moving Presets  (Read 1513 times)

Offline Kyugima

  • Dovahkiin
  • Ancient Silver Mane
  • *****
  • Posts: 4,438
  • Floof-O-Meter: 182
  • Koo Koo Kachoo
    • View Profile
    • DropJaw
Moving Presets
« on: December 29, 2011, 01:23:19 pm »
  Hey, just wanted to know how to make a moving preset. I have searched on my own and all, but the answers I have gotten haven't really done much to help, and the list of codes doesn't specify HOW, just the code you need to make it work. I do know how to insert codes into presets, that is not the issue. The issue is how do I make the image so that it functions with the said code, that is ALWAYS the information missing when I look this stuff up.

please click here! Help me raise my pokemon!
Avatar: Sameth
Signature: Kyugima, Rimfrost, Deafosho

Offline antherax

  • Pack & Pride Representative
  • ****
  • Posts: 1,191
  • Floof-O-Meter: 19
    • View Profile
Re: Moving Presets
« Reply #1 on: December 29, 2011, 04:47:45 pm »
Well if you know how to get to the tutorial part on the website Tigg has  tutorial (Sorry if i can't send you a link :b)
dead account

Offline Kyugima

  • Dovahkiin
  • Ancient Silver Mane
  • *****
  • Posts: 4,438
  • Floof-O-Meter: 182
  • Koo Koo Kachoo
    • View Profile
    • DropJaw
Re: Moving Presets
« Reply #2 on: December 30, 2011, 12:03:34 am »
Tigg only has the code as far as I checked, no details on how to create the image. What I need is what I'm supposed to do with the image to get it to work.

please click here! Help me raise my pokemon!
Avatar: Sameth
Signature: Kyugima, Rimfrost, Deafosho

Offline Flatsoda

  • Finest Floof
  • ***
  • Posts: 911
  • Country: 00
  • Floof-O-Meter: 43
  • hOnK (o:
    • View Profile
Re: Moving Presets
« Reply #3 on: December 30, 2011, 03:03:28 pm »
Hmm, I could try to copy some moving codes from IT presets into FH. Doubt it'd work though.
You need some transparency on your body/head/ect; that is where the moving markings will be.
But anyways, here's the test code; maybe this'll make it easier.

Code: [Select]
material preset_1bodyMatL
{
   receive_shadows on
   technique
   {
   pass
      {
       texture_unit
         {
         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 PRESET_1MOVINGTEX.jpg
         tex_address_mode wrap
         filtering trilinear
         colour_op replace
         scroll_anim 0.0 0.1
         }
         texture_unit
         {
         texture PRESET_1BODYL.png
         tex_address_mode wrap
         filtering trilinear
         colour_op alpha_blend
         }
      }
   }
}
material preset_1bodyMatR
{
   receive_shadows on
   technique
   {
   pass
      {
       texture_unit
         {
         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 PRESET_1MOVINGTEX.jpg
         tex_address_mode wrap
         filtering trilinear
         colour_op replace
         scroll_anim 0.0 0.1
         }
         texture_unit
         {
         texture PRESET_1BODYR.png
         tex_address_mode wrap
         filtering trilinear
         colour_op alpha_blend
         }
      }
   }
}
material preset_1headMatL
{
   receive_shadows on
   technique
   {
   pass
      {
       texture_unit
         {
         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 PRESET_1MOVINGTEX.jpg
         tex_address_mode wrap
         filtering trilinear
         colour_op replace
         scroll_anim 0.0 0.1
         }
         texture_unit
         {
         texture PRESET_1HEADL.png
         tex_address_mode wrap
         filtering trilinear
         colour_op alpha_blend
         }
      }
   }
}
material preset_1headMatR
{
   receive_shadows on
   technique
   {
   pass
      {
       texture_unit
         {
         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 PRESET_1MOVINGTEX.jpg
         tex_address_mode wrap
         filtering trilinear
         colour_op replace
         scroll_anim 0.0 0.1
         }
         texture_unit
         {
         texture PRESET_1HEADR.png
         tex_address_mode wrap
         filtering trilinear
         colour_op alpha_blend
         }
      }
   }
}
material preset_1eyeMatL
{
   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 PRESET_1EYEL.png
           tex_address_mode wrap
           filtering trilinear
         }
      }
   }
}
material preset_1tailMat
{
   receive_shadows on
   technique
   {
   pass
      {
       texture_unit
         {
         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 PRESET_1MOVINGTEX.jpg
         tex_address_mode wrap
         filtering trilinear
         colour_op replace
         scroll_anim 0.0 0.1
         }
         texture_unit
         {
         texture PRESET_1TAIL.png
         tex_address_mode wrap
         filtering trilinear
         colour_op alpha_blend
         }
      }
   }
}
material preset_1maneMat
{
   receive_shadows on
   technique
   {
      pass
      {
         //lighting off
         ambient 0.6 0.6 0.6 0.6
         diffuse 0.6 0.6 0.6 0.6
         specular 0 0 0 0
         emissive 0 0 0 0
         depth_write off
         scene_blend add
         texture_unit
         {
            texture PRESET_1MANE.png
            scroll_anim 0.0 0.1
            tex_address_mode wrap
            filtering trilinear
         }
      }
   }
}

Offline Kyugima

  • Dovahkiin
  • Ancient Silver Mane
  • *****
  • Posts: 4,438
  • Floof-O-Meter: 182
  • Koo Koo Kachoo
    • View Profile
    • DropJaw
Re: Moving Presets
« Reply #4 on: December 30, 2011, 03:22:26 pm »
  Once again, I have the information I did not ask for. I am looking for how to create the image, not the code. Though a code that goes with a specific way of creating animated presets would help, but just the code and no actual information on how to create the image to go with the code is not really helpful.

please click here! Help me raise my pokemon!
Avatar: Sameth
Signature: Kyugima, Rimfrost, Deafosho

Offline Tigg

  • Immortal Legend
  • *****
  • Posts: I am a geek!!
  • Country: at
  • Floof-O-Meter: 0
  • Your right hand on 3D-Meshes
    • t-i-g-g
    • channel/UCKuFJTwBJf94Tq07oVBNMrA
    • 76561198118876593
    • TiggDarkfury
    • View Profile
    • Isla Thanatos Gameserver
Re: Moving Presets
« Reply #5 on: December 30, 2011, 04:24:38 pm »
THe Image is not the basic for a script/code.

You have to see it this way:

The image is just a file the code works with.
So the code is in place 1 in the list, then just comes the image.

To get a moving texture on a preset you need the right CODE. The image has to be a super normal not specific overworked file.
Prefered is .png for the quality of the optical look.

so.. you want a moving texture look here:

material preset_1bodyMatL
{
   receive_shadows on
   technique
   {
   pass
      {
       texture_unit
         {
         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 PRESET_1BODYL.png
         scroll_anim 0.0 0.1 (THIS MAKES THE TEXTURE MOVE!!)
         tex_address_mode wrap
         filtering trilinear
         colour_op alpha_blend
         }
      }
   }
}


so just put the line scroll_anim 0.0 0.1 under the texture line and play with the numbers to change the scrol direction and speed.

Offline Bluminescent

  • Finest Floof
  • ***
  • Posts: 550
  • Country: us
  • Floof-O-Meter: 59
  • "It's always about your friends, isn't it?"
    • Bluminescent
    • blumutt
    • View Profile
Re: Moving Presets
« Reply #6 on: February 26, 2012, 02:46:59 am »
What do you mean "put the line scroll_anim 0.0 0.1 under the texture line?"
My Deviantart



" Y'ever wonder what stars are? Where light comes from? "

Offline Ingredient

  • ~Dead men tell no tales~
  • Ancient Silver Mane
  • *****
  • Posts: 3,662
  • Country: 00
  • Floof-O-Meter: 366
    • Ingredient91
    • View Profile
Re: Moving Presets
« Reply #7 on: February 26, 2012, 03:46:25 am »
What do you mean "put the line scroll_anim 0.0 0.1 under the texture line?"

See the text in red above? He means put that text underneath where the image name is.

Will be inactive due to work and exams.