Navigation

    Cyberian
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Pro Blog
    • Users
    • Groups
    • Unsolved
    • Solved
    Quiz 100% Result
    • CS602 Assignment 2 Solution and Discussion

      Qanitah Nizam

      Re: CS602 Assignment 2 Solution and Discussion Spring 2020

      Assignment No. 02

      Semester: Fall 2020
      CS602: Computer Graphics
      Total Marks: 20

      Due Date: Dec 17, 2020

      Objective
      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 clip lines and rigid bodies by using graphics library functions.
       Learn the concepts of Sutherland and Hodgman’s polygon-clipping algorithm.
      Instructions:
      You have to do the following steps first in order to perform the task.

      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.
      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 doc file. You are also required to enter the screenshot of the output of your program.

      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 clipping algorithms, you are required to implement the Sutherland and Hodgman’s polygon-clipping algorithm in Dev C++. After executing the program, the program should ask the user to enter the number of vertices of polygon. After entering number of vertices, the program will ask the user to enter coordinates of vertices as shown in the image below:

      Now the user needs to just press a button, a polygon will be drawn with white color the second press of a button to clip the polygon as shown in the image below:

      CS602 - Computer Graphics
    • CS602 Assignment 1 Solution and Discussion

      zaasmi

      Re: CS602 Assignment 1 Solution and Discussion

      Assignment No. 01

      Semester: Fall 2020
      CS602: Computer Graphics
      Total Marks: 20

      Due Date: 4th Dec, 2020

      Objective
      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 fill the shapes and patterns by using flood fill algorithm.
      Instructions:
      You have to do the following steps first in order to perform the task.

      Install Dev-C++ from your LMS. Download from LMS and Read out the file “Add graphics in Dev cpp” thoroughly and follow the instructions in the file properly provided to you on your LMS.
      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 word file.
      For any query about the assignment, contact at [email protected]

      TASKS Marks=20

      Question 1) Write a program in Dev C++ to draw a circle. Also, use the flood fill algorithm to fill the circle with different lines of red color. The output of your program should like the below image:
      9162d193-0de3-46fc-a3c3-e1d6bf09d5c8-image.png

      Question 2) Write a program in Dev C++ to fill a rectangle shape using the flood fill algorithm, In which you are required to write a function as floodFill with four parameters as (x,y, pcolor, ncolor) the repeat it until the rectangle is completely filled,

      CS602 - Computer Graphics
    • CS602 Assignment 3 Solution and Discussion

      wafa sehar

      Re: CS602 Assignment 3 Solution and Discussion

      Total Marks = [20]

      Assignment No. 03
      Semester: Fall 2020
      Computer Graphics – CS602
      Total Marks: 20

      Due Date:
      February 08, 2020

      Objectives:
      Objective of this assignment is to assess the understanding of students about
      the concepts of Open GL programming in computer graphics.
      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 Statement Marks=15
      Question # 1:
      Write a program using Open GL Programming to create a window as shown in the below image. The title of window should be your Student Id and your Name. You can fill the window area with any color.
      cab41c1a-137a-4174-a0fd-a2759b9567a4-image.png

      Hint: Initialize the GLFW and GLEW libraries using the commands glfwInit() and glewInit() respectively.

      Question # 2:
      What are the Open GL Buffers and how can you create and allocate these buffers. Discuss with an example.

      Note: Only write the statement of creation and allocation. No need to write the complete program.
      BEST OF LUCK

      CS602 - Computer Graphics
    • CS602 Assignment 2 Solution and Discussion Spring 2020

      zaasmi

      Re: CS602 Assignment 2 Solution and Discussion

      Assignment No. 02
      Semester: Spring 2020
      CS602: Computer Graphics
      Total Marks: 20

      Due Date: 15 June 2020

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

      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.
      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’.
      402e6e51-edfa-4c80-8515-9b8ccf569f68-image.png

      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)
      ed0303f7-9635-4999-ac85-abcff2aa2442-image.png

      Now scale the original pentagon by sx=2 and sy=3 and display it on the screen.
      8ea569cc-012e-489e-8f17-4c4a95dd7272-image.png

      Translate the original picture somewhere on screen. Mark it as “Translated”.
      bebb5b19-c607-41a6-a750-fb1a8527c4ca-image.png

      Write a code in c++ to implement above functions. It will be a good programming practice that you implement it by creating pentagon class.

      CS602 - Computer Graphics
    • CS602 Assignment 1 Solution and Discussion

      zaasmi

      Re: Assignment No. 01 Semester: Spring 2019 CS602: Computer Graphics

      Assignment No. 01

      Semester: Spring 2020
      CS602: Computer Graphics
      Total Marks: 20

      Due Date: 1st June 2020

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

      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.
      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
      aae17c72-2d87-4a88-952b-795056e8db87-image.png 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.

      CS602 - Computer Graphics
    • CS602 GDB1 Solution and discussion

      zareen

      Re: CS602 GDB1 Solution and discussion

      Please share idea solution?

      CS602 - Computer Graphics
    • CS602 Assignment 3 Solution and Discussion

      zareen

      Total Marks = [20]
      Assignment No. 03
      Semester: Fall 2019
      Computer Graphics – CS602
      Total Marks: 20

      Due 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.
      37631e22-c687-4cb1-a388-cbf3d9053061-image.png
      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.
      031ffaa6-db7d-4237-9d66-b07a9474a42e-image.png

      BEST OF LUCK

      CS602 - Computer Graphics
    • RGB Color Examples

      zareen

      ab04a169-5348-4e1e-b9f1-31795af10223-image.pngbae25011-f835-404a-9d97-d1041bd8b916-image.png 442d8c2b-a1bb-45e5-9184-9ccf7cd5e2ca-image.png 49935b7b-0462-4e6a-ad46-fe33168964b7-image.png 48d663bc-0abd-48d5-9dbc-201ddb2ad471-image.png 4f780cbb-f471-4912-95da-fcdc24fd8000-image.png 41ab4abc-0dbd-4085-a361-6cc844b1e5c9-image.png 5a0c944b-6ee7-441b-904b-6b38d7691e90-image.png 52e8ac97-e074-4bc9-8914-924e06fe8cb8-image.png c8e95b5f-83f2-4720-b208-afaa8ba7525b-image.png e612ac6b-bc65-4e46-a509-4f95ed2caebd-image.png

      CS602 - Computer Graphics
    • CS602 Assignment 2 Solution and Discussion

      zareen

      Assignment No. 02
      Semester: Fall 2019
      CS602: Computer Graphics
      Total Marks: 20

      Due Date: 27th November 2019

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

      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.
      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’.
      109685f2-892c-4b64-bde0-934172d11396-image.png

      Now apply translation to the original house and move it to new location on the screen. Mark the translated picture as ‘Translated’.
      a7bd2850-75e2-4080-bf14-860a395c7cac-image.png

      Now scale the original house by sx=2 and sy=2 and display it somewhere on the screen.
      e723754f-a3ef-4b7f-85ba-8f744b6f8a8b-image.png

      Take reflection along x axis of the original house and display it somewhere on the screen. Mark it as ‘Reflection along x axis’.
      984f8434-11d7-47c8-b58a-4ac09b375760-image.png

      Write a code in c++ to implement above functions. It will be a good programming practice that you implement it by creating house class.

      CS602 - Computer Graphics
    • CS602 GDB1 Solution and discussion

      zaasmi

      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 Board

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

      CS602 - Computer Graphics
    • Assignment No. 01
 Semester: Spring 2019 CS602: Computer Graphics

      cyberian

      Spring 2019_CS602_1.doc
      Assignment No. 01
