CS 330 Practice Activity 5 Guidelines and Rubric
In this course, practice activities will help you to learn OpenGL and build computer graphics skills that
you will need to complete a successful final project.
In Practice Activity 5, you will create commented code for a 3D pyramid in modern OpenGL.
If you have trouble completing the assignment, be sure to post your questions or issues to the Graphics
Troubleshooting discussion topic. It is essential to ask for help when you need it and successfully
complete each activity, as the course continues to build on earlier learning.
First, review the Module Four Tutorials to learn more about working with modern OpenGL and using
matrices to transform objects.
To complete this assignment, follow these steps:
1. Write commented modern OpenGL code to create a pyramid that utilizes indices and the Vertex
2. Give each vertex on the pyramid any color.
3. Use the Model View Projection matrix to display the pyramid in a perspective angle.
Here are examples for reference:
Extending This Activity for Your Final Project
In this activity, you hone the skills you need to complete your final project by creating and working with
a 3D object using modern OpenGL.
The following critical elements should be addressed in your practice activity submission:
Application Functionality and Visual Assessment
The OpenGL application must meet the required functionality and visual representation that are
the results of solving the programming problem. Achieving this result may require multiple
attempts or iterations.
Source code is free of logical or syntax errors that prevent the application from running as
expected. You will be given credit for code that is well on its way to meeting specifications or
solving the problem.
Comments and Formatting
All code should be well commented. This is a practiced “art” that requires clarity and concision.
Your comments should explain the purpose of lines or sections of the code and may also include
the method you used to achieve a specific task in the code. Be sure to document any section of
code that is producing errors or incorrect results. Also, all code should be organized to meet
Guidelines for Submission: Your assignment should be submitted as a .cpp file. First, make a copy of the .cpp file by
rightclicking it in the Project Explorer in Eclipse, and then paste it to your desktop.
Please note that while the practice activities are graded, their main purpose is to provide opportunities for you to build
skill and receive feedback that you can incorporate as you work toward the final project.
The code functions to solve
the problem and passes visual
Needs Improvement (75%)
Details of the functionality or
visual assessment are not met
in significant instances
Not Evident (0%)
The program does not meet
the specified functionality or
The code is free or nearly free
of logical or syntax errors
The program includes some
significant errors in logic or
Code comments are
incomplete or unclear, or the
code does not consistently
follow formatting standards
The program exhibits serious
and consistent errors in logic
Code annotations are not
present, or the code does not
follow formatting standards
Code comments facilitate
understanding of the code,
and the code follows
Purchase answer to see full