I've been doing a bunch of projects lately that require intuitive movement through gl space, and I thought I would post a clean and condensed version of the navigation system that I've been using. Any suggested improvements or comments would be great.
Drop this into your jitter patch and connect it to your jit.gl.render. Here are the navigation instructions: I've also attached a sample patch with ReadMe file.
Use the mouse/trackpad to control your lookat point.
Use the keyboard to move the camera
In this version of the patch, moving forward/backward/left/right = moving parallel to the x-z plane. You can look up or down while moving forward/backward/left/right, but this will not affect your movement on the y axis. Moving up/down = moving along the y axis. You can look around as you move up/down, but this will not affect your movement along the x and z axes. I find this to be the more convenient way to navigate and view gl space.
'w' moves camera forward
's' moves camera backward
'a' moves camera left
'd' moves camera right
COMBINE THE ABOVE KEYS FOR DIAGONAL MOVEMEMENT
'r' moves camera up
'e' moves camera down
'k' toggles movement on/off
'console' opens the console, where you can change movement speed and view current camera coordinates
'z' zooms the camera view in