Author Topic: Need help on preset codes  (Read 2709 times)

Offline cozyyote

  • Experienced Traveler
  • **
  • Posts: 238
  • Country: us
  • Floof-O-Meter: 19
  • owo what's this?
    • cozyyote
    • cozyyote
    • @cozyyote
    • View Profile
    • Telegram Art Channel
Need help on preset codes
« 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!
« Last Edit: October 02, 2014, 10:06:34 pm by Trasse »

S. Italy/Romano

  • Guest
Re: Need help on preset codes
« Reply #1 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=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
         }
      }
   }
}

Offline cozyyote

  • Experienced Traveler
  • **
  • Posts: 238
  • Country: us
  • Floof-O-Meter: 19
  • owo what's this?
    • cozyyote
    • cozyyote
    • @cozyyote
    • View Profile
    • Telegram Art Channel
Re: Need help on preset codes
« Reply #2 on: October 03, 2014, 10:09:19 pm »
I meant at the same time. o.o I think its so confusing!

Offline Whisperingwaves

  • #2FAB4U
  • Community Champion
  • ****
  • Posts: 1,593
  • Country: us
  • Floof-O-Meter: 135
  • #SlainyTheBattleTurkey
    • Whisperingwaves
    • @slainytbm
    • View Profile
    • Kiros
Re: Need help on preset codes
« Reply #3 on: October 04, 2014, 12:44:10 am »
I think you would just combing the codes, but without doubling the bodyMat code. c:

~ Whisper

Avatar by Chezdip on Lioden || Signature by Jackdaw ♥
In-Game As Whisperingwaves

Offline cozyyote

  • Experienced Traveler
  • **
  • Posts: 238
  • Country: us
  • Floof-O-Meter: 19
  • owo what's this?
    • cozyyote
    • cozyyote
    • @cozyyote
    • View Profile
    • Telegram Art Channel
Re: Need help on preset codes
« Reply #4 on: October 04, 2014, 01:14:17 am »
Combining?

S. Italy/Romano

  • Guest
Re: Need help on preset codes
« Reply #5 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
         }
      }
   }
}

Offline SnappleApple

  • Experienced Traveler
  • **
  • Posts: 153
  • Country: us
  • Floof-O-Meter: 8
  • An inkling irl
    • SnappleZeApple
    • cherry-gore
    • View Profile
Re: Need help on preset codes
« Reply #6 on: October 04, 2014, 03:22:57 am »
Aww, you guys beat me to it. cx
Find me In-Game as CandyGore/ Thunderbirds!