I asked this question a couple of days ago, and I’m grateful for the reply, but I still can’t get this to work. I’ll try explaining my situation again, hopefully a little more clearly this time.
I have a scene with a first-person view. At a point in the room there is a particle flying in a certain direction. I know the particle’s origin in world space, as well as the “axes” for the particle, also in world space. These axes are mutually perpendicular and correspond to a local x,y and z coordinate system for the particle. The particle is traveling along its z-axis, in the negative direction.
I want to draw some surrounding geometry around this particle, using the particle’s axes and origin as the reference for the commands. So in other words, when I say glVertex3f(1.0f,0.0f,0.0f) I want to place a vertex one unit in the x-direction along the particle’s x axis…not along the world space x-axis.
I’ve tried everything I can think of, which admittedly isn’t much. Among other things I’ve used gluLookAt() with the particle’s origin values as the first three parameters, an appropriate look at point for the second three parameters, and the particle’s y axis as the final three params. Nothing doing. I’m open to any and all suggestions on what I can/should be doing. Thanks very much.