gbiv
09-16-2008, 07:55 AM
Hello All,
I'm trying to implement rubber band zoom functionality in my application. I understand how to draw the rubber band and reposition my camera in the xy plane of the camera but how do I calculate the distance along the view vector to move the camera?
I thought I could use some simple trig with similar triangles(like finding the distance between the near and far plane given the view angle) but it didn't quite work for me.
Thanks for any input here
biv
I'm trying to implement rubber band zoom functionality in my application. I understand how to draw the rubber band and reposition my camera in the xy plane of the camera but how do I calculate the distance along the view vector to move the camera?
I thought I could use some simple trig with similar triangles(like finding the distance between the near and far plane given the view angle) but it didn't quite work for me.
Thanks for any input here
biv