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

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
@Ina Nilsson:
Code: (Scrolling Mane) [Select]
material preset_#_maneMat
{
technique
{
pass
{
                        cull_hardware none
                        cull_software none
                        alpha_rejection greater_equal 200
texture_unit
{
texture fmaneMask.png
}
texture_unit
{
texture rainbowshit.png
scroll_anim 1 1
colour_op_ex blend_current_alpha src_texture src_current
}
}
}
}

You'll have to change the material preset_#_maneMat line, since I don't know what number you're using.
Also you'll need to put an image in for SCROLLING LAYER.png, but other than that, you can leave everything the same, maybe adjust the speed of the scroll_anim 1 1 line.

Hope you get it working.

EDIT: I don't know why the code spacing has gone to shiz,
but it doesn't seem to be something I can fix, must be
site error. I apologise for the inconvenience.
« Last Edit: February 15, 2015, 05:11:08 pm by xRuby1234x »

Offline Black_Iris

  • Forum Newcomer
  • *
  • Posts: 4
  • Floof-O-Meter: 0
    • View Profile
I got it working, thank you so much! <3

Offline ExtraX-Hybrid

  • Forum Newcomer
  • *
  • Posts: 8
  • Floof-O-Meter: 0
  • I'm not crazy! My reality is just different~
    • View Profile
Sorry if this is a late comment or anything and this topic is closed but..

I changed the .material file into a .txt file and changed all the stuff and everything but..

how do I turn it back into a .material file? I tried renaming it let's say ; preset_3.material but it stays a .txt file.


If anyone could help, I would appreciate it VERY much.
Regards,
EXH

Offline pilami42

  • Forum Newcomer
  • *
  • Posts: 4
  • Country: 00
  • Floof-O-Meter: 3
  • Just an Albino
    • View Profile
I want to make the scrolling preset. When I used the frist code It didn't want to work (just a white spot in place when it must to scroll). When I used the fixed code I saw all white character (I replaced the names). So if it didn't work I tried to do something with it and now I don't have in feralheart>>tools>>preset maker preset 7 to choose (this one with I was working) Maybye a little help?

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Sorry if this is a late comment or anything and this topic is closed but..

I changed the .material file into a .txt file and changed all the stuff and everything but..

how do I turn it back into a .material file? I tried renaming it let's say ; preset_3.material but it stays a .txt file.


If anyone could help, I would appreciate it VERY much.
Regards,
EXH
In notepad go to "Save as..." and click the dropdown and change to "All files" then save it as preset_3.material

I want to make the scrolling preset. When I used the frist code It didn't want to work (just a white spot in place when it must to scroll). When I used the fixed code I saw all white character (I replaced the names). So if it didn't work I tried to do something with it and now I don't have in feralheart>>tools>>preset maker preset 7 to choose (this one with I was working) Maybye a little help?
If you need help with a code, send me the broken one and I can show you what's wrong with it.
Copy the material file from a different preset into the preset 7 folder, and rename it to preset_7.material.
When the preset doesn't appear it means you broke the code, pretty badly. So just replace it with a standard one.

Offline ThatRandomTypo

  • Familiar Grounds Dweller
  • **
  • Posts: 88
  • Country: 00
  • Floof-O-Meter: 2
  • being active is hard :(
    • vidrosfault
    • dogmeat tamale
    • View Profile
I followed the instructions for scrolling, and when I went to check on the preset in preset maker, there wasn't even the gradient I chose for the scrolling part. I looked through the code, and I'm not entirely sure why it isn't showing up.
I am ThatRandomTypo in game, and you can also find me on Deviant Art as VidrosFault!

i've been very inactive for a very long time :(

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
I followed the instructions for scrolling, and when I went to check on the preset in preset maker, there wasn't even the gradient I chose for the scrolling part. I looked through the code, and I'm not entirely sure why it isn't showing up.
Can I see a screenshot of the preset and a copy of your code?

Offline ThatRandomTypo

  • Familiar Grounds Dweller
  • **
  • Posts: 88
  • Country: 00
  • Floof-O-Meter: 2
  • being active is hard :(
    • vidrosfault
    • dogmeat tamale
    • View Profile
« Last Edit: June 30, 2015, 09:56:15 pm by Grace »
I am ThatRandomTypo in game, and you can also find me on Deviant Art as VidrosFault!

i've been very inactive for a very long time :(

Offline Arvemis

  • Forum Newcomer
  • *
  • Posts: 5
  • Country: au
  • Floof-O-Meter: 0
  • My wings may be broken but i'm still flying.
    • View Profile
    • Links and commission info
i tired playing around with an old preset of mine and i dicided to do the ghost effect but when i followed the instrutions it went like this


Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile