Codes
Moving Texture (Alo makes a Fixed Layer of Texture over a Moving Texture)
material preset_1_bodyL (This Code can use 2 Moving Textures)
{
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
{
texture Textur.png
tex_address_mode wrap
scroll_anim 0.0 0.1 (If you dont want that Texture to move, remove the scroll_anim 0.0 0.1)
filtering trilinear
}
texture_unit
{
texture Textur.png
tex_address_mode wrap
filtering trilinear
colour_op alpha_blend
scroll_anim 0.0 0.1 (<- play with the numbers. you will see the Moving Speed will change, and depending where you change the Number, it will also change moving direction)
}
}
}
}
Single Moving Texture:
material preset_1_bodyL
{
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
{
texture Texture.jpg
scroll_anim -0.02 -0.08 (Change Numbers for the Speed and Directiong of the Scrolling Texture)
tex_address_mode wrap
filtering trilinear
}
}
}
}
If you want this Code to make your Preset having a Moving Texture under a fixed one, make it this way:
material preset_4_bodyMatL
{
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
{
texture PresteBody1.jpg (IMPORTANT for Texture being jpg! This one is the Moving one, cant be transparent!)
tex_address_mode wrap
filtering trilinear
colour_op replace
scroll_anim 0.0 0.1
}
texture_unit
{
texture PresetBody.png (IMPORTANT for Texture being png! This one is the fixed, not moving. Can be transparent also!)
tex_address_mode wrap
filtering trilinear
colour_op alpha_blend
}
}
}
}
Is this a code you could use?
It's an animation code, for moving textures, so I guess you could make error codes and use 'em with this.
I've also got the invisibility code, if you'd like certain parts of the preset to turn invisible, as if they ere loading, or something similar.
I'm not an expert on presets, so tell me if I'm wrong on this.
This thread is helpful in general: http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=5665.msg80079#msg80079 (http://www.feral-heart.com/index.php?option=com_jfusion&Itemid=2&jfile=index.php&topic=5665.msg80079#msg80079)
Copy the following. Open up the preset code, highlight the already existing one, then press ctrl + v to paste over it. Don't worry about changing the font so it matches with the rest of the code, since it won't matter.
Replace the "scrolltexture" with the name of the texture you want animated. Make sure the texture is in your preset's folder, too. Also, change the main textures of your preset to .pngs instead of jpgs, so that it will be easier to work with. And make sure that the scrolling texture is a .png image!
material preset_1_bodyMatL
{
technique
{
pass
{
texture_unit
{
texture scrolltexture.png
scroll_anim 0.0 0.1
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_1Lbody.png
}
}
}
}
material preset_1_bodyMatR
{
technique
{
pass
{
texture_unit
{
texture scrolltexture.png
scroll_anim 0.0 0.1
}
}
pass
{
scene_blend alpha_blend
texture_unit
{
texture preset_1Rbody.png
}
}
}
}
Note: this is just for scrolling textures.