Ask Question, Ask an Expert

+1-415-315-9853

info@mywordsolution.com

Ask Computer Graphics Expert

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

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

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

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

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.

Ask Now Help with Problems, Get a Best Answer

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

Describe what you learned about the impact of economic

Describe what you learned about the impact of economic, social, and demographic trends affecting the US labor environmen