rupl / bustashape

Collaborative, real-time artboards
https://bustashape.art
MIT License
5 stars 3 forks source link

motion blur when moving #15

Closed rupl closed 8 years ago

rupl commented 9 years ago

Might have to switch to SVG but the result would be worth it.

🔗 http://tympanus.net/Tutorials/MotionBlurEffect/

afragon commented 9 years ago

It might be a sound idea to switch to SVG as it opens up possibilities to save the art as a file that have all interactive elements embedded.

rupl commented 9 years ago

in this case we'd be making the individual shapes SVGs instead of one huge canvas made of SVG. although both are intriguing! It would be a GPU destroyer but making the whole board one big SVG opens up many more filtering capabilities and stuff.

rupl commented 8 years ago

I stand corrected: two.js does indeed draw the canvas as a single SVG, which means we can easily snapshot any bustashape room at any time.

I also saw this two.js physics demo which seems even more fun than plain motion blur:

🔗 http://jonobr1.github.io/two.js/examples/rubber-ball.html

rupl commented 8 years ago

The motion blur referenced in the top comment is only possible for X/Y, not any arbitrary direction, so for our purposes it won't work. The vertices warping, however, works!

Unfortunately it is a little too CPU heavy to deploy, and also scaling way down makes things super whacky. Overall I would say this was a successful experiment, but we need another generation or two of hardware before this will work smoothly.