Author Topic: Help On Preset Coding  (Read 2923 times)

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: Help On Preset Coding
« Reply #10 on: August 23, 2016, 12:35:28 pm »
Went through my PMs right quick, since I knew I had sent one on masking before.
This may help you @EscapeReality, and maybe even @HidenShadow.

Here I illustrated the difference between using your actual texture and making it double as the mask, versus black/white masking, which usually leaves edges. (I promise I'm not trying to overwhelm you aaa)

Hullo, hullo!

No worries, a scrolling mane is possible without looking all gross!

All you need to do is split your scrolling texture into two separate textures, one will serve as a mask, the other as the actual scrolling source.

Copy your scrolling texture and cut it out according to fmanemask, found in:
FeralHeart > media > textures


Save the new cutout version as whatever you want, I just use preset_#manemask.png

Use this code:
Code: [Select]
material preset_1_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 200
texture_unit
{
texture preset_1manemask.png
}
texture_unit
{
texture preset_1manemask.png
colour_op alpha_blend
}
texture_unit
{
texture preset_1scroll.png
scroll_anim 1.0 1.0
colour_op_ex blend_current_alpha src_texture src_current
}
}
}
}

Make sure you use the first two texture spots for the MASK, then only the last one is for the original scrolly texture.

Boom.
Done. c:


((ignore the fact that that is someone else's preset who also needed help. shhh.))

So you can see on the last .gif, the mane is using this method, and the head is using white masking.

Hope that also gives some insight. ;n;

Offline ApeEscape92

  • Curious Wanderer
  • *
  • Posts: 14
  • Country: 00
  • Floof-O-Meter: 1
    • View Profile
    • Tigers of Temptation
Re: Help On Preset Coding
« Reply #11 on: August 23, 2016, 06:50:47 pm »
Thank you ^_^ Yes, it does help...  8)


          Sarsaparilla(c)EscapeReality

Offline Kerriki

  • Band Geek
  • Immortal Legend
  • *****
  • Posts: 5,670
  • Country: us
  • Floof-O-Meter: 371
  • Who needs furniture when you have the floor?
    • Kikiorylandia
    • View Profile
    • DeviantART
Re: Help On Preset Coding
« Reply #12 on: August 24, 2016, 01:16:22 am »
I'll go ahead and lock this up now since the issue appears to be solved
Farewell everyone<3