Creates a series of random 2d objects

Assignment Help Basic Computer Science
Reference no: EM13948502

Part 1: Create a program (OpenGL, or DirectX) that creates a series of random 2D objects, (or 3D objects that only move in 2D), about 25 is probably good but you may need more or less and has them move around on the screen, they should wrap around the edges of the screen (both top and bottom). 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. Note: Do this on a black or white background, don't try and handle collisions between objects. In theory it would make sense to use a (very) simply application of the painters algorithm and only draw the top one if there is a collision, but that's not very complicated for this, and doesn't add much.

Reference no: EM13948502

Questions Cloud

What is the population mean you are trying to estimate : Suppose you are trying to estimate the average miles per gallon for a new brand of car. You take a random sample of 40 cars, and, for this sample, the average miles per gallon is 32 and the standard deviation for this sample is 2.2. Answer the fol..
Coefficient of restitution between block and rod : A 2-lb block, sliding on a smooth horizontal surface with a velocity of 12 ft> s, strikes the rod at its end B. Determine the velocity of the block immediately after the collision. The coefficient of restitution between the block and the rod at B i..
What is the budget for the inspection activity : Suppose that Olsen budgets 50,000 units for production for the coming year. What is the budget for the inspection activity? Now assume that the budget is 60,000 units. Prepare a budget for inspection for this level of activity.
Clockwise angular velocity : The 2-kg rod ACB supports the two 4-kg disks at its ends. If both disks are given a clockwise angular velocity (vA)1 = (vB)1 = 5 rad>s while the rod is held stationary and then released, determine the angular velocity of the rod after both disks ha..
Creates a series of random 2d objects : Part 1: Create a program (OpenGL, or DirectX) that creates a series of random 2D objects, (or 3D objects that only move in 2D), about 25 is probably good but you may need more or less and has them move around on the screen, they should wrap around..
Determine the angular velocity of the disk : The 10-g bullet having a velocity of 800 m>s is fired into the edge of the 5-kg disk as shown. Determine the angular velocity of the disk just after the bullet becomes embedded into its edge. Also, calculate the angle u the disk will swing when it..
Replace the letter n with the letter g and alter the pointer : Then how do I replace the letter N with the letter G and alter the pointers so that the new letter appears in the list in its proper place in alphabetical order?
Prepare an annual budget for the activity of moving material : Prepare an annual budget for the activity of moving materials, assuming that all of the capacity of the activity is used. Identify which resources you would treat as fixed costs and which would be viewed as variable costs.
Program to add function for long integer : The help required is to provide a working add function in c. Hopefully after that I will be be able to write similar functions to subtract multiply and divide.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Write a recursive function called add_digits

Write a recursive function called ‘add_digits’ that takes an integer as a parameter and adds its digits. For example, if we call this function with the parameter n=1234, the returned value is 1+2+3+4=10.

  How to solve performance problem of computer

Your friend recommends upgrading RAM to 256 MB to correct performance problems. Is there any other way to solve performance problem? Justify your answer.

  Design an algorithm that prompts the user to enter a number

Design an algorithm that prompts the user to enter a number in the range of 1 through 100 and validates the input.

  Good training room

What are the characteristics of a good training room? How does the facility affect the training or does it?

  Write a public method called handletwoarrays

Q3.  Write a public method called handleTwoArrays that accepts two integer arrays (assuming they are of same sizes) as parameters. The method invokes switchTwoArrays to perform switching if the sum of the values in the first array is smaller than the..

  Calculate the total of the scores by using while loop

Write a program to calculate the average of the class by following steps: 1. Ask user input how students in the class 2. Use random function to generate the score (between 0 and 100) for each student and calculate the total of the scores by using ..

  Gui library to convert celsius to fahrenheit

Write a program in Java using Swing GUI library to convert Celsius to Fahrenheit. If the input is in Celsius, the program can output equivalent Fahrenheit. Both the input and output should use Swing GUI program. Both the input and output should use S..

  Guide to managing and maintaining your pc

Write your response to the following: Based on Ch. 12 & 14 of A+ Guide to Managing and Maintaining Your PC, prepare a 10-item list of troubleshooting techniques you must complete to speed up a slow Microsoft® Windows® 7 startup.

  Strengths and weaknesses of the durkheimian and weberian

Compare and contrast the strengths and weaknesses of the Durkheimian and Weberian theories of legal change. Think about and include answers for the following the following issues: How adequate are their descriptions of the legal systems they analyze?..

  Create a database using professional principles and standard

Create a database using professional principles and standards. Use a relational database software application to develop a database implementing the logical design into a physical design. Using Oracle database to create the normalized physical databa..

  Draw a magenta circle

Given a graphics object g, write a few lines of code to have that graphics object draw a magenta circle (not filled in) that has a diameter of 200 pixels.

  Which of the following statements is true

Which of the following statements is true?

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