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
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
Demonstrate a working knowledge of basic 2D computer arts creation and modification tools, techniques and strategies - Demonstrate a working knowledge of basic 3D modeling ski
LAB- LET'S GET TWISTED, We will draw Bezier curves in this assignment, and some objects along them. You can add control points by left-clicking on the mouse. The points will
Describe the use of web standards. Why are they important when designing and developing websites? List three examples of these standards and discuss how they are used.
Consider a cache consisting of 256 blocks of 16 words each, for a total of 4096(4k) words and assume that the main memory is addressable by a 16 bit address and it contains of
Radio buttons and check boxes are two of many different kinds of components that can be included in a graphical user interface. How are they similar and how are they differe
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
Does the above statement apply to microeconomics or macroeconomics? Why? Think about the cases of government intervention that create a different price compared to the price-f