Screen Facing Quads
i''m still having problems rotating my quads to always face the viewer. (billboarding). lemme get some things straight. you only need to rotate on 2 of the 3 axes to get it oriented properly, right?
well, this is what i was doing:
-get view vector
-use view vector coords to find x-axis angle and y-axis angle
-rotate quads with these euler angles, around appropriate axis.
is this right? is it the math i''m getting screwed up on? i''m using arctangent, and i''m also checking for 0 denominators and setting it appropriately.
the range for tangent seems to be only 90 degrees in both directions, so if it goes beyond that on one axis, i subtract 90 to get the new angle. is this right? i''m not sure if i''m doing the trig right. help! if you need more info, i can draw up my ideas and post em.
a2k
------------------General Equation, this is Private Function reporting for duty, sir!a2k
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement