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

Offline shayy

  • Pack & Pride Representative
  • ****
  • Posts: 1,241
  • Country: us
  • Floof-O-Meter: 73
  • World Class Shawty
    • View Profile
wow this is great Ruby, really helpful. ^^
pm for free art i need practice

Offline Ellen11v

  • Don't open, blue inside
  • Elder Grey Pelt
  • ****
  • Posts: 3,043
  • Country: dk
  • Floof-O-Meter: 276
  • Bye :)
    • Lousiem
    • EllenPlayz
    • View Profile
    • Global Moderator of an IT server
Hello, I have this problem when I'm trying to make glowing markings on my preset.
It's like, I've just begun on the preset, and I've almost finished the head part of it.
So, eh... Tell me if I did something wrong here with the coding:

Code: [Select]
material preset_6_headMatL
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5
   texture_unit
   {
    texture preset_6head.png
   }
  }
pass
  {
   emissive 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture headglow.png
   }
  }
 }
}
material preset_6_headMatR
{
 technique
 {
  pass
  {
   ambient 0.5 0.5 0.5
   texture_unit
   {
    texture preset_6head.png
   }
  }
pass
  {
   emissive 1.0 1.0 1.0
   scene_blend alpha_blend
   texture_unit
   {
    texture headglow.png
   }
  }

 }
}

The other coding of the other parts (body, tail etc.) that you don't see in this code here, are just default/normal, not edited codes.
I also have a screenshot of how it appears like in game:


You can only see the glow-markings texture, and not the actual base (like, the seablue fur with red heart below the eye.)
Aaand, here's a screenshot of the files i have in my preset_6 folder, if it helps to have a look at them too.


 
I would be happy if you could help. Tell me if there's more you need to know about my problem, and what you want to know. :)
« Last Edit: October 01, 2015, 03:50:40 pm by ?Ellen? »
doing what i feel like

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Looks like you might've had a spacing issue. Try this:
Code: [Select]
material preset_6_headMatL
{
technique
{
pass
{
ambient 0.5 0.5 0.5 1
texture_unit
{
texture preset_6head.png
}
}
pass
{
scene_blend alpha_blend
emissive 1.0 1.0 1.0 1
texture_unit
{
texture preset_6headglow.png
}
}
}
}
material preset_6_headMatR
{
technique
{
pass
{
ambient 0.5 0.5 0.5 1
texture_unit
{
texture preset_6head.png
}
}
pass
{
scene_blend alpha_blend
emissive 1.0 1.0 1.0 1
texture_unit
{
texture preset_6headglow.png
}
}
}
}

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
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



I can't PM you back because your forum name isn't unique. The message keeps trying to send to "Hyper" but there's more than one person with that name so it keeps going to the wrong one.
Here is your fixed code.
Code: [Select]
material preset_3_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_3bodyL.jpg
}
scene_blend add
texture_unit
{
texture preset_3ghost.png
}
}
}
}
material preset_3_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture preset_3bodyR.jpg
}
scene_blend add
texture_unit
{
texture preset_3ghost.png
}
}
}
}
material preset_3_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_3head.jpg
}
scene_blend add
texture_unit
{
texture preset_3ghost.png
}
}
}
}
material preset_3_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_3head.jpg
}
scene_blend add
texture_unit
{
texture preset_3ghost.png
}
}
}
}
material preset_3_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_3eye.png
}
}
}
}
material preset_3_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_3eye.png
}
}
}
}
material preset_3_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_3tail.jpg
}
scene_blend add
texture_unit
{
texture preset_3ghost.png
}
}
}
}
material preset_3_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_3mane.png
}
scene_blend add
texture_unit
{
texture preset_3ghost.png
}
}
}
}

RDLdoesRoblox

  • Guest
Its helpful, but scroll, is kinda hard as well. I was about to finish, but right head and tail is turn to yellow and black, what i need to do? :c




(sorry if my english isnt good...)

Offline Rink2004

  • Forum Newcomer
  • *
  • Posts: 2
  • Floof-O-Meter: 1
    • View Profile
What did you use to make the 512x512 square, like how did you do that?

Offline XsilentwhispersX

  • Forum Newcomer
  • *
  • Posts: 1
  • Floof-O-Meter: 0
    • View Profile
Thanks for this tip! ^u^
« Last Edit: January 08, 2016, 07:49:36 pm by Megan »

Offline Vwang

  • Finest Floof
  • ***
  • Posts: 937
  • Country: 00
  • Floof-O-Meter: 38
    • View Profile
When i tried this for my preset's wings i wanted it to be a reindeer but the wings still turn out marshmallow white

Offline Wolflover224

  • Community Champion
  • ****
  • Posts: 1,582
  • Country: 00
  • Floof-O-Meter: 16
  • Im an IRL dolphin; On hiatus
    • the-sketchy-orca
    • View Profile
Sorry if I'm bumping this, but do you know how to do the special effects for presets? Some people have made presets where they have cell shading and/or outlines, but I don't know how to do them.

Offline Spottedbears

  • Dedicated Supporter
  • ***
  • Posts: 464
  • Country: 00
  • Floof-O-Meter: 41
  • mister sandman, bring me a dream
    • View Profile
I'm not Ruby, but I know what you're talking about.
http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=54120.0
You'll have to PM Softie for info & the codes!

Art by me!
DA: Chrome-domey
Tumblr: Cassiopirate
Need preset, animating, or map help? PM me!