Presentation is loading. Please wait.

Presentation is loading. Please wait.

CSE 5542 - Real Time Rendering Week 2. Graphics Processing 2.

Similar presentations


Presentation on theme: "CSE 5542 - Real Time Rendering Week 2. Graphics Processing 2."— Presentation transcript:

1 CSE 5542 - Real Time Rendering Week 2

2 Graphics Processing 2

3 Physical Approaches 3

4 Projection-Based 4

5 Projection 3D objects -> 2D image –Perspective –Parallel/Orthographic 5

6 The Hardware 6

7 More 2 come …

8 The API/System 8

9 The Graphics Pipeline 9

10 Object & Primitive & Vertex 10 http://www.3dcadbrowser.com/download.aspx?3dmodel=27814

11 Object & Triangles & Vertices http://www.mathworks.com/matlabcentral/fileexchange/37004-uniform-sampling-of-a-sphere

12 Primitives 12

13 Example (old style) glBegin(GL_POLYGON) glVertex3f(0.0, 0.0, 0.0); glVertex3f(0.0, 1.0, 0.0); glVertex3f(0.0, 0.0, 1.0); glEnd( ); 13 type of object location of vertex end of object definition

14 Example (GPU based) Put geometric data in an array Send array to GPU Tell GPU to render as triangle 14 vec3 points[3]; points[0] = vec3(0.0, 0.0, 0.0); points[1] = vec3(0.0, 1.0, 0.0); points[2] = vec3(0.0, 0.0, 1.0);

15 Camera Specification Six degrees of freedom –Position of center of lens –Orientation Lens Film size Orientation of film plane 15

16 Materials Optical properties –Absorption: color properties –Scattering Diffuse Specular 16

17 Lights Types –Point sources vs distributed sources –Spot lights –Near and far sources –Color properties 17

18 Vertex Processing Polygon Soup

19 Vertex Processing Define object representations from one coordinate system to another –Object coordinates –World Coordinates –Camera (eye) coordinates –Screen coordinates Enter Linear algebra – Transformations Material properties 19

20 World

21 Primitive Assembly Vertices collected into geometric objects –Line segments –Polygons –Curves and surfaces 21

22 Clipping

23 Rasterization Output are fragments Fragments == potential pixels –Location in frame buffer –Color and depth attributes –Hidden surface removal ? Vertex attributes are interpolated over objects 23

24 Fragment Processing 24


Download ppt "CSE 5542 - Real Time Rendering Week 2. Graphics Processing 2."

Similar presentations


Ads by Google