+1-415-315-9853

info@mywordsolution.com

## Computer Science

 Algorithms Design Computer Network & Security Automata & Computation Operating System Computer Architecture Information Technology Internet Programming Software Engineering Data Communication Computer Graphics Compiler Design LINUX/UNIX Data Structure WINDOWS Application Digital Circuit E-Commerce Microprocessor Artificial Intelligence Data Warehouse Cryptography

You are writing a code for a new graphics card which is software programmable, instead of having the algorithms embedded in the hardware. You wish to prepare a fast triangle-drawing program to test the card.

problem 1: Give pseudo code, or similar, which draws a triangle with a constant color. Suppose that the inputs are the color of the triangle and three two-dimensional points, representing the three vertices of triangle. Further, suppose that all the three vertices lie on the visible screen and that no anti-aliasing is needed. You might suppose that there is a function to set a pixel, (x; y), to a particular color, c, ex: setpixel(x, y, c), however you must give pseudo code for any other functions which you require. Your answer must be adequately detailed that it could be transferred directly into a language like Java however your answer does not, itself, have to be syntactically right.

problem 2: Outline the additional steps needed to draw a triangle specified by three-dimensional points in world space, where the triangle might extend beyond the edges of the screen after the conversion to screen space.

problem 3: Outline the steps needed to compute the triangle's color, supposing diffuse shading, with multiple point lights, however still producing a single color for the entire triangle.

Computer Graphics, Computer Science

• Category:- Computer Graphics
• Reference No.:- M98934

Have any Question?

## Related Questions in Computer Graphics

### Explain cohen sutherland line clipping Explain cohen sutherland line clipping algorithm

Explain cohen sutherland line clipping algorithm

### Question 1 a consider two different raster systems with

Question 1. a) Consider two different raster systems with resolutions 10640x480 and 1280x1024. What size of frame buffer (in bytes) is needed for each of these systems to store 12 bits per pixel? b) State the reason why ...

### Assignmentyou have been engaged to develop a graphical

Assignment You have been engaged to develop a graphical calculator in Microsoft visual studios 2010. Specific requirements are as follows: Create a graphical calculator with buttons that can add, subtract, multiply, divi ...

• 13,132 Experts

## Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

### WalMart Identification of theory and critical discussion

Drawing on the prescribed text and/or relevant academic literature, produce a paper which discusses the nature of group

### Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

### Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

### Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

### Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro