Feral Heart

Help & Guidance => Game Help => Topic started by: Ingredient on November 16, 2013, 11:24:34 pm

Title: Glow in the dark presets
Post by: Ingredient on November 16, 2013, 11:24:34 pm
I'm not sure why but it's always the glow in the dark presets that I seem to have trouble with.

I know how to make one as I have made one before, it's just a lot of the time when using the code none of the textures show up on the actual preset in-game.

Here is the code I'm using:

Code: [Select]
material preset_10_bodyMatL
{
technique
{
pass
{
ambient 0.5 0.5 0.5
texture_unit
{
texture preset_10body.PNG
}
}
pass
{
emissive 1.0 1.0 1.0
scene_blend alpha_blend
texture_unit
{
texture preset_10glowbody.PNG
}
}
}
}
material preset_10_bodyMatR
{
technique
{
pass
{
ambient 0.5 0.5 0.5
texture_unit
{
texture preset_10body.PNG
}
}
pass
{
emissive 1.0 1.0 1.0
scene_blend alpha_blend
texture_unit
{
texture preset_10glowbody.PNG
}
}
}
}
material preset_10_headMatL
{
technique
{
pass
{
ambient 0.5 0.5 0.5
texture_unit
{
texture preset_10head.PNG
}
}
pass
{
emissive 1.0 1.0 1.0
scene_blend alpha_blend
texture_unit
{
texture preset_10glowhead.PNG
}
}
}
}
material preset_10_headMatR
{
technique
{
pass
{
ambient 0.5 0.5 0.5
texture_unit
{
texture preset_10head.PNG
}
}
pass
{
emissive 1.0 1.0 1.0
scene_blend alpha_blend
texture_unit
{
texture preset_10glowhead.PNG
}
}

}
}
material preset_10_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_10leye.PNG
}
}
}
}
material preset_10_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_10reye.PNG
}
}
}
}
material preset_10_tailMat
{
technique
{
pass
{
ambient 0.5 0.5 0.5
texture_unit
{
texture preset_10tail.PNG
}
}
pass
{
emissive 1.0 1.0 1.0
scene_blend alpha_blend
texture_unit
{
texture preset_10glowtail.PNG
}
}
}
}
material preset_10_maneMat
{
technique
{
pass
{
ambient 0.5 0.5 0.5
cull_hardware none
cull_software none
scene_blend alpha_blend
alpha_rejection greater_equal 250
texture_unit
{
texture YOURMANETEXTURE.PNG
}
}
}
}

I made a glowing preset with preset_9 and it works without any problems, however I copied the code and used in the preset_10.material file and it doesn't work. The image I made (only the start of the body) is called preset_10body.png and it doesn't show up in Preset Maker. I've even changed the format to .jpg in case it worked but no, nothing.

I'm not sure why it's not working or what I've done wrong. As I said, the code I used works for preset_9 but not preset_10 and the image name matches what's in the .material file. Does it only work with certain preset numbers?

Could anyone give me an idea on what I'm doing wrong and what the solution is, please? :3

Thank you.
Title: Re: Glow in the dark presets
Post by: damiian on November 16, 2013, 11:33:30 pm
Have you tried naming the part your using as it is said in the script?
as you have stated naming it "preset_10body"
and within the coding it is as "preset_10glowbody" try editing the name to the exact name in the coding if its already not named after it ^^
Title: Re: Glow in the dark presets
Post by: Ingredient on November 16, 2013, 11:38:54 pm
Have you tried naming the part your using as it is said in the script?
as you have stated naming it "preset_10body"
and within the coding it is as "preset_10glowbody" try editing the name to the exact name in the coding if its already not named after it ^^

The images are named exactly as said in the .material file so I don't understand why it's not showing.