Feral Heart
Help & Guidance => Game Help => Topic started by: RottenLemon on May 29, 2018, 02:45:50 pm
-
Hello! I'm a bit of a newbie when it comes to presets, but seems I've gotten myself in to a pickle. So, I'm making a preset for my zombie oc, Kevin, and he requires two sides and his ear has a bit missing so I wanted to do transparency on that side of the head. Well I got the codes and stuff with help from a friend(Which, I think are right?...) and everything is fine until I go in to preset tester. It's marshmallow heads/tails/manes. The body is fine though? I dunno what I'm doing wrong. Probably a very easy fix though
Image (warning, large): https://prnt.sc/jo3szb
and Code, of course:
material preset_9_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture preset_9body.jpg
}
}
}
}
material preset_9_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture preset_9body2.jpg
}
}
}
}
material preset_9_headMatL
{
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_9head2.png
tex_address_mode wrap
filtering trilinear
}
}
material preset_9_headMatR
{
technique
{
pass
{
texture_unit
{
texture preset_9head.jpg
}
}
}
}
material preset_9_eyeMatR
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_9eye.jpg
}
}
}
}
material preset_9_eyeMatL
{
technique
{
pass
{
cull_hardware none
cull_software none
texture_unit
{
texture preset_9eye2.jpg
}
}
}
}
material preset_9_tailMat
{
technique
{
pass
{
texture_unit
{
texture preset_9tail.jpg
}
}
}
}
material preset_9_maneMat
{
technique
{
pass
{
cull_hardware none
cull_software none
alpha_rejection greater_equal 128
texture_unit
{
texture preset_9mane.png
}
}
}
}
-
Have you made the head/tail/mane yet? And if you have, have you double checked that the names and file types match up? I just have to ask, since you haven't specified. ^^'
If you've already done that, I'll be turning back to your code. You're missing a few brackets going down at the end.
Your code:
material preset_9_headMatL
{
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_9head2.png
tex_address_mode wrap
filtering trilinear
}
}
VS how it should look:
material preset_9_headMatL
{
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_9head2.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
And if you're still having trouble with that, I found a much simpler transparency code that you can use!
material preset_#_bodyMatL
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_#body.png
}
}
}
}
Hope this helps!
-
Have you made the head/tail/mane yet? And if you have, have you double checked that the names and file types match up? I just have to ask, since you haven't specified. ^^'
If you've already done that, I'll be turning back to your code. You're missing a few brackets going down at the end.
Your code:
material preset_9_headMatL
{
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_9head2.png
tex_address_mode wrap
filtering trilinear
}
}
VS how it should look:
material preset_9_headMatL
{
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_9head2.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
And if you're still having trouble with that, I found a much simpler transparency code that you can use!
material preset_#_bodyMatL
{
technique
{
pass
{
alpha_rejection greater_equal 128
texture_unit
{
texture preset_#body.png
}
}
}
}
Hope this helps!
It worked! Thank you very much.
-
Locking this topic up as the problem has been resolved.