Author Topic: Transparent preset?  (Read 3205 times)

Offline Wolflover224

  • Community Champion
  • ****
  • Posts: 1,582
  • Country: 00
  • Floof-O-Meter: 16
  • Im an IRL dolphin; On hiatus
    • the-sketchy-orca
    • View Profile
Re: Transparent preset?
« Reply #20 on: July 21, 2017, 01:13:20 am »
Here you go, just change the number to match yours and it should work:

Code: [Select]
material preset_12_eyeMatL
{
technique
{
pass
{
alpha_rejection greater_equal 128
scene_blend alpha_blend

texture_unit
{
texture preset_12eye.png
}
}
}
}
material preset_12_eyeMatR
{
technique
{
pass
{
alpha_rejection greater_equal 128
scene_blend alpha_blend

texture_unit
{
texture preset_12eye.png
}
}
}
}

Sorry about the format... it doesn't want to let me keep it. >.<
Thank you!! Although I've decided against using transparency /for now/ to make things easier, I will definitely test this!!

Update: I decided to try it with the eye and it's still not working. The parts that are supposed to be transparent are just black and it looks more like my character ate a bunch of charcol instead of having missing teeth lol

Offline Kuri

  • Immortal Legend
  • *****
  • Posts: 8,168
  • Country: nz
  • Floof-O-Meter: 136
  • Foreboding evil harmless kitten.
    • dumbstuff4friends
    • channel/UCo42jgbLvEzkofpOin0_a4A
    • View Profile
Re: Transparent preset?
« Reply #21 on: July 21, 2017, 04:34:12 am »
That's weird..


If you ignore the fact i put a green grid on it as a second pass
Code: [Select]
material preset_8_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
scene_blend alpha_blend

specular 0.447059 0.498039 0.454902 1 61.44
texture_unit
{
texture preset_8eyeL.png
}
               }
         }
}

i ended up with transparent teeth.  Well, only were they were supposed to be.  Without the scene_blend alpha_blend part they looked like charcoal like you said.
The Japanese concept of wabisabi:
The closest concept in english would be 'rustic'
They might have an old thing, one example is a favourite bowl or dish, it's broken, pieces are missing, why fix it?  With gold and pieces from other dishes?
"Because it was my favourite & I like it"