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

Offline hugrf2

  • Purple Derple
  • Honored Hero
  • *****
  • Posts: 5,314
  • Country: us
  • Floof-O-Meter: 120
  • wrow
    • hugrf
    • channel/UChLphw5s3-hS8EFAgnNv6FQ
    • hugrf
    • hugrf
    • Ain't nobody got time fo' dat
    • View Profile
Re: ? Material Codes for You! (Preset Mane Fix / Scrolling / Ghost Added! ?
« Reply #10 on: September 01, 2012, 04:47:39 pm »
PM me your material code and I'll look it over. c:
Mk, PMed it.  :)

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: ? Material Codes for You! (Preset Mane Fix / Scrolling / Ghost Added! ?
« Reply #11 on: September 01, 2012, 08:25:05 pm »
Mk, PMed it.  :)

Looks like you made a mistake while editing. I'll send a fixed version. c:

Offline hugrf2

  • Purple Derple
  • Honored Hero
  • *****
  • Posts: 5,314
  • Country: us
  • Floof-O-Meter: 120
  • wrow
    • hugrf
    • channel/UChLphw5s3-hS8EFAgnNv6FQ
    • hugrf
    • hugrf
    • Ain't nobody got time fo' dat
    • View Profile
Re: ? Material Codes for You! (Preset Mane Fix / Scrolling / Ghost Added! ?
« Reply #12 on: September 01, 2012, 09:25:14 pm »
Thanks! i'm gonna wait for the PM.

Offline CreamWolf

  • Pack & Pride Representative
  • ****
  • Posts: 1,427
  • Country: aq
  • Floof-O-Meter: 76
  • OG Island Boi
    • View Profile
Re: ? Material Codes for You! (Preset Mane Fix / Scrolling / Ghost Added! ?
« Reply #13 on: September 01, 2012, 10:55:53 pm »
Ohhooohooho. c: This'll be helpful to those seeking to make a dynamic preset. Sure, there are many other threads for this, but you provided animated previews, which makes it stand out.


He will eat your LAVENDER cookies.
#BlameRingo

Offline Jessie Dagger

  • Dedicated Supporter
  • ***
  • Posts: 445
  • Country: 00
  • Floof-O-Meter: 21
  • There is magic. But we call it Imagination~
    • View Profile
Re: ? Material Codes for You! (Preset Mane Fix / Scrolling / Ghost Added! ?
« Reply #14 on: September 05, 2012, 09:42:57 am »
This is so awesome, you explained a lot of things, and that really helped.

Offline hugrf2

  • Purple Derple
  • Honored Hero
  • *****
  • Posts: 5,314
  • Country: us
  • Floof-O-Meter: 120
  • wrow
    • hugrf
    • channel/UChLphw5s3-hS8EFAgnNv6FQ
    • hugrf
    • hugrf
    • Ain't nobody got time fo' dat
    • View Profile
Re: ? Material Codes for You! (Preset Mane Fix / Scrolling / Ghost Added! ?
« Reply #15 on: September 05, 2012, 09:48:38 am »
When ya gonna PM me the fixed version?

Offline hugrf2

  • Purple Derple
  • Honored Hero
  • *****
  • Posts: 5,314
  • Country: us
  • Floof-O-Meter: 120
  • wrow
    • hugrf
    • channel/UChLphw5s3-hS8EFAgnNv6FQ
    • hugrf
    • hugrf
    • Ain't nobody got time fo' dat
    • View Profile
Re: ? Material Codes for You! (Preset Mane Fix / Scrolling / Ghost Added! ?
« Reply #16 on: September 05, 2012, 11:59:30 am »
By the way i tried the scroll code again then the ENTIRE file didn't even work in-game! and I'm pretty sure i did it right.

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: ? Material Codes for You! (Preset Mane Fix / Scrolling / Ghost Added! ?
« Reply #17 on: September 08, 2012, 12:02:02 am »
I already sent it.

Offline hugrf2

  • Purple Derple
  • Honored Hero
  • *****
  • Posts: 5,314
  • Country: us
  • Floof-O-Meter: 120
  • wrow
    • hugrf
    • channel/UChLphw5s3-hS8EFAgnNv6FQ
    • hugrf
    • hugrf
    • Ain't nobody got time fo' dat
    • View Profile
Re: ? Material Codes for You! (Preset Mane Fix / Scrolling / Ghost Added! ?
« Reply #18 on: September 08, 2012, 02:26:55 am »
I might need to change my name because of this stupid PM problem 3:< Just post the PM....  :-\

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Re: ? Material Codes for You! (Preset Mane Fix / Scrolling / Ghost Added! ?
« Reply #19 on: September 08, 2012, 09:08:14 pm »
I might need to change my name because of this stupid PM problem 3:< Just post the PM....  :-\

Alright...
As I was going to say in the PM,
a lot of stuff ended up way different than the original code, which can't happen.
A lot of your lines read as:
preset__bodyMatL
which isn't even one of the mats.
So I believe something went wrong with your replacing.
Nevertheless, here's a fix.
Code: [Select]
material preset_4_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_4body.jpg
}
}
}
}
material preset_4_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture preset_4body.jpg
}
}
}
}
material preset_4_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_4headsoft.png
scroll_anim 1.0 1.0
}
texture_unit
{
texture preset_4head.png
colour_op alpha_blend
}
texture_unit
{
texture preset_4head.png
colour_op_ex blend_current_alpha src_texture src_current
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_4_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_4headsoft.png
scroll_anim 1.0 1.0
}
texture_unit
{
texture preset_4head.png
colour_op alpha_blend
}
texture_unit
{
texture preset_4head.png
colour_op_ex blend_current_alpha src_texture src_current
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_4_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_4eye.jpg
}
}
}
}
material preset_4_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_4eye.jpg
}
}
}
}
material preset_4_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_4tail.jpg
}
}
}
}
material preset_4_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_4mane.png
}
}
}
}