So someone asked me if there was a way to put a scrolling texture on a mane without getting the rectangles on it where the textured planes should be. At first I thought it was only doable through animated textures frame by frame and we all know too much of those make your presets too big for the preset uploader.
However, after reading more about it on the topic, I realized that it was most certainly doable. I was super excited to finally get it after reading some OGRE engine topics and info, especially considering that I'm really curious about the possibilities of coding in general.
So, you will need two things, first off, you'll have to copy the mane mask (the all black one) from the media folder in FH and then you'll need your scrolling texture.
Here's the code for it:
material preset_1_maneMat
{
technique
{
pass
{
scene_blend alpha_blend
alpha_rejection greater 128
texture_unit
{
texture preset_1mane (this is the all black mane mask).png
}
texture_unit
{
texture preset_1mane (this is the all black mane mask).png
colour_op alpha_blend
}
texture_unit
{
texture SCROLLING TEXTURE.jpg
colour_op_ex blend_current_alpha src_texture src_current
tex_address_mode wrap
filtering trilinear
scroll_anim 0.0 0.1
}
}
}
}
The way this works it that the very first texture is the one that shows up underneath everything. Then, we apply a mask where the transparent areas are not covered, but the black/coloured ones are. The final texture is what we apply on the coloured areas of the mask. Basically, since the bottom layer is transparent, the scrolling texture is also rendered transparent in the uncovered areas of the mask.