How is "Trails" implemented

FFGL, OSC, GLSL. If you like abbreviations, this is the forum for you
Post Reply
sefreso
Is taking Resolume on a second date
Posts: 32
Joined: Thu Nov 07, 2019 21:36

How is "Trails" implemented

Post by sefreso »

Hello,

I would like to port Resolume's "Trails" video effect into a GLSL plugin.

I have been looking online for tutorials but can't find the right search keywords.

I don't really know where to start.

Would anyone outline the main steps in producing the Trails video effect?

Thanks!

edwin
Team Resolume
Posts: 1202
Joined: Thu Oct 07, 2004 10:40

Re: How is "Trails" implemented

Post by edwin »

You need to retain a copy of the last rendered frame.
So keep a copy and perform a blend with the new Frame.

Piotrus04
Is taking Resolume on a second date
Posts: 27
Joined: Mon Nov 06, 2017 12:05

Re: How is "Trails" implemented

Post by Piotrus04 »

@Edwin, do you have a source to provide because it is not only get a copy of rendered, we also have to manage the double call to the same instance, when the clip play and preview mode are both activated.
In this case, the plugin must manage two different dimensions, the one from the layer or clip sent to preview, and the one sent to the output.
Double means two fbos of different dimensions?
How to manage this?
Best

Post Reply