Feral Heart

Help & Guidance => Game Help => Topic started by: Nawazish on June 06, 2018, 10:19:51 pm

Title: Preset help
Post by: Nawazish on June 06, 2018, 10:19:51 pm
Greeting!

I am currently working on my first ever preset, quite proud of it.
I've been experiencing preset code and I have to say it's quite fun! However, I would like to know if there's a possible way to add two code on one preset?

I wish to have ambient code on my preset, but my character have some missing limb and ripped ear.
If there is, would somebody accept to show me the code to use and if there is something to do for it to work, tell me?

Thank you,
Aedan
Title: Re: Preset help
Post by: Lucius on June 06, 2018, 10:41:35 pm
Sure, it's possible.
Your coding for each section with ambient and transparency will look something like this:

Code: [Select]
material preset_1_bodyMatL
{
technique
{
pass
{
ambient 0.5 0.5 0.5
alpha_rejection greater_equal 128
scene_blend alpha_blend
texture_unit
{
texture preset_1body.png
}
}
}
}

You can change the ambient values to what you want, following this handy tutorial: Updated 9/16/16 Material Coding for Beginners! Glow, metal, transparent, more! (https://feral-heart.com/smf/index.php?topic=26062.msg379366#msg379366) (scroll down a bit for ambient code and explanations).

If your preset has hard transparency edges (no airbrush/soft/gradient fade) then you can remove the "scene_blend alpha_blend" line. Otherwise, keep it in.
Title: Re: Preset help
Post by: Nawazish on June 06, 2018, 11:00:58 pm
Sure, it's possible.
Your coding for each section with ambient and transparency will look something like this:

Code: [Select]
material preset_1_bodyMatL
{
technique
{
pass
{
ambient 0.5 0.5 0.5
alpha_rejection greater_equal 128
scene_blend alpha_blend
texture_unit
{
texture preset_1body.png
}
}
}
}

You can change the ambient values to what you want, following this handy tutorial: Updated 9/16/16 Material Coding for Beginners! Glow, metal, transparent, more! (https://feral-heart.com/smf/index.php?topic=26062.msg379366#msg379366) (scroll down a bit for ambient code and explanations).

If your preset has hard transparency edges (no airbrush/soft/gradient fade) then you can remove the "scene_blend alpha_blend" line. Otherwise, keep it in.

Ah, I see!
Thank you so much for this my friend ^^

Any moderator are free to lock this thread.
Title: Re: Preset help
Post by: Kerriki on June 06, 2018, 11:06:39 pm
Locking, have fun with your preset!