Well written tutorial with great code examples.
This gave me 90% of what I needed; StackOverflow filled in the rest. all I did was add motion to the textures. lol.
Excellent reference