Look ma, no bubbles
KeithHandy posted in Coding, Generative, Pretty Pix on July 31st, 2007Now that I’ve taken out the trash…

Strangest thing about my old auto-morphing code that I’ve had a couple of demos up for (also on youtube): it’s had an incredibly stupid bug in it all this time, that I would never have noticed if I wasn’t just staring at the code mindlessly. It was transitioning smoothly from picture to picture, but there seemed to be an excessive amount of white or light gray circular areas that would unnecessarily billow up before resolving to the next keyframe. Everything was working correctly except for there was this line of code that I copied and pasted and didn’t finish changing it the way I’d intended to, so instead of getting the data for a, b, c, and d, it was getting “b” twice and leaving “a” at zero.
The reason it didn’t totally cause it to malfunction outright? To interpolate, it takes the data from not two, but four pictures. The keyframe just before the current frame is called “b”, the one just before that is called “a”, the one right after the current frame is called “c”, and the one right after that is called “d”. So you’ve got a, b, c, and d, and the thing you’re filling in is somewhere between b and c.
The reason it uses info going that far back and forward is so that I can make the data curve as it goes along. It’s called a spline curve, when the computer sort of “improvises” a curve to fit an arbitrary set of points, and in order to know how the curve is shaped, you want to know where at least a couple extra points are beyond the ones you’re between. Well, since “a” was treated as though it were all zeros, it would come out of “b” at the right place but at the wrong angle. So the data would always have sort of an “upward lurch” at the beginning of the transitions, thus making all those white and light gray bubbles.
Here is a demo video of a transition sequence that works the way I meant it to.
(Is this the same Keith Handy guy that does the music, or am I at the wrong website?)

We could just randomly give stuff away, and randomly give time to other people. But that does no good if the people don’t like the stuff (or time) we’re giving them, especially if it’s stuff that we thought they’d like because we liked it, and now it’s totally going to waste because they have it and not us, and we’d sooner spend the next 20 years wishing they’d appreciate it than simply ask to have it back.


A 

Keep notes on every song. Things you haven’t done that you still want to do, and if you stopped midway through doing something, what part of it is still left to do? (Example: “cleaning up background noises on vocal track, still need to do from 1:50 to end of song.”)
As with many Americans, there were gaping holes in my education, and history was a particularly weak subject of mine… so take it with a grain of salt when I suggest that America is a super-sized “man who invented himself”, or, the country that invented itself. You could criticize me here for reffing a song written by 
