-
Re: CS602 Assignment 2 Solution and Discussion
Assignment No. 02
Semester: Spring 2020
CS602: Computer Graphics
Total Marks: 20Due Date: 15 June 2020
Objective
Install Dev-C++ from your LMS. Read out the file “Add graphics in Dev cpp” thoroughly and follow the instructions in the file properly provided to you on your LMS.
The objective of this assignment is to;
Learn and practice basic concepts of computer graphics like pixels, lines, text etc using Dev-C++. (You can download Dev-C++ setup from LMS)
Learn to draw rigid bodies by using graphics library functions.
Learn the concepts of filled area primitives.
Learn the basic transformations with fundamental matrix operations.
Instructions:
You have to do the following steps first in order to perform the task.
Please read the following instructions carefully before submitting assignment: You should consult the recommended books, PowerPoint slides , Handouts and video lectures to clarify your concepts. You can take any help from your provided labs. It should be clear that your assignment will not get any credit if:
• The assignment is submitted after due date.
• The assignment is copied from Internet or from any other student.
• The submitted assignment does not open or file is corrupt.
Submission
You are required to submit your solution through LMS in zip format containing following files.
Your Project in zipped form containing both .cpp and .exe file.The word document (.doc/docx) or any other file format containing code will not be considered.
If the code files are missing in zip folder, your assignment will be awarded as zero.Note: No assignment will be accepted after the due date through email in any case (load shedding, server down, internet malfunctioning etc.).
It is recommended to upload solution file at least two days before its closing date.
For any query about the assignment, contact at [email protected]TASK Marks=20
This task is based on the concepts of basic transformations like translation, scaling and shearing (along x direction) of a rigid body. For this purpose, you must implement the following:You must make the pentagon having five corners as shown in figure. Mark this picture as ‘Original’.
Now apply shearing along x direction with shx=4 to the original pentagon. Mark the picture as ‘Sheared along x-axis’. (Your results of shearing could be different than the picture shown as per pixels taken)
Now scale the original pentagon by sx=2 and sy=3 and display it on the screen.
Translate the original picture somewhere on screen. Mark it as “Translated”.
Write a code in c++ to implement above functions. It will be a good programming practice that you implement it by creating pentagon class.
-
Re: Assignment No. 01 Semester: Spring 2019 CS602: Computer Graphics
Assignment No. 01Semester: Spring 2020
CS602: Computer Graphics
Total Marks: 20Due Date: 1st June 2020
Objective
Install Dev-C++ from your LMS. Read out the file “Add graphics in Dev cpp” thoroughly and follow the instructions in the file properly provided to you on your LMS.
The objective of this assignment is to;
Learn and practice basic concepts of computer graphics like pixels, lines, circles and rectangles, texts etc using Dev-C++. (You can download Dev-C++ setup from LMS)
Learn to draw shapes and patterns by using graphics library functions.
Instructions:
You have to do the following steps first in order to perform the task.
Please read the following instructions carefully before submitting assignment: You should consult the recommended books, PowerPoint slides , Handouts and video lectures to clarify your concepts. You can take any help from your provided labs. It should be clear that your assignment will not get any credit if:
• The assignment is submitted after due date.
• The assignment is copied from Internet or from any other student.
• The submitted assignment does not open or file is corrupt.
Submission
You are required to submit your solution through LMS in zip format containing following files.
Your Project in zipped form containing both .cpp and .exe file.The word document (.doc/docx) or any other file format containing code will not be considered.
If the code files are missing in zip folder, your assignment will be awarded as zero.
Note: No assignment will be accepted after the due date through email in any case (load shedding, server down, internet malfunctioning etc.).
It is recommended to upload solution file at least two days before its closing date.For any query about the assignment, contact at [email protected]
TASK
Marks=20
ABC is a well-known graphic designing industry famous for greeting card designs, logos and visiting card designs. The company needs your services to write a code for following design for its client:Write a code in C++ for generating the above design. Your actual Student-ID should be displayed at the top left corner of the screen.
-
Re: CS602 GDB1 Solution and discussion
Please share idea solution?
-
Total Marks = [20]
Assignment No. 03
Semester: Fall 2019
Computer Graphics – CS602
Total Marks: 20Due Date: 22/01/2020
Objectives:
Objective of this assignment is to assess the understanding of students about
the concepts of lighting, mathematics of lighting and shading, color intensities, color mixing techniques, color saturations, techniques to deal saturation and light phenomena when it passes through objects.Instructions:
You should consult the recommended books, PowerPoint slides and audio lectures to clarify your concepts. You are supposed to submit your assignment in .doc format. Any other formats like scan images, PDF, ZIP, RAR and BMP etc, will not be accepted. It should be clear that your assignment will not get any credit if:
Please read the following instructions carefully before submitting assignment:
• The assignment is submitted after the due date.
• The assignment is copied from the Internet or any other student.
• The submitted assignment does not open or file is corrupt.Note: No assignment will be accepted after the due date through email in any case (load shedding, server down, internet malfunctioning etc.).
It is recommended to upload solution file at least two days before its closing date.For any query about the assignment, contact at [email protected]
Question No:1 Marks=15
Suppose a Movie maker wants to create a night vision effect in a scene. The scene has light grey colored chair having RGB components (0.5,0.7,0.8). He has used four light sources. In terms of RGB the intensities of light sources are l1(0.4,0.7,0), l2(0.2,0.1,0.5), l3(-0.5,-0.6,0.5) and l4(-0.1,-0.2,0 ) ; Light source 3 and light source 4 are dark lights having negative colors.a) What will be the final light intensity? (5 marks)
b) Calculate the overall color contribution of light in relation to the object surface? (5 marks)
c) What color component(s) will remain absent from the scene? (3 marks)
d) Which color the object will look like in presence of the light sources? (2 marks)
Hint: (You may check final color intensities given in color.pdf file)Question No 2: Marks=05
Fiber Optics are widely used as optic cables to transmit light signals over long distances with minimal loss of data. It works on the principle of total internal reflection.
In order to simulate the fiber optic in computer graphics, calculate the critical angle where the inner core of fiber has index of refraction 1.5 while the cladding has index of 1.3.
BEST OF LUCK
-
Assignment No. 02
Semester: Fall 2019
CS602: Computer Graphics
Total Marks: 20Due Date: 27th November 2019
Objective
Install Dev-C++ from your LMS. Read out the file “Add graphics in Dev cpp” thoroughly and follow the instructions in the file properly provided to you on your LMS.
The objective of this assignment is to;
Learn and practice basic concepts of computer graphics like pixels, lines, text etc using Dev-C++. (You can download Dev-C++ setup from LMS)
Learn to draw lines and rigid bodies by using graphics library functions.
Learn the concepts of filled area primitives.
Learn the basic transformations with fundamental matrix operations.
Instructions:
You have to do the following steps first in order to perform the task.
Please read the following instructions carefully before submitting assignment: You should consult the recommended books, PowerPoint slides , Handouts and video lectures to clarify your concepts. You can take any help from your provided labs. It should be clear that your assignment will not get any credit if:
• The assignment is submitted after due date.
• The assignment is copied from Internet or from any other student.
• The submitted assignment does not open or file is corrupt.
Submission
You are required to submit your solution through LMS in zip format containing following files.
Your Project in zipped form containing both .cpp and .exe file.The word document (.doc/docx) or any other file format containing code will not be considered.
If the code files are missing in zip folder, your assignment will be awarded as zero.Note: No assignment will be accepted after the due date through email in any case (load shedding, server down, internet malfunctioning etc.).
It is recommended to upload solution file at least two days before its closing date.
For any query about the assignment, contact at [email protected]TASK Marks=20
This task is based on the concepts of basic transformations like translation, scaling and reflection (along axis) of a rigid body. For this purpose you have to implement the following:You have to make the house with basic shapes as shown in figure. At the top right corner, your VU-ID must be displayed. Mark this picture as ‘Original’.
Now apply translation to the original house and move it to new location on the screen. Mark the translated picture as ‘Translated’.
Now scale the original house by sx=2 and sy=2 and display it somewhere on the screen.
Take reflection along x axis of the original house and display it somewhere on the screen. Mark it as ‘Reflection along x axis’.
Write a code in c++ to implement above functions. It will be a good programming practice that you implement it by creating house class.
-
Total Marks 5
Starting Date Thursday, August 01, 2019
Closing Date Friday, August 02, 2019
Status Open
Question Title GDB-CS602
Question Description
Graded Discussion BoardAnti-aliasing is a technique that eliminates the staircase effect (visual defect) on the edges of objects in images at lower resolution. At moderate resolution, aliasing becomes negligible and can be ignored but the drawback becomes bold when the picture is moving. FXAA (Fast Approximate Anti-Aliasing) and SSAA (Super Sampling Anti-Aliasing) are two famous anti-aliasing algorithms suitable for games.
Discuss which algorithm will be best suitable for the new release of PC video game by ABC software house. Consider more users will generate more revenue and every user has not powerful system.
Read the following instructions carefully before sending your comments:
Your discussion must be based on logical facts and in depth knowledge of topic is must for that.
Your comments should be relevant to the topic i.e. clear and concise. (Maximum 4-5 lines answer).
You should post your comments on Graded Discussion Board & not on the Regular MDB. Both will run parallel to each other during the time specified above.
Books, websites and other reading material may be consulted before posting your comments.
GDB will have weight-age of 5% of your total subject marks.
No extra time will be given for discussion.
You cannot participate in the discussion after the due date or through e-mail. -
Spring 2019_CS602_1.doc
Assignment No. 01 Semester: Spring 2019
CS602: Computer GraphicsTotal Marks: 20
Due Date:12/05/2019
Objective
Install Dev-C++ from your LMS. Read out the file “Add graphics in Dev cpp” thoroughly and follow the instructions in the file properly provided to you on your LMS.
The objective of this assignment is to;
Learn and practice basic concepts of computer graphics like pixels, lines, text etc using Dev-C++. (You can download Dev-C++ setup from LMS)
Learn to draw lines by using graphics library functions.
Instructions:
You have to do the following steps first in order to perform the task.
Please read the following instructions carefully before submitting assignment: You should consult the recommended books, PowerPoint slides, Handouts and video lectures to clarify your concepts. You can take any help from your provided labs. It should be clear that your assignment will not get any credit if:
• The assignment is submitted after due date.
• The assignment is copied from Internet or from any other student.
• The submitted assignment does not open or file is corrupt.
Submission
You are required to submit your solution through LMS in zip format containing following files.
Your Project in zipped form containing both .dev and .cpp file.
An MS Word document containing screenshot of your program output/execution and your own Student-ID must be visible in the screenshot.Note: No assignment will be accepted after the due date through email in any case (load shedding, server down, internet malfunctioning etc.).
It is recommended to upload solution file at least two days before its closing date.For any query about the assignment, contact at [email protected]
TASK Marks=20
A graphic designing company ABC needs your services to write a code for a particular design consisting of lines only. The design will be used for greeting cards printing, mug art printing and t-shirts printing in future. Following design is selected for this purpose:As you can see there is a rectangle in the centre of the screen. Inside the rectangle there are three horizontal lines above and below the rectangle at equal space.
Inside these three lined set there are two patterns. First pattern is the horizontal lines equidistance from each other followed by vertical lines. Second pattern is equidistance vertical lines followed by horizontal lines. The total number of lines in both patterns are equal.
(Hint: You can use loop for each pattern)Now you have to write a code for generating the above design. Your actual Student-ID should be displayed at the top left corner of the screen.
CS602 Assignment 3 Solution and Discussion
-
Total Marks = [20]
Assignment No. 03
Semester: Fall 2019
Computer Graphics – CS602
Total Marks: 20Due Date: 22/01/2020
Objectives:
Objective of this assignment is to assess the understanding of students about
the concepts of lighting, mathematics of lighting and shading, color intensities, color mixing techniques, color saturations, techniques to deal saturation and light phenomena when it passes through objects.Instructions:
Please read the following instructions carefully before submitting assignment:- You should consult the recommended books, PowerPoint slides and audio lectures to clarify your concepts.
- You are supposed to submit your assignment in .doc format. Any other formats like scan images, PDF, ZIP, RAR and BMP etc, will not be accepted.
- It should be clear that your assignment will not get any credit if:
• The assignment is submitted after the due date.
• The assignment is copied from the Internet or any other student.
• The submitted assignment does not open or file is corrupt.
Note: No assignment will be accepted after the due date through email in any case (load shedding, server down, internet malfunctioning etc.).
It is recommended to upload solution file at least two days before its closing date.For any query about the assignment, contact at [email protected]
Question No:1 Marks=15
Suppose a Movie maker wants to create a night vision effect in a scene. The scene has light grey colored chair having RGB components (0.5,0.7,0.8). He has used four light sources. In terms of RGB the intensities of light sources are l1(0.4,0.7,0), l2(0.2,0.1,0.5), l3(-0.5,-0.6,0.5) and l4(-0.1,-0.2,0 ) ; Light source 3 and light source 4 are dark lights having negative colors.a) What will be the final light intensity? (5 marks)
b) Calculate the overall color contribution of light in relation to the object surface? (5 marks)
c) What color component(s) will remain absent from the scene? (3 marks)
d) Which color the object will look like in presence of the light sources? (2 marks)
Hint: (You may check final color intensities given in color.pdf file)Question No 2: Marks=05
Fiber Optics are widely used as optic cables to transmit light signals over long distances with minimal loss of data. It works on the principle of total internal reflection.
In order to simulate the fiber optic in computer graphics, calculate the critical angle where the inner core of fiber has index of refraction 1.5 while the cladding has index of 1.3.
BEST OF LUCK
-
Q. 1 Solution Idea
a. Final intensity of light is (0.4,0.7,0) +(0.2,0.1,0.5) +(-0.5, -0.6,0.5) +(-0.1, -
0.2,0) = (0,0,1)b. Overall Contribution: id ⨂ cs = (0,0,1) ⨂ (0.5,0.7,0.8)
= (0,0,0.8)c. Red and Green components will remain absent from the scene
d. The object will look blue in the presence of light sources.
Q. 2 Solution Idea: