Compute bresenhams line drawing algorithm

Assignment Help Computer Graphics
Reference no: EM131376644

Assignment 1

Questions are deliberately not weighted, because I want to see how well people do with them and I'll adjust weighting based on that.

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's line 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).

Assignment file:

https://www.dropbox.com/s/pewqshz7oylv26w/Assignment.rar?dl=0

Reference no: EM131376644

Questions Cloud

Differences between indecent and obscene material : Explain the differences between indecent material, pornography, and obscene material. Which are legal? What regulations apply to different categories
Human capital approach to valuing a human life : What is the human capital approach to valuing a human life? If people are too poor to afford treatment costs for life-threatening illnesses, such as heart surgery or cancer treatments, how could the willingness to pay approach to be higher than t..
Determine the number of cycles to failure : Repeat this calculation if the maximum stress remains unchanged while the minimum stress is reduced to 25 ksi.
Are there any considerations in addition to finances : Create an argument for or against supporting your CIO's recommendation to purchase the firewalls. Are there any considerations in addition to finances?
Compute bresenhams line drawing algorithm : COIS 4480H Write a program to properly compute Bresenham's line drawing algorithm for a 3D line projected onto any of the 4 possible parts of a grid - creates a series of random 2D or 3D objects about 5-10 is probably good but you may need more or ..
Identify conceptual variables that may be of interest to you : Identify conceptual variables that may be of interest to you. A few examples are anxiety, conformity, and leadership.Create your own 5- to 10-item Likert scale to assess a conceptual variable of interest to you.Administer the scale to at least three ..
Poor demand since the production : "Prices of orange juices in the United States are rising despite the fact that poor demand since the production from Florida has been halted and so the supply of orange juices have decreased. Since the supply is affected by factors other than the ..
How ray should report his gambling winnings and losses : ACCT 595- Your manager has asked you to prepare a tax research memo indicating how Ray should report his gambling winnings and losses.
Research the most current ways the government recommends : Learning how to avoid identity theft can be a valuable activity.- Using the Internet, research the most current ways the government recommends for you to to prevent identity theft.

Reviews

len1376644

1/30/2017 4:58:32 AM

check the attachment please Theses are attachment for the assignment to be done Questions are deliberately not weighted, because I want to see how well people do with them and I’ll adjust weighting based on that.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

  How to work on datasturetur assignment how to work on

how to work on datasturetur assignment how to work on datasturetur assignment how to work on datasturetur assignment

  Write a memo report to your boss communicating the trends

Enter the spreadsheet data below and then prepare graphs that will help you see trends or patterns. Create at least three different graph types as part of your analysis.  That means a bar, a pie and a line graph, for example.

  Flaw in your design and outline

After completing Part a, discuss the flaw in your design and outline some code that will cause it to break (your code should compile fine and will also execute without an error but will violate how a rectangle or square should behave).

  What is the difference between animation and transition

What is the difference between animation and transition as it relates to a PowerPoint presentation? Review the different handout page formats.

  Write a program to draw hermite bezier curve

Write a program to draw Hermite/Bezier curve with n control points.

  Find spanning tree of g with maximum number of vertices

Given an undirected graph G = (V, E). Find a spanning tree of G with the maximum number of vertices that have degree 1. Show that this problem is NP-complete.

  What is an svg image and when might you use it

What is an SVG image and when might you use it? Provide your own definition of Graphic Design. What would be the resulting color if you specified the following ink combination: 10%, Black, 70%Magenta, 30%Cyan, 0% Yellow?

  Create a basic web page

It is critical that you keep your Web site material organized and easy to use. By having a file structure that is easy to use, you will be able to place material in the appropriate folder and have it available when it is needed.

  What is spline curve

COMPUTER GRAPHICS & MULTIMEDIA (IT-602) - Implement DDA algorithm to compute pixels along the line and What is spline curve? Differentiate between interpolation spline and approximation spline.

  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.

  Choose one of the organisations and examine their

choose one of the organisations and examine their commercial practices in light of ethical behavioural theory you have

  A rental car manager estimates the number of full-size

a rental car manager estimates the number of full-size sedans rented per week 5 so that she can maintain adequate

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