- »Day 1-Flipbook
- »Day 1-Linear/Non-Linear Motion
- »Day 2
- »Day 3
- »Day 4
- »Day 5
- »Day 6
- »Day 7
- »Day 8
- »Day 9
- »Day 10
- »Day 11
- »Day 12
- 829 Willow Ave, Apt 1
- Hoboken, NJ 07030
- P: 845-270-4332
- E: steve [at] vargatron.com
Particle Interaction: 1
So after seeing the particle grid, and seeing Zach's Homework last week with the pidgeons, I got really interested in figuring out how to read pixels and manipulate them. So after a good amount of frustration with color images vs grayscale and how the pixels were arranged, I figured it out and applied it to an image, creating particles that used the RGB value of the pixel they were reflecting and arranging them in a grid over the image so that it recreated the image. Using this with the attraction/return forces, it created a really cool composition.
Particle Interaction 2: Integrating openCV/Vector Fields
After seeing that this looked pretty cool, I wanted to combine it with the openCV/Vector Field stuff we did last week to see if OF could handle constantly grabbing frames and updating all the particles, then if on top of this it could move the particles based on vector fields created by movement in the video. I must say, I'm impressed, it works pretty much perfectly smooth with no slowdown in processor speed that I could notice. The video is at 640x480 with the particles being based off 1/4 of this size.
I am not completely happy with these videos because the quality of the video I shot at night time wasn't super and openCV doesn't work too great with low contrast even after after playing with the threshold, but the yellow taxis work perfectly, and I think if I can shoot a higher quality video during daytime that this will look awesome.
Particle Interaction: Dandelions
Dandelions swaying gently using some random sin motion. Seeds are attached using an attraction force fromthe stem and repulsion forces from the other seeds. Click the mouse activates wind power (repulsion force) and blows the seeds off the plants.