the Project 2 code, pictures,video and Execute file.
Email: hmz5180@psu.edu
(1) Interaction Due to the final submission, I have already achieve all the basic required functions to make an aircraft to move along the track and change the camer view by interacting with Keyboard Inputs. When It starts, the camera is bounded to the up-backward some certain point of the aircraft model. And it will follow the movement of aircraft. The aircraft will move along the track endlessly.
I have made my comments on these lines I added.
- Project2.cpp line 602-618: set two models. There are three camera models. one is the camera is bounded to the aircraft. the second model is that the camera stand still and stare at the aircraft. the third model is the camera is free to move. line 435 -450 set the camera orientation
Press 'R': tranfer between model one and model two. Press 'T': tranfer between model two and model three.
(3)Track I create a track by modify the files in the spine_part directory. And fill up the track.hpp. a column stand on the ground for each controlpoints. and draw a track.
track.hpp
- interpolate()
- get_point()
- estimated_point() : this function is given a distance s to compute the current u value by iterations that make the aircraft move more smoother. line 111 - 130
- get _Orientation(): a function to set the current and next Orientation.
- makeRailStandPart() : a function to create the standing columns on the ground. line 319-342 the rest functions are same as the intended version.
Project2.cpp line 387-426 compute the velocity of object and height.
(4)Others Load a aircraft mode instead of a cart.
