Homepage

not studios - demoscene

22/12/2020

TAGS: demoscene, graphics

Coding demos using C++, OpenGL and SDL2 is a good way to make cheap music videos for abstract electronic music. Although plain OpenGL may seem a little bit outdated for making demos, as impressive open source frameworks such as raylib or Magnum Engine may be more suited to achieve fast and better looking results, it’s still a good way to understand the inner mechanisms of 3D rendering.

For instance, the following demo coded for a side-project of mine seems appropriate to transcribe repetitive music made using a tape loop with a Tascam Porta 05 four-track recorder and a few synths.

<iframe src="https://player.vimeo.com/video/491144508" width="640" height="360" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>

Although I still don’t fully master how to sequence time using SDL2, making demos using simple rendering primitives can yield to fun looking results. It’s basically trial and error, you can’t always expect to achieve exactly what you had in mind through code. But errors can still be satisfactory.

<iframe src="https://player.vimeo.com/video/491144556" width="640" height="360" frameborder="0" allow="autoplay; fullscreen" allowfullscreen></iframe>

As a data scientist, I may spend my lack of spare time to code other demos using Magnum Engine, as this rendering engine seems also well suited for data visualization. Probably more stuff to come in the future !

Sources for the demos are located on my GitLab repository.