I had my Computer Graphics(CG) practicals yesterday. Had nice long holidays before that. So had prepared nicely for the practical exams. Few days before exams we asked our proffessor what kind of questions are expected in the exam. He said that whatever is covered in the practical journel (file) do that much. That will be more than enough.
So I was expecting some twisted question based on the file. I was ready for that. Based on the concepts of these programs and using some logic anyone could develop that. First batch got the programs from file as well as few were based on the topics which are covered in the journel. But my batch got programs from the topics that were not even covered in the file. That was so BAD. On top of it our internal examiner runs away from the lab giving external examiner the entire control.
I was asked to write a program to reflect an object on any arbitary axis y=mx+c. Objects should be taken in using a switch case. ie. Ask user if he wants a circle/square/rectangle.
Thank God once I had read the steps for reflection. and one of my classmate (PuNkS) who had similar question was sitting next to me. So we could manage something. It was like we had to translate the line (axis) to the origin. Then rotate it so that it coincides with the standard axis. I was trying with x-axis. Then reflect it. Then re-rotate and re-translate.
Finally after assuming a lot of things I managed to get some output. Circle was reflecting on the axis but was not in the correct position. Later square and rectangle were reflecting but they were scaling as well. At dot 4 she came and asked me to show whatever I had done. Thats it. That is how I managed to do it.
But now I feel Mr.Santosh Iyengar (our internal examiner and lecturer) should be hanged. If he wanted to give such programs atleast he should have given some idea that it is not only from the file but programs from the entire portion will be asked.
Well from this next time onwards I shall cover entire portion and go for practical exams.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment