Changing The Audio Track of a Video with Avidemux

Written by Kenton Hamaluik in Programming on January 25, 2014. Tags: Python,

Avidemux is a handy program for dealing with video files. It can even do batch operations easily enough — that is, if you can figure out how. The documentation for doing any sort of batch job is absolutely terrible. I have a few videos that have a few different audio tracks. Three, to be precise: Russian, English, and a third "unknown" one. Whenever I would play these, it would play them by default in Russian (I would have to manually change the audio track for each file), which is not helpful to me at all. I needed a way to batch change the default audio track (or even just strip the Russian out) for all the video files. Enter Avidemux.

Continue reading »





Writing an Editor Extension to Customize Mesh Colours in Unity

Written by Kenton Hamaluik in Programming on November 22, 2013. Tags: Unity, Editor Extension,

I'm an engineer and a programmer, not an artist. This sometimes becomes an issue for me when I work on games as while I can make the game technically sound, the art is often downright horrible, or I spend way more time on it than I have any right to. I'm currently working on a long-term, back-burner type game project to keep me busy and distracted when I occasionally need a break from real life. Programming-wise, I'm fine, but what's a game without art? Well, aside from Dwarf Fortress and most Roguelikes out there, it's not much. Fortunately, I recently stumbled across (what I think) is a great art style: geometric assets, as shown below:

Continue reading »


Simple Bézier Curves in Matlab

Written by Kenton Hamaluik in Math on November 17, 2013. Tags: Matlab, Matrix, Numeric Method,

I've always been curious about how [Bézier] cubic splines are generated and I how I can use them in various projects (game development probably being the most immediately obvious). If you don't know what I'm talking about, Wikipedia has a decent if somewhat tedious description. After digging through the math, I came up with these results which I'll share for the simplicity of it all (they really are simpler than I ever though). I found most sources started at the beginning and gave huge mathematical backgrounds, which although are nice, are typically just not what I was looking for. What I was looking for (and what is presented here) is just the end result - given a set of input weights, how do I calculate the actual spline?

Continue reading »


Switching to Octopress

Written by Kenton Hamaluik in Blog on November 14, 2013.

I've been disappointed and annoyed with Wordpress lately - mostly it's extremely obfuscated styling and plugins as well as terrible load times (several seconds to render a page?). I stumbled across Jekyll a while ago but didn't have the change to try it out. Fast-forward to yesterday where I came across Octopress (which is basically Jekyll on steroids), and I decided it would be worth the switch. (For good reads on why static blogs might be better for you, check out a couple blog posts which strongly encouraged me to switch over: The Hiltmon and My Jekyll Fork).

Continue reading »


Making A Custom Teensy3 HID Joystick

Written by Kenton Hamaluik in Programming on October 26, 2013. Tags: Arduino, Teensy3, Tutorial, Unity,

Well, as per probably 99% of blogs out there, I haven't updated this one in.. forever, which is unfortunate but surely not the end of the world. Anyway, I recently got married and for our wedding we decided we wanted to include some arcade games for a more unique, personal, and fun wedding experience. Me being the overly-ambitious type that I am decided it would be even more spectacular to create our own wedding arcade ("Wedcade" for short)! These actually turned out pretty decently in the end, and I'll try to write up a post or two about them (as well as the arcade cabinets!) later, but for now I want to talk about using the Teensy3 as a joystick (namely using Teensyduino).

Continue reading »


Super Mario World Physics

Written by Kenton Hamaluik in Math on July 28, 2012. Tags: Matlab, Physics, Reverse Engineering,

Super Mario!

Arguably one of the greatest video game series of all time, I spent countless hours playing these games as a kid. One thing I always particularly loved about the games is that the kinematics / physics of Mario's motion were just so.. fun! Not necessarily that they felt real, but when you ran, you ran fast. When you jumped, you jumped high, etc. I think this is a problem that I have with numerous other platforming games.. yea, sure, the gameplay can be fun, but moving around just seems so... boring in comparison to Mario.

Continue reading »