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

ans for question 1= 18.6

is it correct?

formula e bta den plz

18.614 is correct sny2ksa
second question kaha tak solve kia ap nai? sny2ksa bahi/bahin....... :)

Is semester main to rog k ilawa or kuch b nahi mila...

first question and second question kasy slove karna hain. book ka kon sa page number per hain.
first question ka answer kasy 18.6 aya hain. pettren bata dana

koi tu upload kar do sol 

plaz plaz plaz plaz

Aj extended day hain

please please koi assignment solution share kary plzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz

for first question solution.

see page 292..hand outs

topic, refraction

follow given example.

second question idea solution .

follow given link..there r given 4 vertices..u make it with 3.

http://en.wikibooks.org/wiki/OpenGL_Programming/GLStart/Tut3

please sny2ksa ap help kar dain na pleeeeeeeeeeeeeeeeees

bro second question ka koie solution up load karo 1 ho geya hy

RSS

Latest Activity

Mifa Fadel liked +M.Tariq Malik's group SOC101 Introduction to Sociology
21 minutes ago
ᴍᴜʙᴀꜱʜɪʀ ♥ updated their profile
25 minutes ago
+++!!zυηι кнαη(αм ¢у¢σ) updated their profile
2 hours ago
Profile Iconjiya chaudhry, Azeem, Falakshair and 11 more joined Virtual University of Pakistan
2 hours ago
Mifa Fadel liked +M.Tariq Malik's discussion SOC101 Introduction to Sociology Assignment 01 Fall 2020 Solution / Discussion
6 hours ago
shifa arshad added a discussion to the group CS605 Software Engineering-II
8 hours ago
shifa arshad joined +M.Tariq Malik's group
8 hours ago
Profile Iconиαвєєℓ αнмє∂ and Ali Fahad joined +M.Tariq Malik's group
10 hours ago
shifa arshad replied to +M.Tariq Malik's discussion MGT502 Organizational Behavior GDB No 01 Fall 2020 Solution / Discussion in the group MGT502 Organizational Behavior
11 hours ago
shifa arshad joined +M.Tariq Malik's group
11 hours ago
+ !! SARAH replied to Hafiza Tehreem Fatima's discussion BIRTHDAY CELEBRATION OUR BELOVED <MEMBER SARAH ABDUL
12 hours ago
+ ᴄᴏғғᴇᴇ updated their profile
12 hours ago
Rizwan Mushtaq joined +M.Tariq Malik's group
12 hours ago
Arooj Shahid liked 乇メ-丂イひり3刀イ.'s discussion *** My Drawing ***
13 hours ago
Arooj Shahid liked 乇メ-丂イひり3刀イ.'s discussion *** الوداع اردو ***
13 hours ago
Arooj Shahid liked Miss. Churhail's discussion LOVE YOUR LIFE!!!!!
13 hours ago
Arooj Shahid liked Hafiza Tehreem Fatima's discussion BIRTHDAY CELEBRATION OUR BELOVED <MEMBER SARAH ABDUL
13 hours ago
Arooj Shahid liked Omar's discussion Dua
13 hours ago
+!!! ❤️ Shadow Girl❤️!!! liked 乇メ-丂イひり3刀イ.'s discussion *** الوداع اردو ***
13 hours ago
+!!! ❤️ Shadow Girl❤️!!! liked Hafiza Tehreem Fatima's discussion BIRTHDAY CELEBRATION OUR BELOVED <MEMBER SARAH ABDUL
13 hours ago

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

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

.