Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M92782499

Have any Question?


Related Questions in Computer Engineering

What is 4g and its benefits how fast is your internet

What is 4G and its benefits. How fast is your Internet service supposed to be for stationary users?

Questions 1 what are the four parts of the administrative

Questions: 1. What are the four parts of the administrative simplification requirements of HIPAA? 2. Name three factors used to determine whether you need to comply with HIPAA. 3. What are the three categories of entitie ...

Discuss the importance of using an access control model in

Discuss the importance of using an access control model in determining how employees in an organization should gain access to resources.

Kingston corporation is considering a new machine that

Kingston Corporation is considering a new machine that requires an initial investment of $550,000, including installation costs, and has a useful life of eight years. The expected annual after-tax cash flows for the mach ...

Task 1create an array that holds a 20 random integers

Task 1: Create an Array that holds a 20 random integers between 1-50. Create an iterator that will return the memory address and value for each integer present in the Array. Task 2: Update Assignment 1 Task 2. Pass the v ...

Systems analysis project personal trainer inc owns and

Systems analysis project Personal Trainer, Inc. owns and operates fitness centers in a dozen Midwestern cities. The centers have done well, and the company is planning an international expansion by opening a new "superce ...

Explain why a u s recession that occurs as the rest of the

Explain why a U. S. recession that occurs as the rest of the world is expanding will tend to reduce the U. S. Trade deficit.

Discuss 5 of the most important sql server management

Discuss 5 of the most important SQL Server Management Studio (SSMS) features. Provide references - website link, book, article, etc.

Question show step by step how bubble sort will work on the

Question : Show step by step how bubble sort will work on the following array: 10, 4, 9, 7, 3. Draw the array for every candidate swapping in every iteration separately. Mark the swapped elements and mark the iterations ...

What are the differences between the federal deficit and

What are the differences between the Federal deficit and Federal Debt? How does a government budget deficit affect the economy, specifically the unemployment rate and job creation? Identify two periods in recent history ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As