Animated textures can add a lot of life to materials and allow for some pretty unique effects when used well.
How to make a scrolling texture
Scrolling textures are good for moving water, clouds, and anything constantly moving in one direction.
- Frames/Cell controls how many frames each cell lasts. This value is based on 30fps, so if this value is set to 30, each cell will last 1 second.
- To make the animation go faster enter a lower value.
- To make the animation go slower enter a higher value.
- Offset is a pixel offset of the texture in X (along the width) and Y (along the height).
- Direction is how many pixels the image scrolls per frame.
- You can also use this to change the speed of the animation.
- To make the animation go faster enter a larger negative or positive number.
Example
How to make a cycling texture
Cycling textures are like flipbook animations. So a poof of smoke, a candle burning, or anything that can be animated with frames.
- Number of Cells is how many frames you want in your animation.
- Start Cell is which cell the animation starts from.
- Frames/Cell controls how many frames each cell lasts. This value is based on 30fps, so if this value is set to 30, each cell will last 1 second.
- To make the animation go faster enter a lower value.
- To make the animation go slower enter a higher value.
- Cell Size is the size in pixels of each frame.
- The sizes must be powers of two (see ‘Notes on texture dimensions’ below)
- Offset is a pixel offset of the texture in X (along the width) and Y (along the height).
Example
Notes on texture dimensions
For performance purposes textures are stored and rendered at specific dimensions that are based on the power of two. The texture animation system is also based on power of two dimensions. Because of this it is good practice to use textures that are power of two dimensions and understand how textures are resized by IMVU when they are not power of two dimensions. Furthermore, you must use power of two values for the Cell Size when making Cycling texture animations.
What are power of two dimensions?
The power of two dimensions for IMVU are textures with width or height of 2, 4, 8, 16, 32, 64, 128, 256, or 512 pixels.
More info on texture animation
For more a more in-depth explanation of texture animation, check out our Learning Session 4