Feral Heart
Help & Guidance => Game Help => Topic started by: OceanWaves on October 04, 2017, 07:47:09 pm
-
I'm making a skeleton like preset and I don't want the teeth to show up. So I colored in a the square for the eyes and made the rest of the image transparent. I exported it as preset_8.png then wrote 'alpha_rejection greater_equal 128' in the code for both eyeMatR and eyeMatL. But when I loaded it in preset maker it showed up as if there wasn't a file for the eyes and I did export the file into the presets file.
-
The code looks like this btw
[code]material preset_8_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_8scroll.png
scroll_anim 1.0 1.0
}
}
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 1.0 1.0
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_8body.png
}
}
}
}
material preset_8_headMatL
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_8head.png
}
}
}
}
material preset_8_headMatR
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_8head.png
}
}
}
}
material preset_8_eyeMatL
{
receive_shadows on
technique
{
pass
{
ambient 1.000000 1.000000 1.000000 1.000000
diffuse 1.000000 1.000000 1.000000 1.000000
specular 0.050000 0.050000 0.050000 1.000000 12.500000
emissive 0.000000 0.000000 0.000000 1.000000
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
scene_blend alpha_blend
texture_unit
{
texture preset_8eye.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_8_eyeMatR
{
receive_shadows on
technique
{
pass
{
ambient 1.000000 1.000000 1.000000 1.000000
diffuse 1.000000 1.000000 1.000000 1.000000
specular 0.050000 0.050000 0.050000 1.000000 12.500000
emissive 0.000000 0.000000 0.000000 1.000000
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
scene_blend alpha_blend
texture_unit
{
texture preset_8eye.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_8_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_8tail.jpg
}
}
}
}
material preset_8_maneMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture preset_8mane.png
}
}
}
}[code]
Also don't worry about the mane code being the unfixed one because this character doesn't have a mane.
-
Have you tried removing all the specular and diffuse effects from it first?
-
Have you tried removing all the specular and diffuse effects from it first?
I just tried and it sadly did not work. I appreciate your suggestion though.
-
Okay, wow, the problem was actually me forgetting to put and 8 in the images name when I exported it. :P Derp
-
I'll be locking this up now since the issue seems to be resolved