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

Offline FlyingGrass

  • ~🛠 The avant-garde doctor of mechanical beings. 🔧 🔬
  • Elder Grey Pelt
  • ****
  • Posts: 2,516
  • Country: 00
  • Floof-O-Meter: 121
  • Avatar=Me|Signature=Me
    • FlyingGrass
    • channel/UCA7RfqQ1KLl4s8JhxIXNs_Q
    • View Profile
    • Mechanicafeles Discord link
I know this is very late. However how in the world do you save it as a png? In GIMP. Because it’s not able to be saved as a one apparently
Use "Export as" that is a bit below the "Save" option.

My presets.

Good things take time, so I'll take an eternity and create something so good that the human brain can't handle the sheer goodness of it.

Offline Windstrider

  • Familiar Grounds Dweller
  • **
  • Posts: 74
  • Country: us
  • Floof-O-Meter: 6
  • Soon-to-be college student!
    • Windstrider2017
    • windstrider2017@gmail.com
    • Windstrider2017
    • View Profile
Thanks for the tutorials! The scrolling one looks awesome, but I don't understand why the mane is totally fine on one of them but the mane is white/textureless on another. Also, the back legs turned out a bit weird on the one with leg markings. These are most likely mistakes I've made because my preset skills are rusty lmao, and I'm still kind of a beginner, but I don't know why they happened.





I didn't know if you need the code for them but here it is.

The one with the mane issue:
Code: [Select]
material preset_9_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_9scroll.png
scroll_anim 0.1 0.1
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_9body.png
}
}
}
}
material preset_9_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture preset_9scroll.png
scroll_anim 0.1 0.1
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_9body.png
}
}
}
}
material preset_9_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_9scroll.png
scroll_anim 0.1 0.1
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_9head.png
}
}
}
}
material preset_9_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_9scroll.png
scroll_anim 0.1 0.1
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_9head.png
}
}
}
}
material preset_9_eyeMatL
{
technique
{
pass
{
texture_unit
{
texture preset_9scroll.png
scroll_anim 0.1 0.1
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_9eye.png
}
}
}
}
material preset_9_eyeMatR
{
technique
{
pass
{
texture_unit
{
texture preset_9scroll.png
scroll_anim 0.1 0.1
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_9eye.png
}
}
}
}
material preset_9_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_9scroll.png
scroll_anim 0.1 0.1
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_9tail.png
}
}
}
}
material preset_9_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 129
texture_unit
{
texture preset_9mane.png
scroll_anim 0.1 0.1
}
}
}
}material preset_9_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_9scroll.png
scroll_anim 0.1 0.1
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_9body.png
}
}
}
}
material preset_9_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture preset_9scroll.png
scroll_anim 0.1 0.1
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_9body.png
}
}
}
}
material preset_9_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_9scroll.png
scroll_anim 0.1 0.1
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_9head.png
}
}
}
}
material preset_9_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_9scroll.png
scroll_anim 0.1 0.1
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_9head.png
}
}
}
}
material preset_9_eyeMatL
{
technique
{
pass
{
texture_unit
{
texture preset_9scroll.png
scroll_anim 0.1 0.1
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_9eye.png
}
}
}
}
material preset_9_eyeMatR
{
technique
{
pass
{
texture_unit
{
texture preset_9scroll.png
scroll_anim 0.1 0.1
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_9eye.png
}
}
}
}
material preset_9_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_9scroll.png
scroll_anim 0.1 0.1
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_9tail.png
}
}
}
}
material preset_9_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_9mane.png
scroll_anim 0.1 0.1
}
}
}
}

