Yes, reinventing the wheel is okay when you have a simple problem. But the article describes a complicated problem, and the presented solution delivers pretty poor results. In this specific case, I am pretty sure that looking for an existing solution would be the wiser choice. I saw two separate solutions to this problem at a recent graphics conference alone.
(Tip: if you have trouble compiling something you found on Github, contact the author and offer $200 to walk you through the installation. Might save a lot of frustration)
(Tip: if you have trouble compiling something you found on Github, contact the author and offer $200 to walk you through the installation. Might save a lot of frustration)