-
i was wondering if anyone has a code or anything to fix a preset mane to stop it looking like paper?
ty if anyone can help
-
Open the .mat with notepad and replace the mane's code with this:
material preset_#_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_#mane.png
}
}
}
}
Make sure you save it as a .png!
-
Hm, it doesnt seem to wanna work i've put it as the preset 4 Mat and its saved as PNG but the mane comes up white
-
Hm, it doesnt seem to wanna work i've put it as the preset 4 Mat and its saved as PNG but the mane comes up white
Paste the whole .mat here. :3 I want to review it.
-
material preset_4_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_4body.jpg
}
}
}
}
the mane mat was edited to:
material preset_4_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_4mane.png
}
}
}
}
material preset_4_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture preset_4body.jpg
}
}
}
}
material preset_4_headMatL
{
technique
{
pass
{
texture_unit
{
texture preset_4head.jpg
}
}
}
}
material preset_4_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_4head.jpg
}
}
}
}
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
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture preset_4mane.png
}
}
}
}
-
When coloring the mane, make sure you "lock the alpha channel." Otherwise the mane won't work.
Are you sure you saved it as a .png? The script is perfectly fine.
-
yes it was saved as Png however the preset was made a few weeks ago maybe that effected the mane? i cant remember when making it if i locked it or not
-
damiian, if you were using GIMP to make your preset then it will work whether you locked the alpha channel or not. /heads up/
-
yes it was saved as Png however the preset was made a few weeks ago maybe that effected the mane? i cant remember when making it if i locked it or not
If you don't lock the alpha channel, the mane can appear "see-through" or something similar. If you enter in that code and lock the alpha channel, the mane will appear normal. Usually when the mesh turns up that white, it means there's no texture. I could make you the mane if you need.
-
yes it was saved as Png however the preset was made a few weeks ago maybe that effected the mane? i cant remember when making it if i locked it or not
If you don't lock the alpha channel, the mane can appear "see-through" or something similar. If you enter in that code and lock the alpha channel, the mane will appear normal. Usually when the mesh turns up that white, it means there's no texture. I could make you the mane if you need.
Locking the alpha channel actually doesn't cause the see-through problem on manes, it's all in the coding. c: Locking the alpha channel simply makes it so that you can't draw on the alpha channel, the transparent bit basically. And perhaps this tutorial will help you? :3 http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=19335.0 (http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=19335.0)