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

Submit your solution document in the form of a single zip

Submit your solution document in the form of a single ZIP file on or before the cut-off date shown above. Please follow the instructions on the filename convention, it is important! You must implement your assignment in ...

Learning outcomesat the end of this project the students

LEARNING OUTCOMES: At the end of this project, the students should be able to: 1) Demonstrate a working knowledge of basic 2D computer arts creation and modification tools, techniques and strategies (for part I). Demonst ...

Write the given assignmentcomputer graphics assignmenta

Write the given assignment: COMPUTER GRAPHICS ASSIGNMENT. a) Using a well labeled sketch explain the construction and principle of operation of a • LCD • PLASMA • CRT display b) Briefly explain the following three raster ...

  • 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

A cola-dispensing machine is set to dispense 9 ounces of

A cola-dispensing machine is set to dispense 9 ounces of cola per cup, with a standard deviation of 1.0 ounce. The manuf

What is marketingbullwhat is marketing think back to your

What is Marketing? • "What is marketing"? Think back to your impressions before you started this class versus how you

Question -your client david smith runs a small it

QUESTION - Your client, David Smith runs a small IT consulting business specialising in computer software and techno

Inspection of a random sample of 22 aircraft showed that 15

Inspection of a random sample of 22 aircraft showed that 15 needed repairs to fix a wiring problem that might compromise

Effective hrmquestionhow can an effective hrm system help

Effective HRM Question How can an effective HRM system help facilitate the achievement of an organization's strate