CS 3233-01 Homework #4
Fall 2024
Due: October 23 Assignment
Write a C++ program that uses OpenGL to draw a lighted 3D scene chosen from this list with at least five objects in the scene:
• A still life. The primary objects in the scene are items that one might find on a ta- ble or desk such as flowers, pieces of fruit, or common office products.
• A transportation scene. The primary objects in the scene are cars, trucks, boats, or other mechanized conveyances.
• An architectural scene. The primary objects in the scene are buildings. At least one of the buildings should have an open door or window that allows the viewer to see inside. There should be an object inside for the viewer to see.
• Your choice. A scene of your own choosing, subject to my approval.
Your program should incorporate Eck’s camera API so the viewer can use a mouse or other pointing device to rotate the scene and view it from various directions. You may use your prism-drawing function if you find it helpful.
Your program should set a location for the light source other than the default location.
Also, exercise your own inventiveness to include a feature in your program that will sur- prise me. Include a README file that tells me what the surprise is. I will test your pro- gram and look for the surprise before I read the README.
Submission Requirements
To receive credit for the assignment, your submission must fulfill these requirements:
• It must include all the source code files necessary for your application.
• Each source code file must begin with a box comment that identifies you, the course, the project, and the due date.
• 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.
版权所有:编程辅导网 2021 All Rights Reserved 联系方式:QQ:99515681 微信:codinghelp 电子信箱:99515681@qq.com
免责声明:本站部分内容从网络整理而来,只供参考!如有版权问题可联系本站删除。