This function is similar to the Imposter sprite function. It uses a series of mesh rotations but this time they are specified by user input rather than pre-set by the blueprint.
Pictured: Example of leaf mesh with a few rotations
It renders a series of image as flipbook textures. You can use them anywhere in the engine such as in a particle system. To use the resulting flipbook you simply use the "Flipbook" material function.
Setting up the Flipbook blueprint settings:
This is a dropdown list that lets you choose between three types of flipbook.
Simple Mesh Rotation : It will rotate the mesh the specified number of times along the specified axes.
Material Instance Interpolation : This will not rotate the mesh but will instead increment a Scalar Parameter called "Animation Phase" over the 0-1 range divided between all frames. This method relies on the user replacing every instance of the "Time" node in the asset material with the "Animation Phase" scalar parameter.
Both Mesh Rotation and Material Instance Interpolation : Does both operations. You must also use this option if you want to adjust the starting rotation of a material instance interpolation flipbook even if you do not want it to rotate inside the flipbook. You will simply keep the number of rotations at 0.
**Flipbook Start Rotation **
This is the start rotation of the flipbook animation.
Flipbook Rotation Axis 1
This is the axis to rotate around for rotation 1. This gets normalized so 0,0,1 is the same as typing 0,0,100.
Flipbook Rotation Axis 2
This is the axis to rotate around for rotation 2. This gets normalized so 0,0,1 is the same as typing 0,0,100.
Axis 1 Rotations
The number of rotations around Axis 1. Normally going beyond 1 rotation would actually reduce the framerate by causing duplicating frames in the texture. The only time that this is not true is when you are using both rotation axes and want to get a crazy meandering rotation.
Axis 2 Rotations
The number of rotations around Axis 2. Normally going beyond 1 rotation would actually reduce the framerate by causing duplicating frames in the texture. The only time that this is not true is when you are using both rotation axes and want to get a crazy meandering rotation.
Flipbook Rows (Y)
The number of Y frames in your texture.
Flipbook Columns (X)
The number of X frames in your texture.
Currently the flipbook tool only assigns one material. This should be improved soon.
Flipbook Static Mesh
This is where you specify the mesh to use.
Flipbook Mesh Scale
This allows you to scale the mesh manually in case there is some edge-bleeding between frames. Leave this setting alone unless you are trying to solve a specific issue as you will either lose resolution or make the mesh too large.
Preview Motion On Mesh
With this option checked, you can press the editor's "Simulate" button to see a little preview mesh that will spin with motion that is based on your rotation settings. The preview motion does not match exactly when the two axis rotations are wildly different. It is generally a good idea to keep them fairly similar or just use one axis when possible.
Allows you to adjust the spinning speed of the preview mesh.
Rendering the Flipbook textures uses the same process as the first three functions:
Choose the desired buffers from "Capture Settings", then play the game in windowed mode and type "ke * rendertextures" at the console and hit enter. You must also remember to have the "Include Buffer Visualization Targets" box checked with the window still open.