Author Topic: Some mane coding help?  (Read 3297 times)

Offline flandesuyo1

  • Familiar Grounds Dweller
  • **
  • Posts: 65
  • Country: us
  • Floof-O-Meter: 0
  • 月の王女
    • View Profile
Some mane coding help?
« on: September 26, 2017, 03:53:54 am »
So I originally had some issue with my character's mane a month or two a while back and I was tryin got fix it with some code or something but ended up not touching it and now the mane wont show up entirely. This is the code for my preset_9 mane:


material preset_9_maneMat
{
   technique
   {
      pass
      {
         lighting off
         cull_hardware none
         cull_software none
         scene_blend alpha_blend
         depth_write off
         texture_unit
         {
      
         }
      }
   }
}
What's the proper coding for the mane to get it to show, and not in a weird transparent matter?
   ♡

Offline Kerriki

  • Band Geek
  • Immortal Legend
  • *****
  • Posts: 5,670
  • Country: us
  • Floof-O-Meter: 371
  • Who needs furniture when you have the floor?
    • Kikiorylandia
    • View Profile
    • DeviantART
Re: Some mane coding help?
« Reply #1 on: September 26, 2017, 03:55:18 am »
Try this

Code: [Select]
material preset_9_maneMat
{
technique
{
pass
{
                        cull_hardware none
                        cull_software none
                        alpha_rejection greater_equal 128
                        texture_unit
{
texture preset_9mane.png
}
}
}
}
Farewell everyone<3

Offline flandesuyo1

  • Familiar Grounds Dweller
  • **
  • Posts: 65
  • Country: us
  • Floof-O-Meter: 0
  • 月の王女
    • View Profile
Re: Some mane coding help?
« Reply #2 on: September 26, 2017, 03:57:44 am »
That actually just ended up making the hair marshmallow white instead of the weird yellow/black it was. And the tail is not showin gup now for my preset :/
   ♡

Offline flandesuyo1

  • Familiar Grounds Dweller
  • **
  • Posts: 65
  • Country: us
  • Floof-O-Meter: 0
  • 月の王女
    • View Profile
Re: Some mane coding help?
« Reply #3 on: September 26, 2017, 03:58:38 am »
   }
   }
}
material preset_9_tailMat
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture RinTail.png
         }
      }
   }
}material preset_9_maneMat
{
 technique
 {
  pass
  {
                        cull_hardware none
                        cull_software none
                        alpha_rejection greater_equal 128
                        texture_unit
   {
    texture preset_9mane.png
   }
  }
 }
}
This happened now.. yikes. Dont know exactly what to do, I'm a coding noob.
   ♡

Offline Kerriki

  • Band Geek
  • Immortal Legend
  • *****
  • Posts: 5,670
  • Country: us
  • Floof-O-Meter: 371
  • Who needs furniture when you have the floor?
    • Kikiorylandia
    • View Profile
    • DeviantART
Re: Some mane coding help?
« Reply #4 on: September 26, 2017, 04:02:45 am »
Can you post your entire coding here?
Farewell everyone<3

Offline flandesuyo1

  • Familiar Grounds Dweller
  • **
  • Posts: 65
  • Country: us
  • Floof-O-Meter: 0
  • 月の王女
    • View Profile
Re: Some mane coding help?
« Reply #5 on: September 26, 2017, 04:04:49 am »
Yeah, I can only paste it tho. Here it is:
material preset_9_bodyMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture RinBody_Left.png
         }
      }
   }
}
material preset_9_bodyMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture RinBody_Right.png
         }
      }
   }
}
material preset_9_headMatL
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture RinHead_Left.png
         }
      }
   }
}
material preset_9_headMatR
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture RinHead_Right.png
         }
      }
   }
}
material preset_9_eyeMatL
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture RinEyes_Left.png
         }
      }
   }
}
material preset_9_eyeMatR
{
   technique
   {
      pass
      {
         cull_hardware none
         cull_software none
         texture_unit
         {
            texture RinEyes_Right.png
         }
      }
   }
}
material preset_9_tailMat
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture RinTail.png
         }
      }
   }
}material preset_9_maneMat
{
 technique
 {
  pass
  {
                        cull_hardware none
                        cull_software none
                        alpha_rejection greater_equal 128
                        texture_unit
   {
    texture preset_9mane.png
   }
  }
   ♡

Offline Kerriki

  • Band Geek
  • Immortal Legend
  • *****
  • Posts: 5,670
  • Country: us
  • Floof-O-Meter: 371
  • Who needs furniture when you have the floor?
    • Kikiorylandia
    • View Profile
    • DeviantART
Re: Some mane coding help?
« Reply #6 on: September 26, 2017, 04:22:53 am »
I see what happened ^^

Quote from:
material preset_9_tailMat
{
   technique
   {
      pass
      {
         texture_unit
         {
            texture RinTail.png
         }
      }
   }
}material preset_9_maneMat
{
 technique
 {
  pass
  {
                        cull_hardware none
                        cull_software none
                        alpha_rejection greater_equal 128
                        texture_unit
   {
    texture preset_9mane.png
   }
  }

See the yellow and red? Bring the "material preset_9_maneMat" on its own new line; it shouldn't be next to the } symbol, so instead the yellow and red bits look like this:

Quote from:
}
material preset_9_maneMat
Farewell everyone<3

Offline flandesuyo1

  • Familiar Grounds Dweller
  • **
  • Posts: 65
  • Country: us
  • Floof-O-Meter: 0
  • 月の王女
    • View Profile
Re: Some mane coding help?
« Reply #7 on: September 26, 2017, 05:00:19 am »
Still not working.. I tried to fix the spacing and everything. Very frustrated lol I worked hard on my preset and want to get this darn coding right.
   ♡

Offline Azurain

  • 🍃🍃🍃🍃🍃
  • Member Of The Season
  • Elder Grey Pelt
  • ***
  • Posts: 3,292
  • Country: us
  • Floof-O-Meter: 183
  • an actual forest gremlin
    • lark-bird
    • View Profile
Re: Some mane coding help?
« Reply #8 on: September 26, 2017, 05:03:59 am »
Did you make sure your mane file itself is a png and not jpg? Usually with your mane not working like it is, it's because you have the wrong file type set in the coding.

Offline flandesuyo1

  • Familiar Grounds Dweller
  • **
  • Posts: 65
  • Country: us
  • Floof-O-Meter: 0
  • 月の王女
    • View Profile
Re: Some mane coding help?
« Reply #9 on: September 26, 2017, 05:06:55 am »
It's a png. I think its a matter of my spacing and stuff and maybe the coding itself.. It's like the whole thing needs to be rewritten because I screwed with it a while ago and it won't work on the tail now, not just the mane. This was originally to solve a weird transparency issue on the mane, it was layered oddly and now it just won't show.
   ♡