High detail models, depth of field, soft shadows, reflective surfaces. (Image created by Toxic...

19
high detail models, depth of field, soft shadows, reflective surfaces. (Image created by Toxic Studios using Brazil R/S)

Transcript of High detail models, depth of field, soft shadows, reflective surfaces. (Image created by Toxic...

Page 1: High detail models, depth of field, soft shadows, reflective surfaces. (Image created by Toxic Studios using Brazil R/S)

high detail models, depth of field, soft shadows, reflective surfaces.(Image created by Toxic Studios using Brazil R/S)

Page 2: High detail models, depth of field, soft shadows, reflective surfaces. (Image created by Toxic Studios using Brazil R/S)

refraction, reflection

index of refraction varies with light wavelength creating rainbow effects.

+ 30 minutes render time per frame. (From the Brazil R/S Gallery)

Page 3: High detail models, depth of field, soft shadows, reflective surfaces. (Image created by Toxic Studios using Brazil R/S)

Castle Wolfenstien (1992)

• The first popular 3D first person shooter.

• Was a 2D ray caster combined with vertical scan line rasterization.

• Written by John Carmark (who later created the Doom, and Quake series.)

Page 4: High detail models, depth of field, soft shadows, reflective surfaces. (Image created by Toxic Studios using Brazil R/S)

Descent and Descent II (1994-95)

• One of the first popular true 3D textured polygon-based game.

• One of the first games to supported 3D graphics accelerators.

Page 5: High detail models, depth of field, soft shadows, reflective surfaces. (Image created by Toxic Studios using Brazil R/S)

Lara Croft & Quake (1996)

• The first 2 major 3D textured polygon-based first person shooters.

• 3D graphics accelerators became popular

Page 6: High detail models, depth of field, soft shadows, reflective surfaces. (Image created by Toxic Studios using Brazil R/S)

Doom III & Half-Life 2 (2004)

• New GPUs along with Cg/HLSL make the programmable pipeline usable.

• Absolutely beautiful effects.

Page 7: High detail models, depth of field, soft shadows, reflective surfaces. (Image created by Toxic Studios using Brazil R/S)

Viewing in 3D

Page 8: High detail models, depth of field, soft shadows, reflective surfaces. (Image created by Toxic Studios using Brazil R/S)

Projections

• Projections: key terms…– Projection from 3D to 2D is defined by straight

projection rays (projectors) emanating from the 'center of projection', passing through each point of the object, and intersecting the 'projection plane' to form a projection.

Page 9: High detail models, depth of field, soft shadows, reflective surfaces. (Image created by Toxic Studios using Brazil R/S)

Perspective Projections• 2 different examples of a one-point

perspective projection of a cube.(note: x and y parallel lines do not converge)

Page 10: High detail models, depth of field, soft shadows, reflective surfaces. (Image created by Toxic Studios using Brazil R/S)

Objects

• Made up of sets of polygons– Which are made up of lines– Which are made of points– No curved surfaces

• Just a “shell”– Not a solid object

+Y

+Z +X

Polygons

Page 11: High detail models, depth of field, soft shadows, reflective surfaces. (Image created by Toxic Studios using Brazil R/S)

Simple 3D – Introduction

• *Everything* rendered is composed of vertices and triangles.

• You can use a lot of tiny polygons giving the impression of curved surfaces.

• Multiple layers of semi-transparent polygons can create smoke or fire effects.

Page 12: High detail models, depth of field, soft shadows, reflective surfaces. (Image created by Toxic Studios using Brazil R/S)

Simple Shading – Wireframe

Page 13: High detail models, depth of field, soft shadows, reflective surfaces. (Image created by Toxic Studios using Brazil R/S)

Simple Shading – Flat / Ambient

Page 14: High detail models, depth of field, soft shadows, reflective surfaces. (Image created by Toxic Studios using Brazil R/S)

Simple Shading – Flat / Amb. + Diff.

Page 15: High detail models, depth of field, soft shadows, reflective surfaces. (Image created by Toxic Studios using Brazil R/S)

Simple Shading – Gouraud / Amb. + Diff.

Page 16: High detail models, depth of field, soft shadows, reflective surfaces. (Image created by Toxic Studios using Brazil R/S)

Simple Shading – Gouraud / Amb. + Diff. + Spec.

Page 17: High detail models, depth of field, soft shadows, reflective surfaces. (Image created by Toxic Studios using Brazil R/S)

Simple Shading – Phong / Amb. + Diff. + Spec.

Page 18: High detail models, depth of field, soft shadows, reflective surfaces. (Image created by Toxic Studios using Brazil R/S)

Simple Shading – Phong

• Calculate at each pixel of the triangle.• Uses the interpolated surface normal, incoming

light direction and the viewer direction to compute the specular, diffuse components.

Page 19: High detail models, depth of field, soft shadows, reflective surfaces. (Image created by Toxic Studios using Brazil R/S)

Simple Textures - Introduction

• It is computationally more efficient to represent small details via textures (colors, bump maps, normal maps, etc.) than via adding more triangles.