代做CS 3233-01 Homework #6 Fall 2024帮做C/C++编程

- 首页 >> OS编程

CS 3233-01 Homework #6

Fall 2024

Due: November 22 Assignment

Write a C++ program that uses OpenGL to draw an object read from of an OBJ file. You may ignore the content of the file other than these entries:

v          Vertex coordinates

vt         Texture coordinates

vn       Normal vectors

f          Faces

Your program should draw the object(s) from the file in 3D with lighting enabled. You may use one or more light sources of your own choosing. Also, animate your drawing so that the object rotates slowly around the vertical axis, enabling the viewer to see it from all sides. The rotation must be evenly paced and of moderate speed.

You may ignore the texture coordinate entries if you wish. I will not provide a texture image when Itest your program.

Prompt the user to enter the name of the OBJ file at runtime. I will test your program with an OBJ file of my own choosing.

Submission Requirements

To receive credit for the assignment, your submission must fulfill these requirements:

•   It must include all the source code necessary for your application, including code provided by the professor such as Eck’s camera API and Barrett’s image loader.

•   Each source code file you write must begin with a box comment identifying you, the course, the project, and the due date.

•   Each function must be preceded by a box comment that includes the name of the function and a brief abstract of what the function does.

•   It must include a makefile that builds your application on the SoC server when I enter the one-word command make on the Linux command line. There must be no build-time errors. Building must produce an executable application called a.out.

•   The makefile must not auto-run the application after it finishes building.

•   The makefile must include a clean entry.




站长地图