Fog

A longstanding trick in computer graphics is to add fog to a scene. Not only does fog help create a sense of atmosphere, but it also helps to avoid needing to render huge scenes, since everything further than a certain distance away becomes invisible.

The math behind fog isn’t all that complicated, which is why I was surprised yesterday to realize that a scene I was rendering had the fog exactly wrong: Everything near the camera was obscured by misty white fog, whereas objects far away remained perfectly visible.

It wasn’t right, but it certainly looked very cool. I could see entire vistas, mountains, streams and villages, with crystal clarity, going far off into the distance, even as nearby objects remained shrouded in mist.

I pored over my code, trying to understand where I had gone wrong, but couldn’t seem to find the bug. I didn’t actually understand what was going on until later that night, when I woke up in bed, and realized that the entire episode had been a dream.

So it seems that I program when I dream. I wonder whether that is a good thing. For all I know, I’m a better programmer when asleep.

But if last night was any indication, I am lousy at debugging in my dreams.

Before and after

I’ve given several talks about my research in the last few weeks, and I’m seeing a consistent rhythm. In the days before the talk I add new capabilities, build cool and sexy demos, work through the narrative and timing, practice making everything flow.

There is a particular kind of development that happens in those times — cool, bold new features, sure to catch the eye of onlookers. There’s a lot of focus on textures, movement, all the flash and sizzle.

But the days after one of these talks are just as interesting, only in a different way. I have no pressing deadline, but my head has become filled with all sorts of questions raised by the act of presenting my work — both from the things that worked well and from the things that failed to work.

I find myself enormously productive in the days after one of these talks, but it’s a very different sort of productivity. It is a time for gradually building toward new directions, for making good on promises I had sort of made in my presentation, for moving things from mere “cool demo” to actual working system.

It’s funny — people are always appreciative when I give a talk about new work and I show demos of things they’ve never seen before. But another way of looking at it is that those people are doing me a favor. In a way, they are my research collaborators.

Applied evolution in the classroom

There is a saying in evolutionary biology that “Every genotype requires a viable phenotype.” In other words, each genetic mutation needs to result in creatures that can survive — otherwise the mutation dies out.

Even if, say, four particular steps of evolution would have led to a super-being, that path of evolution will never happen should any of the first three steps produce a fatal vulnerability.

It occurred to me today that this concept has something to teach us about education. Very often an educator will introduce a lesson in the following general way: “Later this semester we’re going to get to the fun stuff, but first you need to learn these basics.”

What often follows is a grueling and demoralizing exercise — equations are written, theorems proved, complex formulas worked through. Students become bored, disenchanted, distracted. They surreptitiously check their iPhones for incoming texts. Nobody wins.

Even if the stuff that comes later in the semester turns out to be fun, the damage has been done. Students who lost the narrative during the earlier lesson are almost certainly not going to be able to pick it up later. They will be unprepared for what comes next.

I would argue that every lesson needs to be fun and exciting on its own terms. I know that in practice this can be difficult.

But it is necessary.

Subtext

There is a wonderful scene in Woody Allen’s “Annie Hall” where the two main characters, who have just met, are provided with subtitles. They are both attracted, but have no idea how to talk to each other. As they natter on awkwardly, trying and mostly failing to hold a meaningful conversation, the subtitles say what each is really thinking, to hilarious effect.

One day, perhaps far in the future, the technology may exist to make those subtitles. Your wearable device will analyze your partner’s body language, facial expression, eye saccades, tone of voice, slight pauses, and any other available clues.

This data will be correlated in real time with a vast database in the Cloud, then run through various machine learning algorithms, together with techniques for rapid language parsing and synthesis.

The net effect will be an interpretive stream of words that appears to float in space between you and your friend, telling you what the other person is really thinking and feeling.

And here’s the weirdest part: The people who grow up with this technology won’t have the faintest idea why anybody would have a problem with it.

Epistemology of instruments

In any real-time performative medium, you walk in with something already prepared. If you are a pianist, the piano has already been built — the audience generally does not wish to see you construct a piano there and then on-stage.

In theatre there are sets, costumes, lights, stage directions, usually a script, all of which have been carefully prepared before the live event itself.

Even improvisational performances require much preparation. Nobody goes into a jazz improv session without lots of practice and grounding in the rules of the genre. The same goes for improv comedy or dance. In fact, the more “improvised” genres tend to have very well understood boundaries — that’s what lets them work without dissolving into chaos.

Everything you come in with, every asset available to you to use in your live performance, can be thought of as an instrument. Your trained voice and body, your guitar, the spot light from stage left, these are all instruments.

It might be interesting to study genres of live performance entirely from the perspective of nature of the instruments they require. There are many overlapping taxonomies of instruments, and the more one thinks about it, the more complex and intricate the questions get.

I wonder whether anybody has ever looked at understanding varieties live performance entirely from this formal perspective — through an epistemology of instruments.

Uke hacking

I suppose the more standard and traditional route, upon getting a new musical instrument, would be to learn the repertoire — standard chord progressions, popular songs, whatever is out there.

But I find that when I pick up my blue Ukelele I don’t want to do any of that. Instead, my fingers want to explore, to try random things, to figure out sounds and chord progressions from scratch.

I’ll figure out an F chord, then an A7, then maybe a D followed by an E minor, and go from there, working out picking patterns as I go. It really doesn’t matter, as long as the next chord feels right.

It seems that what I really want is to explore the ukelele as a kind of hack space — a place to work things out on my own, and see where it all will lead.

Which is turning out to be, I am happy to report, a lot of fun. 🙂

My blue hawaii

Walking along Commercial Street this morning in East Vancouver, on my rounds to shop for various necessaries, I found myself drawn to a little guitar shop. Walking in, I got a sudden urge to buy a ukelele.

Since I don’t play the ukelele, it didn’t seem like a good idea to get a fancy one. It turns out that there is a little beginner model for around $40 that comes in all sorts of vibrant colors. The store owner told me that his girlfriend, who is a professional musician, uses the pink one in her stage performances.

Somehow the phrase “blue hawaii” rang in my head, and I realized I just had to get the blue one. Which I did.

You can see my shiny new toy in the photo below, in the arms of its proud owner. My blue ukelele has a delightful sound, and I’m having tremendous fun learning all the chords I can make with just those four G,C,E and A strings.

And unlike my computer, it will never need batteries!

New month

I started to get very wary
Somewhere back in January.

It really made my eyebrows arch,
When February turned to March.

Then time piled up from day to day
And April somehow led to May,

When suddenly, and all too soon
It seemed to be the month of June!

Now here we are, don’t ask me why,
How quickly does the time go by!

Toaster

Today, on the long walk back from my successful quest to find and procure the ideal two-slot toaster for my temporary digs in Vancouver, I amused myself by singing songs aloud as I strolled along on this perfect summer’s day, down E 7th Avenue and across Main Street, past the Gene Cafe and the Antisocial Skateboard Shop.

There was plenty of time during my journey to exercise a varied and culturally diverse vocal repertoire. This being Canada, I made sure that Neil Young and Leonard Cohen were generously represented. Yet I freely admit that the Beatles were, as usual, the most fun to sing.

I wonder now, thinking back on the day, whether any of the natives were at all non-plussed at the sight of a strange man walking down their street while belting out the chorus of “Yellow Submarine”, a brand new toaster tucked securely under one arm.

Then again, I’m sure they understood.