Fill This Form To Receive Instant Help

Help in Homework
trustpilot ratings
google ratings


Homework answers / question archive / Week 5 Overview In this course, many assignments are paired with tutorials to help you to learn OpenGL and build the computer graphics skills that you will need to successfully complete your coding and design work

Week 5 Overview In this course, many assignments are paired with tutorials to help you to learn OpenGL and build the computer graphics skills that you will need to successfully complete your coding and design work

Computer Science

Week 5 Overview

In this course, many assignments are paired with tutorials to help you to learn OpenGL and build the computer graphics skills that you will need to successfully complete your coding and design work.

In this assignment, you will create commented code for applying texture to 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 Four 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 Five 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 apply texture to a 3D pyramid.

All four sides of the pyramid, including the base, should have a brick texture applied. Reference the Sourcing Textures Tutorial, linked in this module’s resources section, for additional support in finding a texture to use. We recommend selecting a square image to avoid stretching and to more easily work with the coordinates. Think about how you might lay out your coordinates on a square texture for both a triangle (the sides of the pyramid) and a square (the base of the pyramid) before you begin. An example of a finalized pyramid with a brick texture applied is shown below.

3D pyramid built in OpenGL. A brick texture has been applied and two sides of the pyramid are visible.3D pyramid built in OpenGL. A brick texture has been applied. The bottom of the pyramid and two of its sides are visible.

Specifically, you must address the following rubric criteria:

  • Create code to address the required functionality. The work you complete in OpenGL must meet the required functionality and visual representation that are outlined for this particular topic. Achieving this result may require multiple attempts or the application of programming strategies, but that is okay! Working in iterations is an important part of any coding project. You may also wish to refer back to relevant sections of this week’s tutorial for further guidance or review.
  • Apply logic and proper syntax to code. Source code should be 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.
  • Apply commenting and formatting standards to facilitate understanding of the code. 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 sections of code that are producing errors or incorrect results. Also, all code should be organized to meet formatting standards.

Guidelines for Submission

Submit a completed ZIP folder with all of your code, which may include one or multiple CPP files along with Visual Studio project files. Also make sure the ZIP folder includes an EXE file, because without this your code will not be able to run. Checking for the EXE can be used as a quick reference on the functionality of your code before you submit.

 

___________________________________________________

Milestone:

Overview

This week you will continue to work on the 3D scene you already began to build, based on a 2D image you previously selected. At this point you should already have one complex object, a plane to orient the 3D world, and camera navigation applied to the scene. Now it is time to incorporate texture to create more detail and realism so the objects in your scene will start to look more like their real-life counterparts.

Prompt

You will complete your work in Visual Studio, being sure to work from the project file you already began to create in prior milestones. This file has the libraries set up correctly and contains the 3D objects you built, which will be necessary for you to add to this week.

Specifically, you must address the following rubric criteria:

  • Apply texture to create a detailed appearance for a 3D object. Select the complex object in your scene (the one that uses two or more shapes to create a single object) and determine what image files you should use to render it in 3D. You may wish to approach this realistically or take some artistic license to create something more creative. Refer to the Sourcing Textures Tutorial, linked in this week’s Resources section, to ensure the textures you select are free and open source. As you work, manipulate your texture to ensure it is not too stretched or too small to match the object. Pay particular attention to the resolution of the image you choose to use so that it does not appear too pixelated for the object. However, you will also not want the image to be too large so that it will take a long time to render. Continue to check your work by running the code and viewing how the texture has been applied to the object.
  • Apply a complex texturing technique to a 3D shape. Depending on what makes the most sense for your scene, either tile a texture or overlap two images on top of one another for one of the shapes in your complex object. The selected technique should be used to add detail to your scene in a particularly unique or interesting way.
  • Create a cohesive object using different textures on individual 3D shapes. Because your 3D object is made of two or more 3D shapes arranged in relation to one another, you will need to orient the textures in relation to one another. Think about what different image files you may want to use in order to emphasize the different components of the object overall.
  • Create code that follows a logical flow without syntax errors. The code you create has to be executable and all the code that is included needs to be reached by the execution. Note that not everything should be written in a single function and your work should be well-modularized.
  • Apply coding best practices in your creations. Pay particular attention to the way you format and comment your code. Program code should be easy to read and follow industry standard code formatting practices, such as indentation and spacing. Commenting best practices should be in place to ensure the source code is briefly and clearly explained using descriptive comments.

Guidelines for Submission

Submit a completed ZIP folder with all of your code, which may include one or multiple CPP files along with Visual Studio project files. Also make sure the ZIP folder includes an EXE file, because without this your code will not be able to run. Checking for the EXE can be used as a quick reference on the functionality of your code before you submit.

 

Option 1

Low Cost Option
Download this past answer in few clicks

26.99 USD

PURCHASE SOLUTION

Already member?


Option 2

Custom new solution created by our subject matter experts

GET A QUOTE