Okay, here's the problem: I have an arbitrary 3D vector based on a position and target which is my front/view vector.
I need a second vector (up vector) perpendicular to the view vector which direction is based on an orientation value -pi to pi. For orientation = 0 it shall be coplanar with the view vector pointing upwards, i.e. the orientation value depicts a rotation around of the up vector around the view vector. Any ideas how to calculate this?


Follow me on twitter