Compute the normal for each face and display it

Assignment Help Computer Engineering
Reference no: EM131943843

Assignment -

The goals of this assignment are to familiarize yourself with obj parser, the OpenGL command of the illumination, shading and texture mapping.

Part A: Obj Parser

Obj Parser will load a wavefront obj mesh file, compute the normal for each face and display it.

The obj mesh file format is described here. More obj mesh files may be found on the internet

  • Download objLoader.zip, cube.obj, teapot.obj and pig.obj
  • Compile, run and understand the code

Part B: Illumination and Shading

Based on the previous assignment, extend the system to support the following features:

  • Support for a light source.
  • Interactively turn light(s) on and off.
  • Support flat, Gouraud or Phong shading models. (Hint: In order to do Smooth/Gouraud shading, you need to provide the normal vector for each vertex using glNormal. The vertex normal can be computed as the average of all the faces/triangles adjacent to the current vertex as described in here).
  • interactive change the (RGB) values associated with the global ambient light.
  • interactive change the (RGB) values associated with the ambient, diffuse and specular component of the light sources.
  • interactive change the (RGB) values associated with the ambient, diffuse and specular material properties of the objects.

Part C: Texture Mapping

  • Download header file stb_image.h that read images to OpenGL textures
  • Read cube.obj and an image file (.jpg) as a texture (here are two sample images: checker-board, mandrill, you can also use any other images you like) , and render the object with the texture mapped.

Attachment:- Assignment Files.rar

Reference no: EM131943843

Questions Cloud

Describe one mentoring activity you might complete : Describe one mentoring activity you might complete with a mentor that would help you to acclimate to your new advance practice role. Should this activity
Factors the biological perspective points : As you read the chapter and watch the video, consider what factors the biological perspective points to as influential in personality development.
What is the paradigm : Introduction: what is Paradigm. Paragraph 1: how our paradigmcan affect us? Paragraph 2: how to change our paradigm?
Influential in personality development : As you read the chapter and watch the video, consider what factors the biological perspective points to as influential in personality development.
Compute the normal for each face and display it : Obj Parser will load a wavefront obj mesh file, compute the normal for each face and display it. Compile, run and understand the code
Types of stress are frustration and internal conflict : The major types of stress are frustration and internal conflict. Compare and contrast frustration and conflict and give an example of each.
What is being done to address the problem : What is being done to address this problem? Is there a consensus about how to improve this problem, or is there a great deal of controversy?
Children in middle childhood and adolescence : What is the effect of violent video games and movies on children in middle childhood and adolescence?
What extent are anxiety and powerlessness correlated : To what extent are anxiety and powerlessness correlated? Is there a causal relationship between the two?

Reviews

len1943843

4/16/2018 4:34:36 AM

The file submitted is only the criteria I have the files that are to be used to do the project. Thank you! These are all the files needed it, has to be done using GLFW in OpenGL. Read cube.obj and an image file (.jpg) as a texture (here are two sample images: checker-board, mandrill, you can also use any other images you like) , and render the object with the texture mapped.

Write a Review

Computer Engineering Questions & Answers

  Identifying and describing how information systems are

identifying and describing how information systems are used to support the business processes in an organization.nbsp

  Run a SEO audit on the website using SEOptimer

MK-670 Introduction to Digital Marketing Assignment - Search Engine Optimization (SEO). Run a SEO audit on the website using SEOptimer

  Determine the value of p and q in program

Write the output of the following program. #include using namespace std; int fun ( int*& p, int* q) { *p = 12;

  Prepare test environment for mail server

Communication Server Administration (COMP 30005) - Write a work proposal about the requirements to perform Task 2. Submit a work proposal for this assignment by the end of week 7 and Prepare Test environment for mail server - Analyse various mail ser..

  Stack pointer and program counter

The content of top of a memory stack is 5320. The content of stack pointer SP is 3560. A two-word call subroutine instruction is situated in the memory at address 1120 followed by the address field of 6720 at location 1121.

  Define what is scope creep

Define what is scope creep. Illustrate scope creep with reference to a project you know about. Could the scope creep be avoided? Can scope creep be a good thing and under what circumstances?

  Write a function that given a data frame returns

Write a function that given a data frame returns the type of each column (numeric, factor, logical, etc.) and prints the type to the console

  Recommend the proper audit controls to be employed

Analyze proper physical access control safeguards and provide sound recommendations to be employed in the registrar's office. Recommend the proper audit controls to be employed in the registrar's office.

  Design model below to complete

Use the KCT design model below to complete this case.CUSTOMER(CustomerID, FirstName, LastName, Street, City, State, Zip, Phone)RENTAL(RentalID, RentalDate, NumberOfDays,

  Write a simple game akin to old text adventure games

This assignment asks you to write a simple game akin to old text adventure games like Adventure: You'll write two programs that will introduce you to programming in C on UNIX based systems, and will get you familiar with reading and writing files

  Organization to consolidate servers

Utilizing any organizational model from your experience and or research, describe the pros and cons of this organization in order to consolidate the servers and to relocate the primary data centers.

  Design a variation of algorithm treesearch

Design a variation of algorithm TreeSearch for performing the operation find Al(k) in an ordered dictionary implemented with a binary search tree T.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd