I am looking for a way to crossfade between an image generated via AI and its successor.
I get a new image generated every now and then, upscale it via NV-Upscaler and after THAT has happened, I want fade the connected out, that holds the previous generation, to the new image so that the newly generated image doesn’t just “pop in”.
I’m quite unexperienced in TD and I can’t find a way. Isn’t there a switch-TOP for outputs? Or some kind of other routing trick? This would actually do most of the job together with a cross. It does need a mechanism to actually just update the currently not visible output, too. But one question after the other
Already made some progress:
What’s left is the question on how I actually trigger the two cache TOPs.
The “Done” Parameter coming out of the AI-Comp is toggling between 0 and 1.
So this would be perfect for actually pulse the “Active” on the respective TOP, but I don’t know, how to get a pulse from “Toggled Up” and “Toggled Down” of the “Done”-Parameter.
Hi @kingkongsy,
good stuff, the channel you are using for the cross should be useful for the Cache TOP as well.
First you can use a Fan CHOP and set it to output 2 channels. It will take the inputs value and set the output’s value to one of the channel with the index of the input value. As you only want to only pulse a parameter, you can attach a Logic CHOP to the Fan and set the Convert Input
parameter to On When Value Changed
…
Also check out the OP Snippets for more examples that explain the functionality of operators
Our curriculum at learn.derivative.ca is also an excellent source for short and informational videos to learn about fundamental concepts in TouchDesigner.
Hope this helps
cheers
Markus