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

Assignment Help
Expertsmind Rated 4.9 / 5 based on 47215 reviews.
Review Site
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
Suggest a network design for a customer that has fifty remote locations in addition to a central headquarters. Half of the remote locations are needed to connect or stay on li
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
Tables offer one of the most powerful ways to format a web page. A table allows for the orderly arrangement of text or graphics into vertical columns and horizontal rows. Th
Describe what is meant by a publication's "departments". To insert a single dash instead of a hyphen in InDesign use: It's a good idea to include which elements on the content
Write the steps of Gourand interpolation shading technique. A cubic Bezier curve is to be drawn given the control points P1 (40, 40), P2 (10, 40), P3 (60, 60), P4 (60, 0). Ca
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
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
Develop a simulation of an elevator - devise and implement a second strategy - Develop a simulation of an elevator that travels between floors 1 and N where N is an input.