Author Topic: Broken Preset Mane  (Read 1220 times)

Offline ShadowFang1355

  • Pack & Pride Representative
  • ****
  • Posts: 1,154
  • Country: us
  • Floof-O-Meter: 13
  • I made my profile picture.
    • Wolf24019
    • ShadowFang1355
    • View Profile
Broken Preset Mane
« 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.)



Oh, cool, I exist.

Lucius

  • Guest
Re: Broken Preset Mane
« Reply #1 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:


Offline ShadowFang1355

  • Pack & Pride Representative
  • ****
  • Posts: 1,154
  • Country: us
  • Floof-O-Meter: 13
  • I made my profile picture.
    • Wolf24019
    • ShadowFang1355
    • View Profile
Re: Broken Preset Mane
« Reply #2 on: September 03, 2018, 03:11:59 pm »
It works now. Thanks Lucius!
Oh, cool, I exist.

Offline Kynvuu

  • #Grimstagram
  • Elder Grey Pelt
  • ****
  • Posts: 2,538
  • Country: us
  • Floof-O-Meter: 212
  • I'm not saying that it was aliens but...
    • View Profile
Re: Broken Preset Mane
« Reply #3 on: September 03, 2018, 04:53:51 pm »
Locking this as the issue was solved c:
On a temporary leave. Please contact other members of staff if you need assistance.