interactive computer graphics
play

Interactive Computer Graphics CS 418 Spring 2011 M P3 Teapot Contest - PowerPoint PPT Presentation

Interactive Computer Graphics CS 418 Spring 2011 M P3 Teapot Contest Office Hours TA: Gong Chen Location: 1322 Siebel Center Email: gchen10 at illinois.edu Time: Monday 4pm-5pm MP3 Requirement Explained 10% Load Triangles 10%


  1. Interactive Computer Graphics CS 418 – Spring 2011 M P3 Teapot Contest Office Hours TA: Gong Chen Location: 1322 Siebel Center Email: gchen10 at illinois.edu Time: Monday 4pm-5pm

  2. MP3 Requirement Explained  10% Load Triangles  10% rendering using perspective correct  20% realistic lighting  20% texture mapping  10% environment reflection (environment mapping)  10% documentation  10% impressiveness

  3. Loading Triangles  C++ fstream simplifies the reading process  Read in a list of vertices and faces  For each vertex calculate its texture coordinates using the cylindrical coordinate formula given on the MP description  For each face update per vertex normal  Need to check if the addition of normals increases magnitude.  Use glutSolidTeapot to check for correctness

  4. Texture Mapping-Basic Flow  PPM online converter  http://www.sciweavers.org/free-online-image-converter  glGenTexture(…) //generate texture names Initialize  glBindTexture(…)//bind texture name to target texture  glTexParameteri(…)//for given texture (ex. object GL_TEXTURE_2D) specify parameters  glTexImage2D(…)//for the initialized texture object specify texture data  Refer to the demo code  Previous demo also showed how to use use the build2dMipmap option

  5. Reference on texture functions  http://www.opengl.org/sdk/docs/man/xhtml/ glGenTextures.xml  http://www.opengl.org/sdk/docs/man/xhtml/ glBindTexture.xml  http://www.opengl.org/sdk/docs/man/xhtml/ glTexParameter.xml

  6. Lighting  Covered in previous discussion  Demo in MP2  If you haven’t try to understand the code for lighting in MP2

  7. Environment Mapping  Check this out  http://www.nvidia.com/object/cube_map_ogl_tut orial.html  It is similar to texture mapping in that you use similar functions to set up your texture object.

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend