So I'm working with OSCeleton and trying to make a very rough 3d volume of the body. I'm not particularly hot at low-level 3d or maths, which this seems to require in abundance.
So far I have a system that takes two points - say the right hand [A] and right elbow [B]. It finds the mid-point between the two, and sets that as the draw position. I then minus A from B to find the relative distance in cartesian space, then I run a 3dcartopol object on it to extract the azimuth, elevation and distance. I feed all those numbers to a sketch object in the hope it will draw a cylinder at that position and orientation, using these gl commands:
I see a cylinder that acts roughly right, but often does strange things like flipping around its axis all of a sudden, or (as the user moves right to left) starting at the right of the screen, tracking them to the center, then returning to the right.
Trying to use multiple cylinders results in a spastically twitching, flickering heap. I'm way, way, way over my head already (and frankly surpised theres anything on screen). So I thought I'd ask if there was anything wrong with the basic concept or openGL before getting into the specifics of the patch.
I've read the relavent redbook sections, but nothing seems to be helping (the current gl commands are just one configuration of many I've tried that all draw, but dont achieve the result). I've pushed and popped matrices but it didn't seem to achieve much so I removed those lines.