Jump to content
Sign in to follow this  

OpenGL C++

Recommended Posts

Hi people,

I am looking for some help in one of my openGL problem. The problem is to load *.obj file to create some scene using C++. I use visual C++ for this purpose. Any help will be appricated.

Share this post

Link to post
Share on other sites

I have attached the model.obj file.

1. Open a 512 × 512 window. The text in the titlebar should read ’Project 7’. The

background color should be black, and the frame buffer should contain a depth buffer for

hidden surface removal. Render your name in the lower left hand corner and a frames per

second 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 not

load normals, you will be computing them. When the function key F1 is pressed display the

the vertices of the mesh as GL_POINTS in a display list. Apply a scale transformation to the

mesh when rendering so that the mesh always fits inside a 10 × 10 × 10 box.



3. When the function key F2 is pressed display (using a vertex array) the triangular faces

of the mesh (GL_TRIANGLES) in red with ambient color red (no normals needed).


4.Compute the face normals of each triangle. When F3 is pressed display the mesh as a flat

shaded triangle mesh using the lighting described in the next section. The rendering should

be done through a display list


..... and so on.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...

Important Information

By using this site, you agree to our Terms of Use.