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

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

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

Assignment No. 04 (Graded)
SEMESTER Spring2013
CS602- Computer Graphics

Instructions

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 fully 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.
  • The assignment is not submitted in .dev format.

 

Uploading instructions

Your Submission must include:

 

  1. .dev  project, .cpp file and exe file in a zip folder.

Objective

The objective of this assignment is

 

o   To make you understand the concept and application of Opengl library.

o   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 zero marks.
  3. Assignment last date is 07/02/2014. 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

GOOD LUCK

Answer the following question.

 

Question:

 

Write a program in C/C++ to draw a circle on the screen using Opengl library. See the Assignment4demo    along with the assignment file. You have to draw the circle on screen. The circle should bounce at equal intervals. At each bounce the size of the circle should be reduced.  Follow the instructions given below.

 

Instructions:

·         The background color should be red.

·         Circle should be hollow

·         The outline of the circle should be in white color

·         The outline of the circle should be thick

       

Important Note:  

You are required to fulfill all the requirements showed in the demo file “Assignment4demo”.

Lectures Covered: This assignment covers Lecture # 32-36

Deadline

Your assignment must be uploaded/submitted at or before 07/02/2014.

+ 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: 1663

.

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

Attachments:

Replies to This Discussion

Please Discuss here about this assignment.Thanks

Our main purpose here discussion not just Solution

We are here with you hands in hands to facilitate your learning and do not appreciate the idea of copying or replicating solutions.

Please share your idea here...

Sample OpenGL Program

Transformations in OpenGL rely on the matrix for all mathematical computations. No, not the movie. Concentrate grasshopper. OpenGL has what is known as a matrix stack, which comes in handy for constructing models composed of many simple objects.

The modelview matrix defines the coordinate system that is being used to place and orient objects. It is a 4x4 matrix that is multiplied by vertices and transformations to create a new matrix that reflects the result of any transformations that have been applied to the vertices. When we want to modify the modelview matrix we use the command glMatrixMode(). We define this as

void glMatrixMode(GLenum mode); 

Before you call any transformation commands you MUST specify whether you want to modify the modelview matrix or the projection matrix. The argument for modifying the modelview matrix is GL_MODELVIEW. So the complete line would appear as:

void glMatrixMode(GL_MODELVIEW); 

Now we will look at translation. Translation allows you to move an object from one location to another within a 3D environment. The functions for this in OpenGL are glTranslatef() and glTranslated(). Here are their descriptions:

void glTranslatef(GLfloat x, GLfloat y, GLfloat z); void glTranslated(GLdouble x, GLdouble y, GLdouble z); 

Note that you must pass float types to glTranslatef() and double types to glTranslated(). X, Y, and Z represent the amount of translation on that axis. 

Dear Students Don’t wait for solution post your problems here and discuss ... after discussion a perfect solution will come in a result. So, Start it now, replies here give your comments according to your knowledge and understandings....

Rotation in OpenGL is accomplished through the glRotate*() function, which is defined as

void  glRotatef(GLfloat angle, GLfloat x, GLfloat y, GLfloat z); void glRotated(GLdouble angle, GLdouble x, GLdouble y, GLdouble z); 

Now let's take a look at these, and a few others, functions mentioned in a program. The following code is taken from OpenGL Game Programming and is commented by myself. If you have any problems building and using this code, feel free to contact me.

/*      Steven Billington         January 13, 2003         May 26, 20

meri to kisi b programe main #include<GL/glut.h> directory hi ni show hoti koi is problem k bary main janta hai to plz help me is k liye koi aur cheez to ni add krni

B@ch ap kuch cheeziyan add ni kar rahi ho hon gay is leiy ni show ho rahi

be natural ap wo cheezain bta dain kon  kon si krni hain

Aslamo Alaikum

VU Fellows

Please update your idea solution for this assignment so that assignment should be completed before due date in the light of your precious idea.

Thanks for sharing your ideas

+Please koi help kary........ ya errors kis chiz k hain.......... glut Libraries add b kar di hain par phir b errores kkis chiz k hain??? 

glut libraries kasy add krni hain kisi ko pta hai

han kis kis se glut libraries add ni ho rahi muje bato main kar deta hon ye to koi itna mushkil kaam ni hai bacho way

RSS

Latest Activity

Mani Siddiqui BS VIII posted a status
"مزاج کی تلخ______ ، انا زادی_____ ضدی ہوں! المختصر_____، تمہارے تو بس کی نہیں ہوں میں"
32 minutes ago
Muhammad Tayyab Rashid replied to +M.Tariq Malik's discussion CS314 Introduction to Cellular Networks Assignment No 01 Spring 2020 Solution & Discussion Due Date: 29-05-2020 in the group CS314 Introduction to Cellular Networks
1 hour ago
Muhammad Tayyab Rashid joined +M.Tariq Malik's group
1 hour ago
Mani Siddiqui BS VIII posted a status
"لفظوں نے ضرور کہا تھا الوداع مگر میرے لہجے نے ہاتھ جوڑے تھے"
1 hour ago
Mani Siddiqui BS VIII replied to +! ! ! Mano ! ! !+'s discussion lanat aisy logo pr!
1 hour ago
Mani Siddiqui BS VIII replied to Kinza Mubasher's discussion Khoobsoort aur bakamaal aurt
1 hour ago
Mani Siddiqui BS VIII posted a status
"مجھ سے میری عمر کا خسارہ پوچھتے ہیں لوگ یعنی کے مجھ سے تمھارا پوچھتے ہیں لوگ"
1 hour ago
ZY and +!CS619!+ are now friends
2 hours ago
+ ! ! ! !Marshmallow replied to + ! ! ❥ρsүcнσ༄ ! ! +'s discussion !!!Sochiye ga zarur mery tamam bhai!!!
4 hours ago
Maham Raza. posted discussions
5 hours ago
Maham Raza. replied to Maham Raza.'s discussion Allah Yad Ata Hai..
6 hours ago
Maham Raza. liked zohaib iftikhar's discussion ..* TAKLEEF ...*
6 hours ago

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

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

.