Computer Science Homework Help

SNHU Computer Science 3D Pyramid in Modern OpenGL Question

 

In this assignment, you will create commented code for a 3D pyramid in modern OpenGL.

If you encounter any challenges while completing this assignment, be  sure to post your questions or issues to the General Questions  discussion. It is essential to ask for help when you need it and  successfully complete each activity, as the course will continue to  build on earlier learning as your skills progress.

Prompt

Before you begin, be sure to review the module resources for this  week’s topics. Then, if you have not done so already, navigate to the CS 330 folder  in GitHub. From there, download the ZIP file containing all of the  items within this folder, including assignment tutorials for Module Two  through Module Six. There are two essential parts to these tutorials:  the markdown (MD) files that walk you through how to work with different  OpenGL capabilities, and the solution (SLN) file that contains all the  code for each section of the tutorials. On your own machine, open the  solution (SLN) file in Visual Studio and navigate to the Module Three  tutorial sections in the Solution Explorer. While you may open the  markdown (MD) file using an external text-based program, we recommend  you instead follow along with the Module Three Tutorial  in GitHub so it is easier to review the different sections, code, and  supporting images. Going through all the sections in the tutorial and  attempting the embedded exercises will help you practice the skills you  will need to demonstrate in this assignment.

Once you understand the content in the tutorial, you will begin this  assignment by opening a new Visual Studio project that has all the  libraries set up correctly (which you learned how to do in a previous  module). The goal of this assignment is to write commented modern OpenGL  code to create a 3D pyramid.

3D pyramid built using OpenGL. None of the faces of the pyramid are solid, so they can all be seen through. Only the lines connecting each vertex are visible, along with one line bisecting the square base into two triangles. Each vertex is assigned its own color, which then turns to a gradient as it transitions to the color assigned to the next vertex.3D pyramid built using OpenGL. All faces of the pyramid are solid and cannot be seen through. Each vertex is assigned its own color, which then turns to a gradient as it transitions to the color assigned to the next vertex.

Your pyramid should use the indices and the Vertex Array Object, with  each vertex on the pyramid being assigned a color of your choice.  Employ the Model View Projection matrix to display the pyramid in a  perspective angle.