We have been working very hard since 2009 to facilitate in your learning Read More. We can't keep up without your support. Donate Now.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Assignment No. 04
Semester: Fall 2012

CS602-Computer Graphics

 

Total Marks: 20

 

Due Date: 23/01/2013

 

Objective

 

To build concepts concerning Lighting and shading and OpenGl programming in Computer Graphics.

 

Uploading instructions:

 

Please follow the instructions provided by University for assignment submission.

 

  • Your assignment must be in .doc format.
  • Save your assignment with your ID (e.g. bc020200786.doc).
  • No assignment will be accepted through email.

 

Rules for Marking:

 

It should be clear that your assignment will not get any credit if:

 

  • The assignment is submitted after due date.
  • The submitted assignment does not open or file is corrupted.
  • Your assignment is copied from internet, handouts or from any other student

      (Strict disciplinary action will be taken in this case).

 

Assignment

 

 

Question No. 1                                                                                                                                           [5]

Suppose a light ray traveling through the air intersects the surface of diamond at an angle of 50o degrees, Find at which angle this light ray will be refracted from the diamond’s surface?

 

Take,

Refractive Index of Diamond, n diamond = 2.4

Refractive Index of Air,  n air  =  1

                                                                                      

Question No. 2                                                                                                                                           [15]

Write down the code for drawing a triangle using OpenGL and glut library function in C. Your program should keep track of following things.

  • Three sides of triangle should have different colors.
  • Your name and VUID should be displayed on window title i.e.  Name (bc123456789)
  • Window size should be (400,400)

 

Sample output of your program is as follows.

 

 

 

Note: Copy your code in MS Word (.doc) file along with question #1. You are required to send single MS Word file containing answer of both questions.

 

You can send email at cs602@vu.edu.pk for any assignment related problem.

 

Your work must be original. No marks will be given in case of cheating or copying from the internet, handouts or from any other student and strict action will be taken against that student.

 

Deadline:

Your assignment must be uploaded/submitted on or before January 23, 2013.

 


+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)


Views: 1426

Attachments:

Replies to This Discussion

1 to share kar do bro :(

em having tearx in ma eyex nw :'( i d0n't kn0w how to s0lve this assignment .... ix there anyone who can help me ????? :(

idea sol.

Attachments:

tnx 4 help......

Is this correct solution?

hey buddy is code main apna ID kahan likhna hay??? jahan  "id"  likha hay code line main , us main likh den ID?

aahi tay menu ni samj aa rai....Poch k btana zra mujay b

and buddy tell one thing more, question main likha hay to use *OpenGL*   bt code main just GL likha hua hay....mean ek hi hay? code theek run ho raha hay kia?

name(ID) ki jaga apna id likh dyn,,,,,,,,,,,,,,,,,but clear me name ki jaga apna name likyn gy  ya jst ID?

Ladies thory concpt clear kar len apny.. code me jahan Name id likha ha wahen chnge karna ha or openGL or glut graphics library ka nam ha jis ki header file #include<glut/gl.h> se likhty hen

..

RSS

Latest Activity

Profile IconFatima, Sheza mariam, Iftikhar Ali and 16 more joined Virtual University of Pakistan
24 minutes ago
Imtiaz Waqar added a discussion to the group STA630 Research Methods
39 minutes ago
Imtiaz Waqar joined +M.Tariq Malik's group
40 minutes ago
Muhammad Fawad Hassan joined +M.Tariq Malik's group
55 minutes ago
Maria commented on +M.Tariq Malik's group EDU101 Foundations of Education
1 hour ago
+ Faisal + replied to shifa arshad's discussion CS605 Assignment No 02 Fall 2020 Solution / Discussion Due Date: 10-dec-2020 in the group CS605 Software Engineering-II
1 hour ago
Maria joined +M.Tariq Malik's group
1 hour ago
Maria and SafeerZaidi are now friends
1 hour ago
SafeerZaidi liked Maria's profile
1 hour ago
Tasha Malik posted a status
"Bio 201 Assignment # 2 Solution https://youtu.be/Gowjc67WZ4c"
2 hours ago
Maria liked +M.Tariq Malik's profile
3 hours ago
Maria left a comment for +M.Tariq Malik
3 hours ago
Blessings posted a status
"Kya khbr k ab wo khan rehta hai...........................Khush rhe yar jhan rehta hai"
3 hours ago
SafeerZaidi liked +M.Tariq Malik's group PAK301 Pakistan Studies
3 hours ago
Virtual Educators Academy posted a discussion
4 hours ago
Virtual Educators Academy updated their profile
4 hours ago
☆ Tina Solangi ☆ updated their profile
5 hours ago
Humaira Khadim replied to +M.Tariq Malik's discussion PSY404 Abnormal Psychology Assignment 01 Fall 2020 Solution / Discussion in the group PSY404 Abnormal Psychology
5 hours ago
Humaira Khadim replied to +M.Tariq Malik's discussion PSY402 Experimental Psychology Assignment 01 Fall 2020 Solution / Discussion Due Date: 07-12-2020 in the group PSY402 Experimental Psychology
5 hours ago
Ali Fahad posted a discussion
5 hours ago

© 2020   Created by +M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.