USF CS 686 - Computer Graphics and the Game Industry

Unformatted text preview:

PowerPoint PresentationSlide 2Slide 3Slide 4Slide 5Slide 6Slide 7Slide 8Slide 9Slide 10Slide 11Slide 12Slide 13Slide 14Computer Graphicsand the Game IndustrySpeaker: Ted BissonComputer Graphics and GamesFor today:• Who am I?• A brief introduction to OpenGL• The Game IndustryWho am I?Ted Bisson• USF class of 1998, Mathematics and Computer Science• Senior Programmer, Blizzard Entertainment Diablo II, Diablo II: Lord of DestructionOpenGLWhat is OpenGL?OpenGLApplicationOpenGL3D HardwareOpenGLOpenGL vs. DirectX• DirectX runs on Windows platforms• OpenGL is relatively universal• DirectX is better optimized for Windows platformsBut it’s ok, they are more the same than different!OpenGL: 3D Engine Basics• Viewports• Matrices• Vertex Lists• Triangle Lists• Lights• TexturesThe Demo ProgramStructure of the DemoSystem WinMain, Draw, Utility, COpenGLPrimitives CVector, CMatrix, CColor, CFile, CLine, CPathContainers CLineList, CVertexList, CTriangleListDraw Objects CDisc, CModelStructure of the DemoWinMain // Initialization Create a window (); Initialize OpenGL (); // Message loop while (not done) { if (there is a message) { Pass to appropriate message handler. } else { DrawProcess (); } }Structure of the DemoDrawProcess // Render the current scene. sRenderScene (); // Synchronize to constant frame rate. if (time to update scene) sUpdateScene ();Structure of the DemosRenderScene // Begin processing the scene, this includes // clearing the memory buffer. // Submit objects to be rendered. // End scene processing. // Present the rendered scene.Structure of the DemoSubmitting objects to the API // Specify modes, and begin submitting data. glPolygonMode (GL_FRONT, GL_FILL); glBegin (GL_TRIANGLES); // For each object, submit vertex data. glColor3f (red, green, blue) glNormal3f (normal_x, normal_y, normal_z); glVertex3f (position_x, position_y, position_z); // Indicate the end of this object. glEnd ();OpenGLQuestions about


View Full Document

USF CS 686 - Computer Graphics and the Game Industry

Documents in this Course
Load more
Download Computer Graphics and the Game Industry
Our administrator received your request to download this document. We will send you the file to your email shortly.
Loading Unlocking...
Login

Join to view Computer Graphics and the Game Industry and access 3M+ class-specific study document.

or
We will never post anything without your permission.
Don't have an account?
Sign Up

Join to view Computer Graphics and the Game Industry 2 2 and access 3M+ class-specific study document.

or

By creating an account you agree to our Privacy Policy and Terms Of Use

Already a member?