lecture2 - CSE472 Computer Graphics Moving to 3D Camera...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
1 CSE472 Computer Graphics Moving to 3D Camera Configuration Parameters Tessellation Scene Graphs
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
2 CSE472 Computer Graphics Structure of Our Programs OnGLDraw() Clear the buffers Set up the camera Position the camera Configure OpenGL Render whatever we are rendering Flush
Background image of page 2
3 CSE472 Computer Graphics Clear the Buffers void CChildView::OnGLDraw(CDC *pDC) { // Clear to black. .. glClearColor(0.0f, 0.0f, 0.0f, 0.0f) ; glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); . . .
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
4 CSE472 Computer Graphics Camera Configuration What does it take to describe a camera?
Background image of page 4
5 CSE472 Computer Graphics Describing a Camera Where it is in space Eye location Which way it’s pointing Or what it’s pointing at Which way is up Zoom characteristics Field of view angle
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
6 CSE472 Computer Graphics Setting up the Camera Field of View (angle) Near clipping plane Far clipping plane Nothing is rendered that is: Closer than the near clipping plane Farther than the far clipping plane Aspect ratio = w/h w h
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 07/25/2008 for the course CSE 472 taught by Professor Owen during the Spring '08 term at Michigan State University.

Page1 / 19

lecture2 - CSE472 Computer Graphics Moving to 3D Camera...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online