Author Topic: Preset help  (Read 4496 times)

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 help
« Reply #20 on: December 29, 2016, 12:45:01 am »
xD That's okay!

So, if you'd like me to, I can redo your code for ya with the metal leg and all.

However, in order for me to do that, I will need your textures so I can test it properly. If you don't mind me messing with it, you can send me a PM with an imgur or a mediafire link to the textures? It's completely up to you. You can even post it here if you don't mind.
Profile pic by Edolicious

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


Offline VortexAlive

  • Eevee Knight
  • Honored Hero
  • *****
  • Posts: 5,080
  • Country: us
  • Floof-O-Meter: 180
  • A wild floof has appeared!
    • VortexAlive
    • VortexAlive
    • VortexAlive
    • View Profile
    • VortexAlive is Rawrsome
Re: Preset help
« Reply #21 on: December 29, 2016, 01:19:16 am »
For transparency you have to do something special like this:
Code: [Select]
#This "#" allows you to make comments in the .material file.
material preset_10_bodyMatL #Note how this is only the /left/ side of the body.
{
technique
{
pass #This slaps a new texture on /top/ of the previous one.
{
alpha_rejection greater_equal 128 #This allows transparency to be used.
texture_unit
{
texture preset_#body.png #with the parts of it that you want to be transparent completely erased, make sure alpha channel is ON!
}
}
}
}

Here is an example, please ignore the right side of the body:


Is the metal leg a texture or an item? If it's an item then it should still show up, not sure how well it will but it will.
For the sake of my own health and interests, I've left FH and I won't be looking back.

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 help
« Reply #22 on: December 29, 2016, 01:23:12 am »
For transparency you have to do something special like this:
Code: [Select]
#This "#" allows you to make comments in the .material file.
material preset_10_bodyMatL #Note how this is only the /left/ side of the body.
{
technique
{
pass #This slaps a new texture on /top/ of the previous one.
{
alpha_rejection greater_equal 128 #This allows transparency to be used.
texture_unit
{
texture preset_#body.png #with the parts of it that you want to be transparent completely erased, make sure alpha channel is ON!
}
}
}
}

Here is an example, please ignore the right side of the body:


Is the metal leg a texture or an item? If it's an item then it should still show up, not sure how well it will but it will.


Thank you Vortex ^^ That is currently what I am doing. I sorta took it over for them as they sent me the files to work with
Profile pic by Edolicious

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


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 help
« Reply #23 on: December 29, 2016, 02:24:41 am »
Finished adding the transparency to the leg and fixing the code! I sent them the files in MediaFire and it sounds like they got it working

Letting the mods know this can probably be locked now, unless A Random Person needs something else ^^
Profile pic by Edolicious

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