Feral Heart

Help & Guidance => Member Made Tutorials => Presets & Markings Tutorials => Topic started by: SenseiRei on May 05, 2018, 05:22:29 pm

Title: Shading Script in your preset.
Post by: SenseiRei on May 05, 2018, 05:22:29 pm
Want Shading in your preset? Its real simple and looks FANTASTIC!
 It didn't take too long to research and test out, but here is the script i GOT FOR YOU!

Code: [Select]
material preset_6_bodyMatL
{
technique
{
pass
    {
     shading phong

                        ambient 0.6 0.6 0.6 1
specular 0 0 0 0 128
texture_unit
{
texture preset_6body.png
}
}
}
}
material preset_6_bodyMatR
{
technique
{
pass
{
shading phong

                        ambient 0.6 0.6 0.6 1
specular 0 0 0 0 128
texture_unit
{
texture preset_6body.png
}
}
}
}
material preset_6_headMatL
{
technique
{
pass
{
shading phong

                        ambient 0.6 0.6 0.6 1
specular 0 0 0 0 128
texture_unit
{
texture preset_6head.png
}
}
}
}
material preset_6_headMatR
{
technique
{
pass
{
shading phong

                        ambient 0.6 0.6 0.6 1
specular 0 0 0 0 128
texture_unit
{
texture preset_6head.png
}
}
}
}
material preset_6_eyeMatL
{
technique
{
pass
{
shading phong

                        ambient 0.6 0.6 0.6 1
specular 0 0 0 0 128
cull_hardware none
cull_software none
texture_unit
{
texture preset_6eye.png
}
}
}
}
material preset_6_eyeMatR
{
technique
{
pass
{
shading phong

                        ambient 0.6 0.6 0.6 1
specular 0 0 0 0 128
cull_hardware none
cull_software none
texture_unit
{
texture preset_6eye.png
}
}
}
}
material preset_6_tailMat
{
technique
{
pass
{
shading phong

                        ambient 0.6 0.6 0.6 1
specular 0 0 0 0 128
texture_unit
{
texture preset_6tail.png
}
}
}
}
material preset_6_maneMat
{
technique
{
pass
{
shading phong

                        ambient 0.6 0.6 0.6 1
specular 0 0 0 0 128
lighting on
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture preset_6mane.png
}
}
}
}

So basically all you need to add is this to every line
Code: [Select]
     shading phong

                        ambient 0.6 0.6 0.6 1
specular 0 0 0 0 128
Between the Pass{ and Texture_Unit{. And at the line for MANE, be sure to turn the LIGHTING ON!

Your results will come out like these!

(https://img00.deviantart.net/05d7/i/2018/141/7/0/shading_script_for_fh_presets_by_royaldog12-dcapm5m.png)

REMINDER! DONT MIX THESE WITH OTHER SCRIPTS THAT REQUIRE PART OF YOUR MAIN TEXTURE TO BE CUT OUT! IT WILL JUST TURN BLACK WITH THE SHADER CODE!
Please comment/share your results! i would love to see your beautiful presets all shaded and fancy! ^_^
Title: Re: Shading Script in your preset.
Post by: SenseiRei on May 21, 2018, 05:43:12 pm
[Deleted]
Title: Re: Shading Script in your preset.
Post by: Tigg on May 21, 2018, 08:21:25 pm
Can you compare these presets with and without shading?
Its kinda hard to see what it actually does o.o
Title: Re: Shading Script in your preset.
Post by: WolfQueen on May 22, 2018, 02:49:02 am
Tried it with my preset
Will most likely use this in her revamp. Thank you for sharing this!
Comparison

(https://i.gyazo.com/e51e7ce73f64aa3f73b3eb3cd5325aa2.png) (https://i.gyazo.com/212f83e87595ae5d9ceff25e18b28b9b.png)
It gives the model a deep blue glow at nighttime
Title: Re: Shading Script in your preset.
Post by: SenseiRei on May 22, 2018, 03:16:26 am
Can you compare these presets with and without shading?
Its kinda hard to see what it actually does o.o

Fixed
Title: Re: Shading Script in your preset.
Post by: SenseiRei on May 22, 2018, 03:16:42 am
Tried it with my preset
Will most likely use this in her revamp. Thank you for sharing this!
Comparison

(https://i.gyazo.com/e51e7ce73f64aa3f73b3eb3cd5325aa2.png) (https://i.gyazo.com/212f83e87595ae5d9ceff25e18b28b9b.png)
It gives the model a deep blue glow at nighttime

Wonderful Job!!!
Title: Re: Shading Script in your preset.
Post by: Centuries. on July 28, 2018, 02:13:05 pm
Seems fantastic to use! Ill try it out c: