Author Topic: Updated 9/16/16 Material Coding for Beginners! Glow, metal, transparent, more!  (Read 144791 times)

Offline Rainbowfur

  • Experienced Traveler
  • **
  • Posts: 114
  • Country: ca
  • Floof-O-Meter: 5
  • cut my life into pizzas this is my plastic fork
    • View Profile
Hey, I used your mane code fix, and it ended up looking like this:


Any code for that pesky top area that is still glitchy?
profile pic by me
mapmaker/preset maker
PM me for commissions^^

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
these are awesome, thx! :) +floof one question, is there anyway to combine the scroll and ghost codes to make a ghostly scrolling preset?
Yep, follow the tut and make a scrolling preset first, then just follow the ghost code, add a scene_blend add above one of the texture_unit lines under each Mat section.

Hey, I used your mane code fix, and it ended up looking like this:


Any code for that pesky top area that is still glitchy?
Since this code only deals with solid transparency, open PS or GIMP or whatever you use, and zoom in onto those transparent edges.
You've either missed some old black pixels, or there's too many trying to be semi-transparent, you'll need to use the lasso tool or a solid eraser along the edges.

Offline Emberflame

  • Ancient Silver Mane
  • *****
  • Posts: 3,636
  • Country: 00
  • Floof-O-Meter: 27
    • WatcherMagic
    • View Profile
these are awesome, thx! :) +floof one question, is there anyway to combine the scroll and ghost codes to make a ghostly scrolling preset?
Yep, follow the tut and make a scrolling preset first, then just follow the ghost code, add a scene_blend add above one of the texture_unit lines under each Mat section.

Ok thx, I'll try that

Offline Rainbowfur

  • Experienced Traveler
  • **
  • Posts: 114
  • Country: ca
  • Floof-O-Meter: 5
  • cut my life into pizzas this is my plastic fork
    • View Profile
Hey thanks anyway, but I seemed to have fixed it but setting the alpha rejection to 200.
here's a screenie:

 

If anyone else has this problem, tell them to do what I did :D
profile pic by me
mapmaker/preset maker
PM me for commissions^^

Offline UnderSiege0731

  • Curious Wanderer
  • *
  • Posts: 13
  • Country: 00
  • Floof-O-Meter: 0
    • View Profile
This is all doing wonder thank you!
Fennec's are Friend Furever

Offline Emberflame

  • Ancient Silver Mane
  • *****
  • Posts: 3,636
  • Country: 00
  • Floof-O-Meter: 27
    • WatcherMagic
    • View Profile
these are awesome, thx! :) +floof one question, is there anyway to combine the scroll and ghost codes to make a ghostly scrolling preset?
Yep, follow the tut and make a scrolling preset first, then just follow the ghost code, add a scene_blend add above one of the texture_unit lines under each Mat section.

Ok thx, I'll try that

I tried it, sorry it took a bit for me to get back. As far as I see, it didn't change anything :/ do you mind showing it to me in code? Sorry if I'm using your time X3

Offline OreoHeroz

  • Taco-Hat
  • Elder Grey Pelt
  • ****
  • Posts: 3,225
  • Country: 00
  • Floof-O-Meter: 142
    • View Profile
Sorry to dump more problems onto you but I have a question: So I made a preset for someone, but when I tried to make the right back leg transparent (added the code, etc.), the left back leg wasn't the color I wanted and instead was the texture of the reference leg. Any suggestions?

Click to show code
Code: [Select]
material preset_4_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_4body.png
}
}
}
}
material preset_4_bodyMatR
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_4body.png
}
}
}
}
material preset_4_headMatL
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_4head.png
}
}
}
}
material preset_4_headMatR
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_4head.png
}
}
}
}
material preset_4_eyesMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_4eye.png
}
}
}
}
material preset_4_eyesMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_4eye.jpg
}
}
}
}
material preset_4_tailMat
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_4tail.png
}
}
}
}
material preset_4_maneMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture preset_4mane.png
}
}
}
}

Click to show for image

Thanks!


Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
@Rainbowfur: I'd completely forgotten about that option! o:
Thanks so much!~ +floof
-
@OreoHeroz: You've only got the left leg set to transparent, so the right leg is still seeing the other image, or a layer under it.

Offline OreoHeroz

  • Taco-Hat
  • Elder Grey Pelt
  • ****
  • Posts: 3,225
  • Country: 00
  • Floof-O-Meter: 142
    • View Profile
@OreoHeroz: You've only got the left leg set to transparent, so the right leg is still seeing the other image, or a layer under it.

So is there anything I can do to fix it? Do I have to remove the layer?

Offline SenseiRei

  • Dedicated Supporter
  • ***
  • Posts: 476
  • Country: us
  • Floof-O-Meter: 25
  • ❤️ Plz Nuzzle me! I'm super Cuddly ❤️
    • royaldog12
    • View Profile
the scrolling thing. what format do u save it as.. a jpg? a png? what?