Anti-aliased videos

This is in preparation for the new site launch. Time for an overhaul of the videos.

The old ones didn't look that great quality converted to youtube videos (even when downsampled).

But it is all fixed now. Here is the first exported video with antialising 3D bounce:

4/4 with triplet quarter notes for first half of the measure

4/4 with triplet quarter notes for first half of the measure

Beats triplet quarter notes for first half of the measure, and eighth notes for second half

You can look forward to more high quality videos like that in future.

Techy details

The reason it as a challenge is to do with how OpenGL words.

The extension of OpenGL (the multisampling extension) that I used for the antialiasing only worked in real time - doing everything on the graphics card. There is no way provided to use it for antialiasing of a scene rendered to a bitmap.

However had an idea to fis it. The idea was to first make each frame double resolution - then downsample. I tried that before but it always looked pretty bad.

But the new idea was to try again with high quality interpolation algorithms. I used the ones included in FreeImage. Default is to use Bilinear sampling.

This converts the pixellated edges into straight lines - and basically has same effect as ordinary antialiasing.

To do it you need to install FreeImage - which is too large to bundle in with the program itself for a rarely used features so I added it to the extra downloads page instead.