Create program that creates a series of random two-d objects

Assignment Help Programming Languages
Reference no: EM131373639

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

Reference no: EM131373639

Questions Cloud

Explain the impact of telecommuting on energy conservation : Describe the impact of telecommuting on energy conservation, IT operational costs, "green computing", and shifts in telecommuters' lifestyles (e.g., parents, disability, etc.).
What is photosynthesis in plants : What is photosynthesis in plants? How does temperatures of different regions or climate of a particular region affect the process?
Bacteria are medically and ecologically important : 1. Discuss several ways in which bacteria are medically and ecologically important. (3-5 paragraphs is possible).
Levels of invasion of the body by fungi : Define mycosis and describe the levels of invasion of the body by fungi. Explain what factors could cause opportunistic mycoses to be a growing medical problem. (in 3-5 well-developed paragraphs or a start).
Create program that creates a series of random two-d objects : COIS 4480H- Create a program 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.
Calculate the major principal stress at failire : A drained triaxial test was conducted on the same sand with a chamber-confining pressure of 150 kN/m2. The sand sample was prepared at a relative density of 68%. Calculate the major principal stress at failire.
Photosynthesis process work in colder regions : How does photosynthesis process work in colder regions where there is no or limited sunlight?
Give confidence interval for average lengths of pins produce : Give a 95% confidence interval for the average lengths of all pins produced.- Give a 99% confidence interval for the average lengths of all pins produced.
Determining the processivity of a dna polymerase : Describe an experimental approach to determining the processivity of a DNA polymerase (i.e., the number of nucleotides incorporated per chain per polymerase binding event)

Reviews

Write a Review

Programming Languages Questions & Answers

  What are tools and strategies to increase traffic website

Select a web site from an education industry (university, school or training center) and analyze the ease of use of at least 3 functions and/or features?

  Write a program that simulates the lottery

For this problem, you will simulate the lottery to put your programming knowledge for use in something practical. Write a program that simulates the lottery to help in becoming obscenely wealthy with no work whatsoever!

  Compute the product xy

Given two integers X and Y compute the product XY (multiplication), the quotient X=Y (integer division), and the modulus X (mod Y) (remainder).

  Write program to accept data in array with three structures

Develop and make a program which will accept above data in array with three structures. Once data have been entered, display report listing each employee number and salary of employee.

  Find use of dom to change the contents of an html text box

This statement will include the names of files or sections of code within a file for which he or she has been solely responsible, and the Web address of files that are visible on the group Web server space. A response such as ‘It was basically a j..

  Computing average net profit per sale of product

Your company bought 250,000 online advertising impressions and made average net profit per sale of product of $5.

  Problematic programming situation

Suggest one example of a problematic programming situation or scenario that the use or implementation of a loop structure could resolve. Justify your response.

  Examine the merits and demerits of using mobile computing

question 1 compare and contrast monitoring of patient vital signs using mobile computing technology to in-patient

  Error messages but still require modifications

Less serious than error messages but still require modifications

  Deisgn child class that overrides parent method

Deisgn child class named Box, that contains additional data field named depth and a computeSurfaceArea() method that overrides the parent method appropriately for a three-dimensional box

  Write script to declare-set variable equal to total balance

Write down the script which declares and sets variable that's equal to total outstanding balance due. If that balance due is greater than $10,000.00

  Write a program larger that reads two numbers

Write a program larger.s that reads two numbers from stdin, and prints the larger of the two numbers. The numbers can be positive, negative, or zero

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