Feral Heart

Help & Guidance => Game Help => Topic started by: cozyyote on October 02, 2014, 10:05:00 pm

Title: Need help on preset codes
Post by: cozyyote on October 02, 2014, 10:05:00 pm
Hi! Could someone post a preset code in the chat for: glowing and transparent presets? Thank you!
Title: Re: Need help on preset codes
Post by: S. Italy/Romano on October 02, 2014, 10:26:02 pm
Preset coding topics:
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)
http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=5665.0 (http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=5665.0)

In this case, glowing code would be this:
material preset_1_bodyMatL
{
   technique
   {
      pass
      {
         ambient 0.5 0.5 0.5
         texture_unit
         {
            texture NORMALTEXTURE.png
         }
      }
      pass
      {
         emissive 1.0 0.0 0.0
         scene_blend alpha_blend
         texture_unit
         {
            texture GLOWINGTEXTURE.png
         }
      }
   }
}

And transparent actually that's semi transparent:
material preset_1_bodyMatL
{
   technique
   {
      pass
      {
         depth_check on
         depth_write off
         scene_blend alpha_blend
         texture_unit
         {
            texture preset_1body.png
         }
      }
   }
}

Here's the full transparency:
material preset_1_bodyMatL
{
   technique
   {
      pass
      {
         alpha_rejection greater_equal 128
         texture_unit
         {
            texture preset_1body.png
         }
      }
   }
}
Title: Re: Need help on preset codes
Post by: cozyyote on October 03, 2014, 10:09:19 pm
I meant at the same time. o.o I think its so confusing!
Title: Re: Need help on preset codes
Post by: Whisperingwaves on October 04, 2014, 12:44:10 am
I think you would just combing the codes, but without doubling the bodyMat code. c:

~ Whisper
Title: Re: Need help on preset codes
Post by: cozyyote on October 04, 2014, 01:14:17 am
Combining?
Title: Re: Need help on preset codes
Post by: S. Italy/Romano on October 04, 2014, 03:20:37 am
I finally figured it out, with this code however, you cannot have something semi transparent and glowing, only fully transparent (meaning if you have a paw pad that's only half visible, this won't work. The paw pad has to be completely see-through).

material preset_1_bodyMatL
{
   technique
   {
      pass
      {
alpha_rejection greater_equal 128
         texture_unit
         {
            texture TRANSPARENT(OR HAS SEE THROUGH PARTS).png
         }
      }
      pass
      {
scene_blend alpha_blend
         emissive 1.0 0.0 0.0
         texture_unit
         {
            texture GLOWING.png
         }
      }
   }
}
Title: Re: Need help on preset codes
Post by: SnappleApple on October 04, 2014, 03:22:57 am
Aww, you guys beat me to it. cx