Feral Heart

Help & Guidance => Game Help => Topic started by: damiian on December 01, 2014, 06:48:51 pm

Title: Is it possible to make preset eyes glow?
Post by: damiian on December 01, 2014, 06:48:51 pm
by any chance i was wondering if there was a code to make eyes glow?
E.G change color (like blue to green, grey to black etc etc)
since for out of boredom i just got into making random feral heart presets (even though i no longer play the game) i just wanted to see if it was possible to do
Title: Re: Is it possible to make preset eyes glow?
Post by: Bawfle on December 01, 2014, 07:02:38 pm
It is indeed if you use this code:

material preset_1_eyeMatL
{
   technique
   {
      pass
      {
       alpha_rejection greater_equal 128
         cull_hardware none
         cull_software none
         texture_unit
         {
               anim_texture Image1.png Image2.png Image3.png 3.0
         }
      }
   }
}
material preset_1_eyeMatR
{
   technique
   {
      pass
      {
       alpha_rejection greater_equal 128
         cull_hardware none
         cull_software none
         texture_unit
         {
               anim_texture Image1.png Image2.png Image3.png 3.0
         }
      }
   }
}
The part in red is the time. Example; change the time to 2.0 seconds to make the animation/glow flow faster. The part in green is what you're animating to glow. For example, you want to change from green to blue to grey. There for you will make three or more different coloured eyes to use or name as Image1.png Image2.png Image3.png and so on...

If you're stuck, come back and I'll explain to you more :)
Title: Re: Is it possible to make preset eyes glow?
Post by: Berrymutt on December 01, 2014, 07:46:16 pm
Depending on what you want requires special coding. If you want ''Glowing'' eyes I recommend using that code that dear Bawfle quoted up there. It actually might not be what you want, the change of colors like that may seem like A ''Scrolling'' coding or ''Moving Markings'' coding. Glowing eyes are usually a lighter color drifting into a darker color, or a darker color drifting into a lighter color.
If both of these codings are not what you wanted in the end I recommend checking out Ruby's Material Coding Tutorital found here:
http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=26062.0. (http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=26062.0.)
Also check out Youtube Videos or more Tutorials here on the forums if you need extra help. Hoped this helped, and have fun with your glowly eyeballs!