HW#1 --- last modified March 02 2019 21:07:58..Due date: Sep 13
Files to be submitted: Purpose: The purpose of this homework is to experiment with a modern tool for 3D graphics as well as to implement some simple curve drawing algorithms in C++ using OpenGL. Specification: For the first part of this assignment I would like to whet your appetite for the different kinds of graphics primitives and effect we'll learn to implement this semester. Download Maya Personal Learning Edition. Then create a scene using Maya which consists of your whole name in 3D. Try to use as many of Maya's features as you can. Make it look cool-- it's your name after all. Submit this as name.mp . For the second part of the homework I want you to gain experience with some of the algorithms we've learned in class. In C++ using OpenGL calls, create a function with prototype: void polyLineBres(int x[], int y[], int len); which draws the polyline consisting of points (x[0], y[0]), (x[1], y[1]), ... (x[len-1], y[len-1]) using Bresenham's line drawing algorithm. Then create a function with prototype: void circleArcMidpoint(GLint xc, GLint yc, GLint r, GLfloat startTheta, GLfloat endTheta); which draws a circular arc in OpenGL based on a circle centered at (xc, yc) of radius r where the starting angle of the arc is startTheta radians, and the ending angle of the arc is at endTheta radians. To recieve credit you need to modify the Midpoint Circle algorithm to implement this function. Finally, write a short program that uses to GLUT open a window and then draws using these two functions your whole name in this window in 2D followed by the English vowels: a,e,i,o,u. Point Breakdown
|