1
Game Help / Oh boy.. {Preset Coding}
« on: February 27, 2015, 09:27:00 am »
So, I've recently began to make a preset for a new character of mine.
It's made to be a GIF type of preset {AKA Animated}, where the images flash by. I already have the head of the preset done, but I can't seem to get the coding correct because every time I try to use the preset, the whole body comes out with the bumblebee colors. This is what I have for the coding:
All the files are saved as .png as well.
It's made to be a GIF type of preset {AKA Animated}, where the images flash by. I already have the head of the preset done, but I can't seem to get the coding correct because every time I try to use the preset, the whole body comes out with the bumblebee colors. This is what I have for the coding:
Code: [Select]
material preset_5_headMatR
{
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.010000 0.010000 0.010000 1.000000
emissive 0.000000 0.000000 0.000000 1.000000
texture_unit
{
anim_texture body1.png body2.png body3.png body4.png body5.png body6.png body7.png 1
tex_address_mode wrap
filtering trilinear
rotate_anim 0.02
}
}
}
}
pass
{
ambient 1.000000 1.000000 1.000000 1.000000
diffuse 1.000000 1.000000 1.000000 1.000000
specular 0.010000 0.010000 0.010000 1.000000
emissive 0.000000 0.000000 0.000000 1.000000
scene_blend alpha_blend
texture_unit
{
texture Texture.png
tex_address_mode wrap
filtering anisotropic
max_anisotropy 16
}
}
}
}
material preset_5_headMatR
{
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.010000 0.010000 0.010000 1.000000
emissive 0.000000 0.000000 0.000000 1.000000
texture_unit
{
anim_texture body1.png body2.png body3.png body4.png body5.png body6.png body7.png 1
tex_address_mode wrap
filtering trilinear
rotate_anim 0.02
}
}
}
}
pass
{
ambient 1.000000 1.000000 1.000000 1.000000
diffuse 1.000000 1.000000 1.000000 1.000000
specular 0.010000 0.010000 0.010000 1.000000
emissive 0.000000 0.000000 0.000000 1.000000
scene_blend alpha_blend
texture_unit
{
texture Texture.png
tex_address_mode wrap
filtering anisotropic
max_anisotropy 16
}
}
}
}
All the files are saved as .png as well.