Semester: Spring 2019
      CS602: Computer Graphics

      Total Marks: 20

      Due Date:12/05/2019

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

      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.
      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 - Computer Graphics

    CS602 Assignment 3 Solution and Discussion

    CS602 - Computer Graphics
    assignment 3 cs602 discussion fall 2019 solution
    1
    2
    356
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • zareen
      zareen Cyberian's Gold last edited by

      Total Marks = [20]
      Assignment No. 03
      Semester: Fall 2019
      Computer Graphics – CS602
      Total Marks: 20

      Due 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:

      1. You should consult the recommended books, PowerPoint slides and audio lectures to clarify your concepts.
      2. 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.
      3. 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.
      37631e22-c687-4cb1-a388-cbf3d9053061-image.png
      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.
      031ffaa6-db7d-4237-9d66-b07a9474a42e-image.png

      BEST OF LUCK

      1 Reply Last reply Reply Quote 0
      • zareen
        zareen Cyberian's Gold last edited by

        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:
        6ae1ea20-d477-4d0f-a273-454a23c93b08-image.png

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        50% Off on Your FEE Join US!

        Quiz 100% Result If you want to know how you can join us and get 50% Discout on your FEE ask Cyberian in Chat Room! Quiz 100% Result Quiz 100% Result
        solution1241 discussion1193 fall 2019813 assignment 1425 assignment 2295 spring 2020265 gdb 1246 assignment 382 crw10174 spring 201955
        | |
        Copyright © 2021 Cyberian Inc. Pakistan | Contributors
        Live Chat