Assignment GDB Solution: CS602 Computer Graphics


CS602 Computer Graphics Assignment 4 Solution Spring 2014

Q1. Write a program in C/C++ to draw a house on the screen using Opengl library. Follow the instructions given below.                                                                                                                                          10 Marks 1.       Declare a BuildHouse(void) function. 2.       In this function call 5 independent glBegin(GL_POLYGON) functions of glut utility to draw each object like: to start house, to start 1st window, to start 2nd window, to start ceiling and to start door. 3.       Use glColor3f( ,  , ); function to set color of […]

CS602 Computer Graphics Assignment 4 Solution Fall 2013

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 […]

CS602 Computer Graphics Assignment 1 Solution Fall 2013

 Questions: Answer the   following questions. Each question carry equal marks:    Draw a timeline to show advancement   in field of computer graphics?  5   A raster system is using 10 X 12   inches screen and 100 pixels per inch. Calculate aspect ratio for this   system. 5 Write   an assembly program to […]

CS602 Computer Graphics GDB Solution Spring 2013

Suppose you are a newly appointed graphics designer and consultant at “FARO gaming Technologies” a leading company for the game development. It’s a charm for you to work here. You are assigned your first project (which is a base for your job security). While working on this project, a situation arises in which you have to find which among […]

CS602 Computer Graphics Assignment 1 Solution Spring 2013

Question 1                                                                                                                                                        //4 marks Suppose you want to see a 3D cartoon movie of 10 second length in RGB mode having a resolution of 1024 x786 at 60 Hz. If clip is organized in a way that after every refresh cycle a new frame is to be loaded then how much data has to be moved by […]

CS602 Computer Graphics Final paper 23 February 2013

Total Questions: 52 Total Marks: 80 Total MCQs: 40 (Each of 1 Mark) Total Short Questions: 4 (Each of 2 Mark) Total Short Questions: 4 (Each of 3 Mark) Total Long Questions: 4 (Each of 5 Mark)   5 marks: Can we use SCAN system in Televisions? explain. Also list down the name of systems. How […]

CS602 Computer Graphics Assignment 4 Fall 2012

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 Solution: […]

CS602 Computer Graphics Assignment 2 Solution Fall 2012

Question 1:                                                                                                        [20 Marks]                                                                                                               Write a C program that would draw the following shapes; rectangle, ellipse, circle and point in the following way as described below. Rectangle:  Draw the rectangle as described in the figure below and the ellipse, circle and point should be drawn within the rectangle body. Hint: Use the rectangle(x,y,a,b) function to draw the rectangle.   Ellipse:       Ellipse should […]