Over the break I did a few things to the project. I revamped the texture for the lasers a little to make them look a little better, I set up a way to draw the crosshairs accurately in third person view, and I finished the functionality of the radar!
The radar was a huge thorn in my side and a problem almost everyone on the team had tried to figure out with no success. In the end, I found out from my graphics class textbook that there was one more transformation matrix that none of us had known about - the viewport transformation matrix. It translates the final coordinates (after they go through world, view, and projection transformation matrices) to screen coordinates. This solved our problem of trying to project a 3d point on to a 2d plane.
I also used the same idea for the crosshairs and told Wilson about it so he can use it on the targeting reticule.
No comments:
Post a Comment