Feral Heart

Help & Guidance => Game Help => Topic started by: Veenus on November 13, 2017, 06:09:42 pm

Title: Preset help(coding wise)
Post by: Veenus on November 13, 2017, 06:09:42 pm
So, I don't exactly know where to post this so feel free to move it to where it belongs.

Anyways, I'm making a preset and I wanted to mask it so I could have scrolling markings and a glowing spot on the head, however, I've looked everywhere and attempted to code it but kept failing. Does anyone know how do this? :^

I already made the mask, I just need help with the coding. If anyone could help that'd be so amazing >.<
Title: Re: Preset help(coding wise)
Post by: Kuri on November 13, 2017, 07:38:58 pm
This place Clickable link (https://feral-heart.com/smf/index.php?board=139.0) had some good ones, i recommend Ruby1234 thread for good explanations.
Title: Re: Preset help(coding wise)
Post by: Veenus on November 13, 2017, 10:07:28 pm
This place Clickable link (https://feral-heart.com/smf/index.php?board=139.0) had some good ones, i recommend Ruby1234 thread for good explanations.

That teaches you how to do the glowing effect, I already know how to do it. I'm just having issues mask the preset, I've already masked what I want masked. I just have to get the code to read it properly. I've looked there and couldn't find a code for masking. :/
Title: Re: Preset help(coding wise)
Post by: Kuri on November 14, 2017, 03:57:16 am
Kind of like this?
Code: [Select]
pass
{
scene_blend add
texture_unit
{
texture flames.png
scroll_anim -0.6 -1.0
tex_address_mode wrap
        filtering trilinear
}
scene_blend alpha_blend
texture_unit
{
texture flamemask.png
}
}
}
}
Because that's what i used with a white coloured mask with a transparent background.
Obviously you change the name from "flamemask.png" to whatever your mask is called.

Does that help at all?
Title: Re: Preset help(coding wise)
Post by: Veenus on November 14, 2017, 04:18:13 am
Kind of like this?
Code: [Select]
pass
{
scene_blend add
texture_unit
{
texture flames.png
scroll_anim -0.6 -1.0
tex_address_mode wrap
        filtering trilinear
}
scene_blend alpha_blend
texture_unit
{
texture flamemask.png
}
}
}
}
Because that's what i used with a white coloured mask with a transparent background.
Obviously you change the name from "flamemask.png" to whatever your mask is called.

Does that help at all?
Yes! It worked! Thank you <33 I've coded masks before but I forgot how to do the coding part. I lost the files that had masks so :'( Thank you so very much! :) I'll let you know if anything goes wrong. I'm working on this preset that had scrolling on the ears and marks on her face and thought glowing would be adorbs, but it required masking: http://tinypic.com/view.php?pic=2cmsyl0&s=9#.WgpubWhSzIU (Here's what she looks like)
Title: Re: Preset help(coding wise)
Post by: Kerriki on November 16, 2017, 12:37:06 am
Locking this since everything is working now, have fun with your preset!