NeHe base code problems
i have been working with NeHe''s opengl base code for a while now. im trying to figure out how to manipulate a camera for a first person shooter demo. on my machine i can only get about 3-5 frames per second. does anybody know why? im running it in Visual C++ on an 800mhz Athlon w/ 1GB RAM and a geforce2 64mb.
in my code i have six position variables: camera x, y, & z, and target x, y, & z. the target positions are found by the following lines:
Mag= cos(XA*piover180);
XR = Mag * cos(YA*piover180);
YR = Mag * tan(XA*piover180);
ZR = Mag * sin(YA*piover180);
gluLookAt(Xpos, Ypos, Zpos,
XR, YR, ZR,
Xpos, Ypos+1, Zpos);
XR, YR, & ZR are the target coordinates. anybody have a clue? help would be very much appreciated!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement