Create a simple warm-up program using your g3d
Course:- Computer Graphics
Reference No.:- EM13247

Assignment Help
Assignment Help >> Computer Graphics

Create a simple warm-up program using your G3D programming and graphics environment. This will require you to minorly edit and then compile a provided G3D application that mostly makes direct calls to OpenGL. It is to your benefit to organize your programming environment as you see fit.

Your job is to implement a program which draws a simple 2D screen saver like program. The "screen-saver" consists of two points bouncing within the confines of the window (i.e., within a rectangle) and one line being drawn between the points. To draw the line, simply draw the line using OpenGL line drawing primitives (e.g., use glBegin(GL_LINES), glVertex2f(x,y), and glEnd(). You may perform all computations in 2D, thus you do not need a perspective projection matrix. The points should start at a random position and move with a random (but reasonable) velocity vector. The points should reflect off the edge of the window and continue moving for about 10 seconds.

Put your comment

Ask Question & Get Answers from Experts
Browse some more (Computer Graphics) Materials
What is 3D printing? Identify three objects that you think would be practical to create using 3D printing. - Which would you rather have-a tablet computer or a smartphone? Why
Develop a report using word-processing software. In that report, address the following: Identify the element(s) that you could include on your Web site that would convey to i
Computer control (simple AI) of the enemies. The enemies should be abundant enough to challenge the player but not be impossible to beat. (GUI, Functionality), Random place
Design and implementation of the simulation component. This will provide initialisation of the data structure and enable discrete updates (progression) of the model based on
Require to design a program that show passing arguments ByVal and then ByRef. It is suggested that I create a square function process and get an integer from the user then sen
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.
Your report should include a short introduction, description of where you found the data, any data preparation and methods/analysis used; and discussion of how the visualis
Modify the product Program to use a GUI. The GUI should show the data one product at a time, including the product number, the name of the item, the number of units in stock.