Over the weekend a have done quite a bit to the program. At my last meeting, I was told that the plane should be at an angle of some sort instead of flat and so this was something I needed to look at changing. Over the last week, I looked at rotating the plane and got it to rotate under user control. However, having looked at the code over the weekend, I realised that the rotation was not correct. What I have done so far is to simply draw the plane in OpenGL by drawing a quad. For this to happen, OpenGl needs 4 corner points. To calculate math equations needed for future work, the equation of the plane is also needed. This has been implemented well. Initially, I wanted the user to control the drawing of the plane completely by entering in 4 points in space and then the program would check if they were coplanar if not the last points would be altered to that they were coplanar. This was implemented but something i did not take into account was the fact that the point changed correctly and was coplanar but because the points signified the corner points the points need to set out a plane/quad. The plan was re thought again. The plane was therefore drawn flat on the xz plane and calculations were made to rotate the plane round the individual axes. The y axis was not taken into the calculations as all it would do would be to spin the plane. The rotations are not working correctly at the moment. They seem to be however, when I change the size of the angle it does not work the way I expected.
---------------------------------------------------
Below are some of the resources I have used recently:
No comments:
Post a Comment