Feral Heart

Help & Guidance => Game Help => Topic started by: ShadowFang1355 on September 03, 2018, 04:25:21 am

Title: Broken Preset Mane
Post by: ShadowFang1355 on September 03, 2018, 04:25:21 am
I'm making a preset for a friend and the mane won't render correctly. (That or the texture isn't working.)
I've looked around some but all of the codes I've tried out haven't worked.

The code I'm currently using is this.

material preset_5_maneMat
{
        technique
        {
                pass
                {
                        cull_hardware none
                        cull_software none
                        alpha_rejection greater_equal 128
                        texture_unit
                        {
                                texture preset_5mane.jpg
                        }
                }
        }
}

The other code I tried, the mane only appeared as white. (Some of the manes still look like this.)

(https://orig00.deviantart.net/5249/f/2018/245/a/9/bandicam_2018_09_02_23_18_17_793_by_wolf24019-dclvzbw.jpg)
(https://orig00.deviantart.net/6c2e/f/2018/245/e/2/bandicam_2018_09_02_23_18_48_199_by_wolf24019-dclvzbj.jpg)
(https://orig00.deviantart.net/6614/f/2018/245/2/b/bandicam_2018_09_02_23_19_44_789_by_wolf24019-dclvzb6.jpg)
Title: Re: Broken Preset Mane
Post by: Lucius on September 03, 2018, 05:13:42 am
The actual code looks fine, but the fluffy mane doesn't work on presets right from the get go. You need to add an extra section at the end of the material file code.

In order to fix the "Fluffy" mane not showing up, we need to add an extra section in the material file for the texture to work.

Code: [Select]
material preset_1_maneMat2
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture FLUFFY MANE TEXTURE.png
}
}
}
}

Add this after the regular mane section.

Secondly, JPGs don't support transparency, your mane texture needs to be a .PNG file and it should have the transparent parts on the bottom like so:

(https://i.imgur.com/hFhS5qq.png)
Title: Re: Broken Preset Mane
Post by: ShadowFang1355 on September 03, 2018, 03:11:59 pm
It works now. Thanks Lucius!
Title: Re: Broken Preset Mane
Post by: Kynvuu on September 03, 2018, 04:53:51 pm
Locking this as the issue was solved c: