I have attached the model.obj file.1. Open a 512 × 512 window. The text in the titlebar should read ’Project 7’. Thebackground color should be black, and the frame buffer should contain a depth buffer forhidden surface removal. Render your name in the lower left hand corner and a frames persecond counter in the lower right. Render the scene using perspective projection.

I have completed section 1. And I need help in getting started with other sections.

2. Load the model.obj mesh. Read only the vertex locations and faces from the file. Do notload normals, you will be computing them. When the function key F1 is pressed display thethe vertices of the mesh as GL_POINTS in a display list. Apply a scale transformation to themesh when rendering so that the mesh always fits inside a 10 × 10 × 10 box.

4.Compute the face normals of each triangle. When F3 is pressed display the mesh as a flatshaded triangle mesh using the lighting described in the next section. The rendering shouldbe done through a display list