Compute bresenhamsline drawing algorithm

Assignment Help Computer Graphics
Reference no: EM131372999 , Length:

Assignment

For all parts you should use screenshots and provide a text description of your testing and tell me what you think works. If I cannot run things at home you may need to show me your program running in my office on a laptop or provide a video.

Part 1: Largely based on lab1. Create a program (WebGL, OpenGL, or DirectX) that creates a series of random 2D or 3D objects about 5-10 is probably good but you may need more or less to see what you're doing, they should wrap around the edges of the screen (both top and bottom and sides).

Objects should randomly translate, scale, rotate, and shear (though not all at once generally) and preserve this state as they move around. Don't pick values that are so crazy you can't see any of this happening on screen. Randomly colour them as well. Shear doesn't really do anything visible to certain shapes (basically anything sphereish).

Note: Don't try and handle collisions between objects. The hard part is making them wrap.

Part 2: Write a program to properly compute Bresenham'sline drawing algorithm for a 3D line projected onto any of the 4 possible parts of a grid. Format for this question. Assume the input line starts at the origin, and that the grid is no more than from the range (-10: +10) in both X and Y. The user should be able to input a 3D coordinate of form x, y, z, and the program should output which cells will be solid as a list of the form.

(x1,y1)
(x2,y2)

Etc.

This is a math question where you're writing a program to solve it. You can use any programming language you want.

Part 3. Write a program in any language of your choosing that will convert coordinates from Cartesian to barycentric, or barycentric to Cartesian. Assume that you are given A, B, C and P, in one case, or that A, is 0,10, B (0,0) and C (10,0) in the other.

Part 4: This will be based on lab 2. Write a program that creates a fairly large square (say the size of the screen or when in doubt 1920x 1080). Map a 2D image onto that square in 4 different ways. First, centred (leaving a border). Second tiled (basically repeat the mapped image on a grid until it fills up), and lastly stretched or shrunk (e.g. take a 100x100 image and blow it up to full size, or take a really big image and shrink it down). I fully expect that the stretched/shrunk image might look like crap. I don't really care what image you use. I will test it with my own images (and no I won't tell you the dimensions).

Attachment:- assignment.zip

Verified Expert

The solution has 4 programs are draw rotation of object, convert coordinates to barycentric coordinates, scaling image and Bresenham line drawing. All programs output screen shots are attached in solution file.

Reference no: EM131372999

Questions Cloud

Economists measure degree of financial market integration : Describe two ways in which economists measure the degree of financial market integration (provide a brief explanation for their use).
Define trade balance equation of a country : Kept within sustainable bounds, trade deficits are not considered harmful by international economists. Why? To answer, define the trade balance equation of a country, and explain the economic justification of a country's trade deficit. (Hint: use ..
What ideas made you pause for self-reflection while reading : What ideas made you pause for self-reflection while reading? What did you stop to think about?What ideas/statements did you question as you read? Did you disagree with an author on a particular point?
Pipeline encounters political resistance : The XL pipeline encounters political resistance, and is forced to shut down for one month.Would this affect your profits more if the outage occurred in the winter, when demand tends to be fairly low, or in the summer when demand is higher?
Compute bresenhamsline drawing algorithm : COIS 4480H Assignment - Write a program to properly compute Bresenham'sline drawing algorithm for a 3D line projected onto any of the 4 possible parts of a grid. Format for this question - Write a program in any language of your choosing that will..
Rationales for women empowerment : In the state of Georgia. what are the rationales for women empowerment in terms of development impact? For example, according to the World Bank there is a positive effect of reduction in the gender gap in education on economic growth, immunization..
Consider the statement with the global economy : Consider the statement, "With the global economy, people around the world are becoming more and more alike, so why be concerned about diversity? Do you agree? Should organizations conduct diversity training?
Formulate mathematical model to maximize profit : A motorcycle shop sells two models of motorcycles: Type A and Type B. The shop is limited by a quota of 100 of Type A and 150 of Type B. Dealer preparation requires 2 hours for a motorcycle of Type A and 3 hours for a motorcycle of Type B. Formulate ..
Explain the four components of the earth-sun relationship : ECET 402- Briefly identify and explain the four components of the Earth-sun relationship that gives us seasons, or in other words, the changing distribution of insolation throughout the year (in three to four paragraphs).

Reviews

inf1372999

2/1/2017 3:34:55 AM

read this please 20748970_1COIS 4480H Assignment 1.docx so is it gonna be the same as someone else work like this ordernumber so i want you to use WebGL for all the questions so i want you to use WebGL for all the questions and please use the code i provided and do the labs cuz its from the assigemnt part

len1372999

1/27/2017 4:48:12 AM

so i want you to use WebGL for all the questions so i want you to use WebGL for all the questions and please use the code i provided and do the labs cuz its from the assigemnt part For all parts you should use screenshots and provide a text description of your testing and tell me what you think works. If I cannot run things at home you may need to show me your program running in my office on a laptop or provide a video.

Write a Review

Computer Graphics Questions & Answers

  Create a complex vector illustration drawing an object

create a complex vector illustration of your own, drawing an object or group of objects designed with a background in Adobe Illustrator. Or, you may draw a portrait or scene

  As an organisation enhances its project management

as an organisation enhances its project management capability it is important for the organisation to assess where it

  Dissertation proposal video presentation

This is your last research course for the DHA program. You have been working with the organization in which you will collaborate in completing your Action Research project.

  Use kruskal algorithm to construct a minimal spanning tree

1. use Dijkstra's Single Source Shortest Path Algorithm to construct the shortest path from a given vertex S to all other vertices.2. use Kruskal's algorithm to construct a minimal spanning tree for the graph.

  What are the methods of motion specifications

Define Computer animation. What are the methods of motion specifications? What are the steps in animation sequence?

  Display an orthogonal view of two animated 3d objects

Develop ONEC++ program to display an orthogonal view of two animated 3D objects and create two texture patterns. Texture 1 is a manually-constructed texture and Texture 2 is a texture converted from an input image.

  What is the difference between the images of the ball

Explain what is the difference between the images of the ball - Display the object while texturing the image using the new skybox

  You are required to develop a social marketing plan for a

you are required to develop a social marketing plan for a social marketing problem and organisation of your choice.

  Lab- lets get twisted

LAB- LET'S GET TWISTED, We will draw Bezier curves in this assignment, and some objects along them. You can add control points by left-clicking on the mouse. The points will be added to a list called "ptList[MAXPTNO]" and the variable "nPt" will r..

  Discuss website design basics

Juan arrived the end of his online course program. His family was so proud of him. Juan's wife wish to throw a party to celebrate Juan's online graduation together with all of his family, and started planning the special event.

  Pick a unique network address and number of subnet

Pick a network address from the list below. Everybody must pick a unique network address and number of subnet.

  Calculate and print the store location, sales and tax rate

Attached is a code file that works accept when a correct dollar amount an location number is entered, the result flashes on the screen and disappears. How do I get the output results to stay on the screen?

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