to scroll the texture

prathap

13-11-2008 09:13:43

hi,
in ET i need to scroll(texture animation) one particular splatting texture,for that i wrote in the texture unit scrool-anim 1.2 0,but iam not able to get the texture scrolling effect,please help me how can i scroll the particular splatting texture in ETm

billykater

15-11-2008 14:56:59

As far as i remember scroll_anim only works when using the standard ogre pipline. If you use the standard ETM shader for drawing (Cg shaders) you cannot use it.
Therefore you have to implement this yourself. Take a look at PSSplat.cg and PSSplat2.cg and change the texturecoordinate calculation for this texture fetch.
Also take a look at param_named_auto texture_matrix attribute. This might be what you need.