The one with the leg issue:
Code: [Select]
material preset_8_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_8scroll.png
scroll_anim 0.1 0.1
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_8body.png
}
}
}
}
material preset_8_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture preset_8scroll.png
scroll_anim 0.1 0.1
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_8body.png
}
}
}
}
material preset_8_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_8scroll.png
scroll_anim 0.1 0.1
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_8head.png
}
}
}
}
material preset_8_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_8scroll.png
scroll_anim 0.1 0.1
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_8head.png
}
}
}
}
material preset_8_eyeMatL
{
technique
{
pass
{
texture_unit
{
texture preset_8scroll.png
scroll_anim 0.1 0.1
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_8eye.png
}
}
}
}
material preset_8_eyeMatR
{
technique
{
pass
{
texture_unit
{
texture preset_8scroll.png
scroll_anim 0.1 0.1
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_8eye.png
}
}
}
}
material preset_8_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_8scroll.png
scroll_anim 0.1 0.1
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_8tail.png
}
}
}
}
material preset_8_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_8mane.png
scroll_anim 0.1 0.1
}
}
}
}

Fyi, the picture I used for the mane is a solid color 512x512 png, instead of the mane with the jaggedy looking edge. Manes are the one thing I don't really get when it comes to presets.

Thanks in advance to whoever helps.
« Last Edit: June 09, 2018, 05:44:36 pm by Windstrider »

Offline Arelyka

  • Forum Newcomer
  • *
  • Posts: 8
  • Floof-O-Meter: 0
    • View Profile
how exactly do i slow down the animation? i cant seem to figure that out

Offline Morgra

  • I don't like sand...
  • Immortal Legend
  • *****
  • Posts: 5,718
  • Country: us
  • Floof-O-Meter: 347
  • Ever been killed by a spider? I was
    • DinksterDaily
    • View Profile
how exactly do i slow down the animation? i cant seem to figure that out

The scrolling animation? All you need to do is make the numbers a smaller value. For example, where it says:
scroll_anim 1.0 1.0
change it to
scroll_anim 0.5 0.5

you can go smaller than that, that should just give you a start.
Profile pic by Edolicious

People don't think the universe be like it is, but it do.


Offline Arelyka

  • Forum Newcomer
  • *
  • Posts: 8
  • Floof-O-Meter: 0
    • View Profile
im having some trouble with my preset, it wont export for some reason? i keep trying but im not sure what to do or what im doing wrong

Offline Morgra

  • I don't like sand...
  • Immortal Legend
  • *****
  • Posts: 5,718
  • Country: us
  • Floof-O-Meter: 347
  • Ever been killed by a spider? I was
    • DinksterDaily
    • View Profile
im having some trouble with my preset, it wont export for some reason? i keep trying but im not sure what to do or what im doing wrong

Is there an error message that it gives you?
Profile pic by Edolicious

People don't think the universe be like it is, but it do.


Offline Arelyka

  • Forum Newcomer
  • *
  • Posts: 8
  • Floof-O-Meter: 0
    • View Profile
im having some trouble with my preset, it wont export for some reason? i keep trying but im not sure what to do or what im doing wrong

Is there an error message that it gives you?

it says "failed to export preset"

Offline Morgra

  • I don't like sand...
  • Immortal Legend
  • *****
  • Posts: 5,718
  • Country: us
  • Floof-O-Meter: 347
  • Ever been killed by a spider? I was
    • DinksterDaily
    • View Profile
im having some trouble with my preset, it wont export for some reason? i keep trying but im not sure what to do or what im doing wrong

Is there an error message that it gives you?

it says "failed to export preset"


Are all of your files in the correct preset number folder? Is your material named and listed correctly?

Maybe pasted your material code here and then we can take a look at it. Also let us know what preset number it should be for.
Profile pic by Edolicious

People don't think the universe be like it is, but it do.


Offline Void.

  • Forum Newcomer
  • *
  • Posts: 2
  • Country: us
  • Floof-O-Meter: 0
  • A wolf who loves to snuggle! Wait.. is she a wolf?
    • View Profile
This helped   me very much! Thank you! <3
A girl who loves to play FeralHeart and Tom Clancy's Rainbow Six Siege! Stay positive <3

Offline Ruby1234

  • Mean Tutorial Queen
  • Elder Grey Pelt
  • ****
  • Posts: 2,794
  • Country: us
  • Floof-O-Meter: 297
  • aka Phloxenfree.
    • View Profile
Updated main topic; tutorial is being moved!