↧
OpenNI Block of Code
OpenNI, a library created by PrimeSense. It’s quite famous for its ability to use the Kinect to track users and feed us with a usable skeleton per user. Since i wanted to give this a try and play...
View Article1d to 2d
At some point you might end up needing to convert a 1d index value to access a 2d array. Here’s how you can do it. // Texture is POT, NxN int x = index % N; int y = index / N; As noted by Diogo...
View ArticleC/C++ enable/disable code blocks with comments
Sometimes you’re writing code and need a quick way to enable/disable a section of code. That happens to me and most probably it happens to you too. I know of 2 ways to do this. You’ll need to change a...
View Article