Describe algebraically the steps taken by opengl

Assignment Help Computer Graphics
Reference no: EM132722829

Part -1:

The following are questions to answer:
1. Suppose a 2-dimensional clipping rectangle has its lower left corner at (30, 50) and its upper right corner at (220, 240). Hand simulate the Cohen-Sutherland algorithm on each of the following line segments:
i. (40, 140) - (100, 200)
ii. (10, 270) - (300, 0)
iii. (20, 10) - (20, 200)
iv. (0, 0) - (250, 250)

2. Consider the transformation necessary to scale a 2-dimensional object centred at (-1, 3) by 4
in the y-direction. The resulting object is still to be centred at (-1, 3).
i. List the sequence of steps necessary to accomplish this transformation.
ii. Write the individual transformation matrices needed to implement each of the steps in
(a) above. Hint: Use homogeneous coordinates.
iii. Compute the composite transformation matrix which will accomplish the entire transformation.

3. A camera's projection system is determined by its focal length, screen height, and screen aspect ratio (ratio of width to height). Given a camera with focal length f, screen height h, and aspect ratio a, give the screen position of 3D point x = (x, y, z), specified in the view coordinate frame of the camera. Assume a perspective projection.

4. Describe algebraically the steps taken by OpenGL to do a perspective projection of a single 3D vertex x into the canonical view volume, given a model view matrix M and a projection matrix P. You should do this in simple symbolic form. There should be no numbers or calculations.

5. Assuming that a call to function drawcube()will draw the vertices of a 1X1X1 cube centred at the origin, and a camera located at a position (0, 0, 100), is upright and aimed down the negative z axis. Using drawcube() as the only drawing primitive, give the sequence of OpenGL calls affecting the model view matrix needed to view a 3X4X1 box, oriented at 450 to the x axis and rotated -300 with respect to its y axis, after the 450 x rotation, and finally located with its centre at (5, 12, 3).

Part -2:

The following are questions to answer:
1. Using Adobe Photoshop design the graphics below:

2. Assuming that a certain full-colour (24-bit per pixel) RGB raster system has a 512-by-512 frame buffer, how many distinct colour choices (intensity levels) would be available? How many different colours could be displayed at any one time?

3. (a) What does it mean for a piecewise polynomial curve to be second order continuous?

(b) Verify that the uniform cubic B-spline, given below, is second order continuous.

4. Discuss how various visible-surface detection methods can be modified to process transparent objects. Are there any visible-surface detection methods that cannot handle transparent surfaces?

5. Using Adobe Photoshop, create the following images:

6. (a) Implement the basic radiosity algorithm for rendering the inside surfaces of a cube when one inside face of the cube is a light source.
(b) Write a program (using any common high-level programming language) to implement texture mapping for:
i. Spherical surfaces
ii. Polyhedrons.

Instructions for submission and grading
• Submit the assignment through VLE before the deadline (end of Week 4).
• Question 2, 3, 4 and 6 attract 15 marks each while, each of questions 1 and 5 attracts 20 marks.
• Please, save your designed graphics (in Question 1 and 5) in Encapsulated PostScript File (.eps) file format. Note: Any other format will not be accepted by the VLE

Attachment:- Assignment 2 CG.rar

Reference no: EM132722829

Questions Cloud

Implications of ethics within the context of research : Engage with your colleagues in a follow-up discussion on the implications of ethics within the context of research, suggesting ways in which risk might be minim
Readings on spirituality : Write a reflection paper regarding your thoughts, meaningful ideas, feelings, and/or reactions, and the application of these to nursing practice or your own
Power overstretch means exceeding the power limits : Power overstretch means exceeding the power limits. Jeff Janaro writes in his article, "Yale historian Paul Kennedy defines imperial overstretch
How do consumers benefit from the partnerships : Explain how do L'Oréal's channel partnerships benefit the company and Can these kinds of partnerships be financially profitable to all the companies
Describe algebraically the steps taken by opengl : Describe algebraically the steps taken by OpenGL to do a perspective projection of a single 3D vertex x into the canonical view volume, given a model view
Preparing an updated plan for the introduction : Preparing an updated plan for the introduction of fruit varieties according to international references in the introduction of varieties.
Reverse engineering as pernicious as maintained by sega inc : Do you personally find anything wrong with selling a product that the company has already abandoned - Is reverse engineering as pernicious as maintained
Do you personally find anything wrong : Do you personally find anything wrong with selling a product that the company has already abandoned?
Write a report to describe a strategic e-business : Write a report to describe a strategic e-business initiative based on the Zeta case study that is provided - The Zeta Case Study can be found in Canvas

Reviews

Write a Review

Computer Graphics Questions & Answers

  Create a simple warm-up program using your g3d

Create a simple warm-up program using your G3D programming and graphics environment.

  Shadow effect while rolling a sphere

Shadow effect while rolling a sphere as well as the options of shading and lighting.

  Relative positioning and interactive positioning

Relative Positioning and Interactive Positioning by Dragging and Clicking and some Simple Animation

  Draw a teapot at the global origin

Draw a teapot at the global origin

  Concepts of computer graphics

Concepts of Computer Graphics and develop a program using OpenGL

  The security policy document outline

Using the GDI Case Study below, complete the Security Policy Document Outline

  Develop the image manipulations

Develop the image manipulations

  What does resolution mean

What does resolution mean How is resolution connected to ppi and dpi units

  Differentiate between a bitmap image and a vector image

Differentiate between a bitmap image and a vector image Explain the following terms

  Essential elements of a design pattern

configuration of an Iterator pattern, patterns could be used in a Library System, Singleton, Template, Decorator, Façade,What does Alexander means by the following declaration "But it is impossible to form anything which has the temperament of natu..

  Framework of user interface design

design of user interfaces, natural mapping, GUI applications, web page design different to designing for printed media, risks exposed in this "phone as individual proxy" approach, interaction designers of ubicomp applications, Storyboards are usual..

  What are the factors affecting picture composition

Define picture composition What are the factors affecting picture composition. Elaborate on each factor Describe the basic lines present in a composition

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd