We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search


+ Link For Assignments, GDBs & Online Quizzes Solution


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

Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

CS602- Computer Graphics Assignment No.05 SEMESTER Spring 2013 Total Marks:20 Due Date: 03/07/201 3

Assignment No. 05
SEMESTER Spring2013
CS602- Computer Graphics


Total Marks: 20


Due Date: 03/07/2013


Please read the following instructions carefully before solving & submitting assignment:

It should be clear that your assignment will not get any credit (zero marks) if:

  • The assignment is submitted after due date.
  • The submitted assignment does not open or file corrupt.
  • The assignment is full or partially copied (from other student or ditto copy from handouts or internet).
  • Student ID is not mentioned in the assignment File or name of file is other than student ID.


Uploading instructions

Your Submission must include:


  1. Dev cpp project file with .dev extension.
  2. Code file with .cpp extension.


The objective of this assignment is


  • To make you understand the concept and application of opengl library.
  • To give you practical exercise of an opengl library.


Important Requirements and Instructions:

  1. You are not allowed to copy it from internet. In that case no marks shall be awarded.
  2. Same assignment of two or more students shall be considered cheating case and they will get straight zero marks.
  3. Assignment last date is 03/07/2013.Any lame excuses will not be accepted. 
  4. We will not accept assignment through email in any case. Be careful.




For any query about the assignment, contact at cs602@vu.edu.pk







Question :                                                                                                                 //20marks


Write a program in C/C++ to draw the cube on the screen using Opengl library. See the “Assignment5Demo.wmv” along with the assignment file. You have to draw the cube on screen. By pressing left arrow key on the keyboard the cube should rotate anti clockwise while on pressing right key the cube should rotate clockwise.  Follow the instructions given below.



  • Front part of the cube should be red in color.
  • Right part of the cube should be pink in color.
  • Left part of the cube should be green in color.
  • Back side of the cube should be Blue in color.


Note:   You are required to fulfill all the requirements given in the demo file “Assignment5Demo.mp4”. Also note the changing color scheme of cube at each step.


Note: You are not required to draw buttons and other text boxes on the screen these are only for your understanding.

Lectures Covered: This assignment covers Lecture # 26-33


Your assignment must be uploaded/submitted at or before 03/07/2013.      

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?

See Your Saved Posts Timeline

Views: 1982


+ 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)

Replies to This Discussion

why is it great dismay in this group? no activity like that in the previous assignments. i think seniors are busy and are not attending the group properly.

Bro Button zarorie nhi hain u can see in ASg


ham ko assignments mai button nai banany hai....... 

ham ko bs waise functionality dene hai buttons ka kuch nai krna.... assignment mai likha b hai.

Solution is attached Only change the Color of Cube sides.


ye open nh ho rhi???kse ho gi?

mehreen plz tell me ye open kse huni ha???ye thk se nh ho rhi ha?

mehreen ur solution is giving errors ,plz correct it and send again,thx

Thanks a lot miss. it was a great help. where did you find that piece of code?

Follow this and add glut libraries in Dev C++


mehreen ur solution is giving errors ,plz correct it and send again,thx

Solution theek hai. apko Program run nai karna ata DevC++ main?


sorry to say but ye required solution nahi hey :P


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

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