Feral Heart

Help & Guidance => Game Help => Topic started by: Kyugima on December 29, 2011, 01:23:19 pm

Title: Moving Presets
Post by: Kyugima 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.
Title: Re: Moving Presets
Post by: antherax 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)
Title: Re: Moving Presets
Post by: Kyugima 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.
Title: Re: Moving Presets
Post by: Flatsoda 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
         }
      }
   }
}
Title: Re: Moving Presets
Post by: Kyugima 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.
Title: Re: Moving Presets
Post by: Tigg 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.
Title: Re: Moving Presets
Post by: Bluminescent 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?"
Title: Re: Moving Presets
Post by: Ingredient 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.