Feral Heart
Help & Guidance => Game Help => Topic started by: Midgetsc on March 02, 2013, 07:18:27 am
-
I was on a thread with a bunch of preset codes, and decided to use the transparent one for my preset. I used the opacity thingy on Gimp to make a semi-transparent texture, and it worked for the head and eye. However, as soon as I uploaded the body, the tail and body became invisible.
(http://i47BannedImageSite/rj1mie.jpg)
If anyone knows how to fix this, I'd appreciate the help. And, if needed, I can copy and paste the material thingy.
Thanks~
-
Might be something wrong with the code or the image names you used.
Could you paste the code from your material file onto this post please for me to look at? Could you also give me the name and format of the images you have in your preset folder as well ;)
-
material preset_9_bodyMatL
{
receive_shadows on
technique
{
pass
{
scene_blend alpha_blend
fog_override true
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
emissive 0.000000 0.000000 0.000000 1.000000
alpha_rejection greater_equal 128
cull_hardware none
cull_software none
texture_unit
{
texture preset_9body.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_9_bodyMatR
{
receive_shadows on
technique
{
pass
{
scene_blend alpha_blend
fog_override true
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
emissive 0.000000 0.000000 0.000000 1.000000
alpha_rejection greater_equal 128
cull_hardware none
cull_software none
texture_unit
{
texture preset_9body.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_9_headMatL
{
receive_shadows on
technique
{
pass
{
scene_blend alpha_blend
fog_override true
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
emissive 0.000000 0.000000 0.000000 1.000000
alpha_rejection greater_equal 128
cull_hardware none
cull_software none
texture_unit
{
texture preset_9head.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_9_headMatR
{
receive_shadows on
technique
{
pass
{
scene_blend alpha_blend
fog_override true
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
emissive 0.000000 0.000000 0.000000 1.000000
alpha_rejection greater_equal 128
cull_hardware none
cull_software none
texture_unit
{
texture preset_9head.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_9_eyeMatL
{
receive_shadows on
technique
{
pass
{
scene_blend alpha_blend
fog_override true
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
emissive 0.000000 0.000000 0.000000 1.000000
alpha_rejection greater_equal 128
cull_hardware none
cull_software none
texture_unit
{
texture preset_9eye.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_9_eyeMatR
{
receive_shadows on
technique
{
pass
{
scene_blend alpha_blend
fog_override true
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
emissive 0.000000 0.000000 0.000000 1.000000
alpha_rejection greater_equal 128
cull_hardware none
cull_software none
texture_unit
{
texture preset_9eye.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_9_tailMat
{
receive_shadows on
technique
{
pass
{
scene_blend alpha_blend
fog_override true
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
emissive 0.000000 0.000000 0.000000 1.000000
alpha_rejection greater_equal 128
cull_hardware none
cull_software none
texture_unit
{
texture preset_9body.png
tex_address_mode wrap
filtering trilinear
}
}
}
}
material preset_9_maneMat
{
technique
{
pass
{
lighting off
cull_hardware none
cull_software none
scene_blend alpha_blend
depth_write off
texture_unit
{
texture preset_9mane.png
}
}
}
}
The names of my pictures are preset_9head.png, preset_9eye.png, and preset_9body.png
-
I would think if you wanted something that isn't to transparent you would use the Ghost code. But if the same coding worked for your head then perhaps you mistyped something and the coding isn't working
-
The alpha_rejection greater_equal 128 code registers semi-transparency as transparent on most meshes.
Take a look here (http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=26062.msg341652#msg341652). c:
-
Oh, that's cool- thanks. :3 Quick question, though. Do I need to have the preset already exported?
-
Oh, that's cool- thanks. :3 Quick question, though. Do I need to have the preset already exported?
When you have finished everything you need on your preset, then you take it to the testing area and you click on Exports.
When you do this, it makes a fhp file for ya and automatically puts it in your "Preset" file along with other friends you might have. This allows your character to be seen in game. NEVER take your fhp file out of your preset folder
To let other people see your preset, you need to upload your fhp file to tinyurl or something like Mediafire.com and send people links to your preset