In the recent days i experimented with ways to create a trail behind objects. A typical example would be a swinging sword in some kind of game that indicates the speed/power/etc of the attack. I tried many things and did not find any suitable solution. So i wrote a script that is able to create a trail (separate mesh, continuously updated on frame change) behind an object. It also generates automatically an UV map to apply textures or gradients.
To make an object generate a trail it has to be a mesh containing one or more open or closed edge loops, but no faces (would give fancy results). Additionally it must have the custom property named “trail” (value doesn’t matter) and and optionally the property “trailLength” (integer) which defines how long (in frames) the trail can be. The trail itself has properties that shouldn’t be touched (might crash blender) and inherits the first material of the source object. (The bird like line thing in the first screenshot)
But i guess that is enough of explanation. Just download the file and press the play button in the timelime to see it in motion. The script registers itself on loading and shouldn’t be run again/manually (will be registered twice, which isn’t such good).
Since my time is limited i wanted at least to show what can/could be achieved. Maybe someone wants to pick up the idea and/or some code from it and make an addon out of it.
trail.blend (74.4 KB)