Author Topic: Mane fix code for presets not working  (Read 3176 times)

Offline anahel

  • Curious Wanderer
  • *
  • Posts: 28
  • Country: 00
  • Floof-O-Meter: 4
  • the matrix has you
    • View Profile
Mane fix code for presets not working
« on: June 06, 2015, 10:53:27 pm »
Exactly what it says on the can.
So, it works to fix the weird transparency thing on canines, but it does nothing on felines. Here's a screeny WITH the code "fixed":


As you can see, the glitch is still there.

Here's the coding I'm using, if anyone could help me find the problem:
Code: [Select]
material preset_7_maneMat
{
        technique
        {
                pass
                {
                        cull_hardware none
                        cull_software none
                        alpha_rejection greater_equal 128
                        texture_unit
                        {
                                texture preset_7mane.png
                        }
                }
        }
}
Thanks to anyone who can help!
[/color]

returning 2011 player on a new account. just trying to remember how it all works c:
avi from here

Offline Enoki

  • Herba Chronographus
  • Elder Grey Pelt
  • ****
  • Posts: 2,698
  • Country: us
  • Floof-O-Meter: 121
  • Who lives in a portabella under a tree?
    • FantasyFungus
    • EnokiTheDryphon
    • Enoki_G
    • View Profile
    • The Realms of Yugure
Re: Mane fix code for presets not working
« Reply #1 on: June 07, 2015, 03:39:35 am »
Hmm, have you tried placing the preset into a different number/file? It's kind of difficult to see exactly the transparency, but I have had that issue before-except this coding you have fixed it for my files.

Also, I noticed that you have alpha_rejection line back a bit and the texture unit line should be back slightly. It should be aligned with the cull hardware and software lines. Not sure if that would cause the issue and if the coding is really that picky then sheesh; but you can never know until you try.

Best of luck in your preset making.

Tmw you planned a ten minute nap but instead took a whole year.
☙Icon by dA JRProducts; Sig by PocketMutt❧

Offline anahel

  • Curious Wanderer
  • *
  • Posts: 28
  • Country: 00
  • Floof-O-Meter: 4
  • the matrix has you
    • View Profile
Re: Mane fix code for presets not working
« Reply #2 on: June 07, 2015, 05:12:22 am »
Thanks for the help! It's fixed now - turns out the texture I was using wasn't masked properly so the ends of the transparency were conflicting with the ones in game. And yes, the coding was off, so thanks for suggesting that fix. Many thanks.

returning 2011 player on a new account. just trying to remember how it all works c:
avi from here

Offline Enoki

  • Herba Chronographus
  • Elder Grey Pelt
  • ****
  • Posts: 2,698
  • Country: us
  • Floof-O-Meter: 121
  • Who lives in a portabella under a tree?
    • FantasyFungus
    • EnokiTheDryphon
    • Enoki_G
    • View Profile
    • The Realms of Yugure
Re: Mane fix code for presets not working
« Reply #3 on: June 07, 2015, 09:44:10 pm »
My pleasure! Glad ye got it fixed. Lovely preset, I'm sure ya'll get many compliments in-game. <3

Tmw you planned a ten minute nap but instead took a whole year.
☙Icon by dA JRProducts; Sig by PocketMutt❧