How to do an animated texture?

8 replies [Last post]
steve_3d's picture
Posts: 91

Hi!! I would like to know how to animate a texture.

More specifically, I would like you to help me to create a texture of the air conditioner that you see in the picture, so that the blades rotate.

Anybody knows any tutorial about it?

 

Thank you so much!!

metalliandy's picture
Posts: 3188

It's depends which software you want to use. In UDK this is really easy Smiling

All you need to do is add a rotator node to your textures and mask out the parts other than the blade.

I have attached the material below. Hope that helps!

rotate_mat.jpg rotate_mat_2.jpg
AttachmentSize
rotate_mat.zip 817.69 KB
steve_3d's picture
Posts: 91

the problem is that I've baked the texture from a high poly model, and there is a gri ahead of the blades. For this, I don't know how to put the mask, so the grid don't rotate.

I show you the diffuse texture so you know what I'm talking about!

 

thanks! Smiling

airc_mat.jpg
metalliandy's picture
Posts: 3188

Ahh. You cant animate the current texture in any way that will fix that issue Sad

You would have to bake out a new version of the grate and fan (the grate being in a separate place on the UV map and on a new plane) in order for them to be masked out correctly and to have the blade be rotatable.

If you can't change the UVs, then a new small texture of 256 or 512 would be fine for the grate (depending on your current texture size), but you would still have to remove the blade from behind the grill in the main texture.

You would then need to create new masks for the the grill and fan blades and set it up as above.

You will probably have to do a little re-moddeling and extrude the area that holds the fan inwards or the grate outwards a little so there is no z fighting.

Hope that makes sense Smiling

steve_3d's picture
Posts: 91

Thank you very much for your help Metalliandy. Smiling

There might be a way to do it with different states of the texture and then put them in a 4x4 (for example) texture with a mask that covers the grill and the blades!?

like in this youtube tutorial! http://www.youtube.com/watch?v=HwuJaR7016U

or it could be a bad method?

thank you Smiling

metalliandy's picture
Posts: 3188

No problem Smiling

Yea, you could do something like that but it would be more work than what I had previously explained and would require much more texture space, and therefore memory, because you would need  a sprite sheet with each turn of the blade.

steve_3d's picture
Posts: 91

Ok! I'll try the two ways! Smiling

 

 thanks!! Smiling

metalliandy's picture
Posts: 3188

Smiling

Longbowan's picture
Posts: 98

Model a Fan that is close. Animate the blades. Then Save video as .mov or avi file put video on a plane or wall... it will animate on max in its time line by scrolling time line.