View Full Version : calculating normals from camera views
12-02-2003, 01:53 PM
hello, i am making a space flight simulation and am having trouble figuring out how to calculate the normal vector for my current camera view. i also need help animating my view so that it is always moving forward, and just changes directions by pitch and yaw relative to the current view. any suggestions?
12-03-2003, 10:22 AM
i don't really get what you mean by "the normal vector for my current camera view" you want a vector that givess you the direction in which you're moving ?
for the rest, well, it depends on the way you manage your camera system....
basicly, if you use gluLookAt() you just have to add your direction vector to the first set of 3 coord (camera position) and to the second set of coords (camera view)
if you add them at every frame, the camera will move forward
hope i helped
Powered by vBulletin® Version 4.2.2 Copyright © 2015 vBulletin Solutions, Inc. All rights reserved.