Author Topic: Preset transparency help  (Read 3780 times)

Offline Arandomperson

  • Dedicated Supporter
  • ***
  • Posts: 314
  • Country: 00
  • Floof-O-Meter: 16
    • View Profile
Preset transparency help
« on: January 08, 2018, 04:33:50 pm »
Need help making the left side of my presets leg invisible. To make it look like they are missing a leg.
Merrp

Offline Kuri

  • Immortal Legend
  • *****
  • Posts: 8,168
  • Country: nz
  • Floof-O-Meter: 136
  • Foreboding evil harmless kitten.
    • dumbstuff4friends
    • channel/UCo42jgbLvEzkofpOin0_a4A
    • View Profile
Re: Preset transparency help
« Reply #1 on: January 08, 2018, 06:01:58 pm »
I've done that.
One way to do that is to use a .png image with the part you want missing erased.
Code: [Select]
}
pass
{
alpha_rejection greater_equal 128
texture_unit
That will make it transparent rather than white.
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"

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: Preset transparency help
« Reply #2 on: January 08, 2018, 06:16:48 pm »
Moving this over to game help
Farewell everyone<3

Offline Arandomperson

  • Dedicated Supporter
  • ***
  • Posts: 314
  • Country: 00
  • Floof-O-Meter: 16
    • View Profile
Re: Preset transparency help
« Reply #3 on: January 08, 2018, 06:49:19 pm »
Andddddddddd the code broke the preset.
Merrp

Offline Morgra

  • I don't like sand...
  • Immortal Legend
  • *****
  • Posts: 5,718
  • Country: us
  • Floof-O-Meter: 347
  • Ever been killed by a spider? I was
    • DinksterDaily
    • View Profile
Re: Preset transparency help
« Reply #4 on: January 08, 2018, 09:54:47 pm »
Andddddddddd the code broke the preset.
Mind copying and pasting your code here for us to take a look at and see what might be wrong? ^^

Paste it in like this:
[code]-Code contents here-[/code]
Profile pic by Edolicious

People don't think the universe be like it is, but it do.


Offline Arandomperson

  • Dedicated Supporter
  • ***
  • Posts: 314
  • Country: 00
  • Floof-O-Meter: 16
    • View Profile
Re: Preset transparency help
« Reply #5 on: January 08, 2018, 10:13:10 pm »
Code: [Select]
material preset_3_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_3bodyL.jpg
}
}
}
}
material preset_3_bodyMatR
{
technique  }
  pass
  {
   alpha_rejection greater_equal 128
   texture_unit
{
texture preset_3bodyR.jpg
}
}
}
}
material preset_3_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_3head.jpg
}
}
}
}
material preset_3_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_3head.jpg
}
}
}
}
material preset_3_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_3eyeL.jpg
}
}
}
}
material preset_3_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_3eyeR.jpg
}
}
}
}
material preset_3_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_3tail.jpg
}
}
}
}
material preset_3_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_3mane.png
}
}
}
}
Merrp

Offline Kastilla

  • my mind is a sieve for inspiration.
  • Community Champion
  • ****
  • Posts: 2,382
  • Country: 00
  • Floof-O-Meter: 71
  • [ ] make time go faster
    • View Profile
Re: Preset transparency help
« Reply #6 on: January 08, 2018, 10:28:59 pm »
Yeah, the bracket was the wrong way and in the wrong place. Try again with this one.

Code: [Select]
material preset_3_bodyMatL
{
 technique
 {
  pass
  {
   texture_unit
   {
    texture preset_3bodyL.jpg
   }
  }
 }
}
material preset_3_bodyMatR
{
 technique
{
  pass
  {
   alpha_rejection greater_equal 128
   texture_unit
   {
    texture preset_3bodyR.jpg
   }
  }
 }
}
material preset_3_headMatL
{
 technique
 {
  pass
  {
   texture_unit
   {
    texture preset_3head.jpg
   }
  }
 }
}
material preset_3_headMatR
{
 technique
 {
  pass
  {
   texture_unit
   {
    texture preset_3head.jpg
   }
  }
 }
}
material preset_3_eyeMatL
{
 technique
 {
  pass
  {
   cull_hardware none
   cull_software none
   texture_unit
   {
    texture preset_3eyeL.jpg
   }
  }
 }
}
material preset_3_eyeMatR
{
 technique
 {
  pass
  {
   cull_hardware none
   cull_software none
   texture_unit
   {
    texture preset_3eyeR.jpg
   }
  }
 }
}
material preset_3_tailMat
{
 technique
 {
  pass
  {
   texture_unit
   {
    texture preset_3tail.jpg
   }
  }
 }
}
material preset_3_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_3mane.png
}
}
}
}
« Last Edit: January 08, 2018, 10:34:00 pm by Wolvie »
stinky dog coming through, don't mind me!

Offline Arandomperson

  • Dedicated Supporter
  • ***
  • Posts: 314
  • Country: 00
  • Floof-O-Meter: 16
    • View Profile
Re: Preset transparency help
« Reply #7 on: January 08, 2018, 10:41:44 pm »
Its fixed, but transparency still not working.
Merrp

Offline Morgra

  • I don't like sand...
  • Immortal Legend
  • *****
  • Posts: 5,718
  • Country: us
  • Floof-O-Meter: 347
  • Ever been killed by a spider? I was
    • DinksterDaily
    • View Profile
Re: Preset transparency help
« Reply #8 on: January 08, 2018, 11:09:01 pm »
The file format of the body part that has some transparency to it must be .png
Profile pic by Edolicious

People don't think the universe be like it is, but it do.


Offline Arandomperson

  • Dedicated Supporter
  • ***
  • Posts: 314
  • Country: 00
  • Floof-O-Meter: 16
    • View Profile
Re: Preset transparency help
« Reply #9 on: January 09, 2018, 12:11:25 am »
Chaged the body's tp png, now when i add the alpha channel to erase it nothing shows up. Not even white. its like i never used the earner on it
Merrp