Getting a fully-textured model into three.js from 3DS Max is not particularly easy when you first get started. The basic process involves exporting to a commonly used format that has a corresponding loader. Often, you’ll want to export lights and cameras in addition to your model, so you may try exporting to Collada (DAE) format. However, as of r70, the DAE importer for three.js is not particularly stable. I had the most luck exporting to OBJ, which is a much simpler format. Continue reading
Deploying Qt Applications on Windows
Windows users should have to perform 4 steps if they want to use my Qt desktop program.
- Install the MSVC redistributable package.
- Download a zip file from my website.
- Extract the zip file.
- Double-click the executable.
I make no assumptions about what is already installed on their machines. I can use an installer to remove the burden of installing the MSVC package, but for now I’ll do this manually.
OpenGL Cone Function
How do you manually draw a 3D cone in OpenGL immediate mode? The OpenGL utility library (GLU) provides a cone function, but there may be various reasons for preferring to not use it, including reduced dependencies and finer control over the cone.
This article explains one way to manually draw a cone. There are two sections, first a verbal and mathematical explication of the main function, and second a listing of relevant code snippets. Snippets are embedded Gists from Github, which means that you are welcome to make them more concise or pretty if you like. If you want to skip directly to the code, click here.
PCA With ALGLIB
PoseDesigner uses ALGLIB‘s principal component analysis routine to extract a basis matrix from Kinect skeletal data. The ALGLIB conventions can be a little confusing – the example below provides some clarification.