brianchirls / Seriously.js

A real-time, node-based video effects compositor for the web built with HTML5, Javascript and WebGL
MIT License
3.88k stars 354 forks source link

using a canvas as source does not work with animation #89

Closed bitterulf closed 9 years ago

bitterulf commented 9 years ago

I try to add a Seriously effect on a canvas displays a animation (p5.js). seriously.go() works fine with a video but with canvas as input source it only renders once.

How can i force Seriously to redraw after the input canvas has changed?

brianchirls commented 9 years ago

After you're done updating the canvas, call .update() on the Source node that references it.

bitterulf commented 9 years ago

Thank you very much allways tried to call the update on the end node. Works like a charm!

brianchirls commented 9 years ago

Great! Would love to see what you're working on.

bitterulf commented 9 years ago

At the moment i try to combine several browser based libraries into a toolbelt to create interactive storytelling. And Seriously.js looks really nice to create effects on top of other technologies like p5.js and 3d engines. http://stuff.spielstand.net/effect/

alvarobyrne commented 9 years ago

If i may say, imho, this info should be somewhere in the main documentation, or examples or wiki. thank you.