220 likes | 375 Views
CIS 441/541: Introduction to Computer Graphics Lecture 13: Geometry Creation. Hank Childs, University of Oregon. May 17 th , 2013. OH. OH Fri 2-4 OH cancelled Tues May 21 st makeup OH Fri May 25 th. Project #2F (7%), Due Thurs May 23 rd , 6am.
E N D
CIS 441/541: Introduction to Computer GraphicsLecture 13: Geometry Creation Hank Childs, University of Oregon May 17th,2013
OH • OH Fri 2-4 • OH cancelled Tues May 21st • makeup OH Fri May 25th
Project #2F (7%), Due Thurs May 23rd,6am • Goal: modify ModelView matrix to create dog out of spheres and cylinders • New code skeleton: “project2B.cxx” • No geometry file needed. • You will be able to do this w/ glPush/PopMatrix, glRotatef, glTranslatef, and glScalef.
Final projects • Ideas: • Video games • Visualizations • Modeling • Screen savers • Let’s hear from: • Brad & Rajat • Adam • Final project grading
Performance mishaps • No display lists • Display lists not initialized • glBegin(GL_TRIANGLES) / glEnd inside for loop • How do we identify performance mishaps?
The rest of this quarter • May 17th / Lecture 13: geometry creation • May 22nd / Lecture 14: buffers in GL • motion blur, environment maps, shadow maps • May 24th / Lecture 15: transparency • May 29th / Lecture 16: terrain rendering • May 31st / Lecture 17: parallel rendering, quaternions??? • June 5th: Final • June 7th / Lecture 18: Research with GPUs
Quick Overview of Advanced Geometry Creation Techniques • Motion Capture • Animation Tools
Motion Capture: Kinect RGB+depth at 640x480, 30 fps
Motion Capture • Motion Capture basically means recording movement and translating that movement/ information into another medium. • Often used in films and video games. • In present day, motion capture is primarily seen as the method of recording an actor’s or multiple actors’ performance and using the information recorded to create a digital performance with a model in 3D.
Motion Capture • In this method actors are recorded with multiple cameras from various angles. During the performance the actor wears markers near each joint on their body so the cameras can record the complete movement of the body. The movement is then pin pointed to just the markers. • Once the motion capture information is collected and the 3D model is created the two are then paired creating life like movement.
Animation Software: Maya http://www.autodesk.com/products/autodesk-maya/overview
ModelView and Projection Matrices • ModelView idea: two purposes … model and view • Model: extra matrix, just for rotating, scaling, and translating geometry. • How could this be useful? • View Cartesian to Camera transform • (We will focus on the model part of the modelview matrix now& come back to others later) Familiar for us New for us
Common commands for modifying model part of ModelView matrix • glTranslate • glRotate • glScale
Contents of project2B.cxx • Routine for generating spheres • Routine for generating cylinders • Routine for generating head, eyes, and pupils • We will study all of these together for the remainder of the class.
Code study • We will now write code to generate a cylinder • We will then look at: • Code to generate a cylinder • Code to generate a sphere • Code that uses spheres to start head.