shading. what is shading? assigning of a color to a pixel in the final image. so, everything in...

32
Shading

Upload: piers-armstrong

Post on 12-Jan-2016

219 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

Shading

Page 2: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

What is Shading?

• Assigning of a color to a pixel in the final image.

• So, everything in shading is about how to select and combine colors to get the look you want.

Page 3: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

What impacts shading?

• The lights in a scene.

• The geometry of objects in a scene.

• The normals of objects.

• The shader properties of an object:– Color,transparency, emissivity, etc…

• The rendering algorithm– Eg ray-tracing versus scan-line rendering.

Page 4: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

The Original CG Shading Techniques

• Faceted Shading

• Smooth Shading

• Specular Shading

Page 5: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

What is a Normal?

Plane

Normal

Light

Reflected Light

Plane

Normal Reflected Light

Eyepoint

Eyepoint

Page 6: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

Faceted/Flat Shading

Page 7: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

Smooth/Gouraud Shading

Page 8: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

Specular/Phong Shading

Page 9: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

Next: Surface Shaders

• A grouping of all variables that influence the rendered color of a 3D object.

• Surface finish

• Simulated material.

• Surface libraries/material databases.

• Surface Layers

• RenderMan Shading

Page 10: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

Surface Layers

• Combine multiple shaders for astonishing effects.

• Build up shades like a painter.

Page 11: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

Renderman Shaders

• Renderman is a procedural shader language with tremendous versatility.

• All major feature animated feature films use Renderman as part of production.

• Like programming in C code.

• You write Shaders for Renderman like you would write C code for computers.

Page 12: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

Image Mapping

• Generally referred to as Texture Mapping.

• 2D Texture Mapping

• Creating the map

• Maps for real-time

• Maps for feature film

Page 13: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

1 Map Many Attributes

Page 14: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

1 Map Many Parts

Page 15: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

Image Mapping in Games

Page 16: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

Image Mapping in Film

Page 17: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

Projection Methods

Page 18: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

Projection Methods

Page 19: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

Positioning the Map

Page 20: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

Map Blending

Page 21: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

Surface Reflectivity

• Ambient Reflection

• Diffuse Reflection

• Specular Reflection

• Reflection maps

• Environment Maps

• Glow/Incandescence

Page 22: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

Surface Reflectivity

Page 23: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

Reflection/Environment Maps

Page 24: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

Color Maps

Page 25: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

Surface Texture/Roughness

• Visual textures – like brick wallpaper.

• Spatial textures/roughness – mod geometry.

• Bump maps – modify surface normals.

• Displacement maps

• 2D Procedural `Texture’ maps.

• 3D Procedural `Texture’ maps.

Page 26: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get
Page 27: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get
Page 28: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get
Page 29: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

Bump Map Example

Page 30: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get
Page 31: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

2d Procedural texture maps

Page 32: Shading. What is Shading? Assigning of a color to a pixel in the final image. So, everything in shading is about how to select and combine colors to get

3D Procedural texture maps