Author Topic: Preset help  (Read 859 times)

Offline Nawazish

  • Experienced Traveler
  • **
  • Posts: 144
  • Country: ca
  • Floof-O-Meter: 10
  • The lonely god
    • annu-adopts
    • View Profile
Preset help
« on: June 06, 2018, 10:19:51 pm »
Greeting!

I am currently working on my first ever preset, quite proud of it.
I've been experiencing preset code and I have to say it's quite fun! However, I would like to know if there's a possible way to add two code on one preset?

I wish to have ambient code on my preset, but my character have some missing limb and ripped ear.
If there is, would somebody accept to show me the code to use and if there is something to do for it to work, tell me?

Thank you,
Aedan

Lucius

  • Guest
Re: Preset help
« Reply #1 on: June 06, 2018, 10:41:35 pm »
Sure, it's possible.
Your coding for each section with ambient and transparency will look something like this:

Code: [Select]
material preset_1_bodyMatL
{
technique
{
pass
{
ambient 0.5 0.5 0.5
alpha_rejection greater_equal 128
scene_blend alpha_blend
texture_unit
{
texture preset_1body.png
}
}
}
}

You can change the ambient values to what you want, following this handy tutorial: Updated 9/16/16 Material Coding for Beginners! Glow, metal, transparent, more! (scroll down a bit for ambient code and explanations).

If your preset has hard transparency edges (no airbrush/soft/gradient fade) then you can remove the "scene_blend alpha_blend" line. Otherwise, keep it in.

Offline Nawazish

  • Experienced Traveler
  • **
  • Posts: 144
  • Country: ca
  • Floof-O-Meter: 10
  • The lonely god
    • annu-adopts
    • View Profile
Re: Preset help
« Reply #2 on: June 06, 2018, 11:00:58 pm »
Sure, it's possible.
Your coding for each section with ambient and transparency will look something like this:

Code: [Select]
material preset_1_bodyMatL
{
technique
{
pass
{
ambient 0.5 0.5 0.5
alpha_rejection greater_equal 128
scene_blend alpha_blend
texture_unit
{
texture preset_1body.png
}
}
}
}

You can change the ambient values to what you want, following this handy tutorial: Updated 9/16/16 Material Coding for Beginners! Glow, metal, transparent, more! (scroll down a bit for ambient code and explanations).

If your preset has hard transparency edges (no airbrush/soft/gradient fade) then you can remove the "scene_blend alpha_blend" line. Otherwise, keep it in.

Ah, I see!
Thank you so much for this my friend ^^

Any moderator are free to lock this thread.

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 help
« Reply #3 on: June 06, 2018, 11:06:39 pm »
Locking, have fun with your preset!
Farewell everyone<3