blender 04

38
Blender Shading & Lighting Filipe Pacheco 1

Upload: ana-maria

Post on 09-Dec-2015

24 views

Category:

Documents


7 download

DESCRIPTION

Blender

TRANSCRIPT

Page 1: Blender 04

BlenderShading & Lighting

Filipe Pacheco 1

Page 2: Blender 04

Blender Shading & Lighting

• Go to the tutorial at• http://cgcookie.com/blender/lessons/5-shading-and-lighting/

2Filipe Pacheco

Find out more at: http://www.blender.org/manual/render/cycles/lamps.html

Note: The Node editor behavior is slightly changed in newer versions of Blender

and… http://www.blender.org/manual/render/cycles/nodes/index.html

Page 3: Blender 04

1st Tutorial Key Points

• Using the Cycles Renderer in the 3D view window

Filipe Pacheco 3

Select the Render Engine

The Render Properties is specific for each render engine

Page 4: Blender 04

1st Tutorial Key Points

• Using the Cycles Renderer in the 3D view window

Filipe Pacheco 4

Viewport shading

Default is: “Solid”

Z key switches to “Solid” / “Wireframe”

Page 5: Blender 04

1st Tutorial Key Points

• Create and Adjust basic Lamps

Filipe Pacheco 5

Use the “Add” tab in the toolbox Use the “Shift-A” shortcut

Page 6: Blender 04

1st Tutorial Key Points

• Create and Adjust basic Lamps

Filipe Pacheco 6

Emits light to all directions from a point

Emits light in a single-direction (parallel rays)The position (XYZ) of the light is irrelevant

Emits light in a cone (like a spot light)

Not supported in Cycles Render Engine

Emits light from a square or rectangular area

Page 7: Blender 04

1st Tutorial Key Points

• Create and Adjust basic Lamps

Filipe Pacheco 7

Light Parameters

Strength

Color

Cast Shadow

If we select the Sun lamp…

Page 8: Blender 04

1st Tutorial Key Points

• Create and Adjust basic Materials

Filipe Pacheco 8

Material Parameters

Add New Material

If we select another object…

Page 9: Blender 04

1st Tutorial Key Points

• Create and Adjust basic Materials

Filipe Pacheco 9

Material Name

Material Slots

Preview Window

Tip: collapse if not in use to save memory / processor usage

Page 10: Blender 04

1st Tutorial Key Points

• Create and Adjust basic Materials

Filipe Pacheco 10

Change the surface type to simulate different materials like glass, velvet, translucent, gloss and so on…

Color of the surface

Change “glossiness”, etc…

Page 11: Blender 04

1st Tutorial Key Points

• Create and Adjust basic Materials

Filipe Pacheco 11

The “Glossy BSDF” has a new default distribution: “GGX” so the Roughness parameter value is slightly different from the tutorial.(or you can select the original Beckmann)

Select the “Glossy BSDF”

Adjust the Color & Roughness

Page 12: Blender 04

1st Tutorial Key Points

• The Node Editor

Filipe Pacheco 12

Click on the hatch area and drag down to create a new

window

Page 13: Blender 04

1st Tutorial Key Points

• The Node Editor

Filipe Pacheco 13

Now select the new window type

Page 14: Blender 04

1st Tutorial Key Points

• The Node Editor

Filipe Pacheco 14

The final material output

The “Glossy BSDF” node

BSDF:Bidirectional ScatteringDistribution Function

Page 15: Blender 04

1st Tutorial Key Points

• The Node Editor

Filipe Pacheco 15

Add a new “Difuse BDSF” shader.

Use the menu, or press Shift-A

Position the new node with the mouse, below the existing “Glossy BDSF”.

Note: you may need to zoom out to see the new node

Page 16: Blender 04

1st Tutorial Key Points

• The Node Editor

Filipe Pacheco 16

Click and drag to create connections

Note: in newer versions of the Node editor, if a connection already exists to the new connector, then the old connection is simply removed if there is no significant alternative (and not assigned to any connector like in previous versions).

1

2

Page 17: Blender 04

1st Tutorial Key Points

• The Node Editor

Filipe Pacheco 17

Note: to remove a connection, drag one endpoint away from the connector

Page 18: Blender 04

1st Tutorial Key Points• The Node Editor

Filipe Pacheco 18

Use the “Mix Shader”

Page 19: Blender 04

1st Tutorial Key Points• The Node Editor

Filipe Pacheco 19

Use the “Checker Texture”

Page 20: Blender 04

1st Tutorial Key Points

• The Node Editor

Filipe Pacheco 20

The connector colors

Shader

Color

Number

Vector

Page 21: Blender 04

1st Tutorial Key Points• The Node Editor

Filipe Pacheco 21

Adjust parameters

100% Black

Light Blue

Page 22: Blender 04

1st Tutorial Key Points

• The Node Editor

Filipe Pacheco 22

Create a new material

Use Nodes

Cube

Page 23: Blender 04

1st Tutorial Key Points• The Node Editor

Filipe Pacheco 23

Delete a node

1. Click to select the “Difuse BSDF” node

2. Press “X” or “Delete”

Page 24: Blender 04

1st Tutorial Key Points• The Node Editor

Filipe Pacheco 24

Add “Glass BDSF” nodeand connect it.

Page 25: Blender 04

1st Tutorial Key Points

• That’s it for the first tutorial

Filipe Pacheco 25

Page 26: Blender 04

Blender Shading & Lighting

• Go to the tutorial at• http://www.blenderguru.com/videos/the-secrets-of-realistic-texturing/

For this tutorial you can use the (very) low-resolution version of the texture:

http://www.cgtextures.com/thumbnails/textures/Floors/Streets/FloorStreets0072_1_preview.jpg

Or the alternative file available at Moodle (see next slide)

26Filipe Pacheco

Tip: don’t forget to use the Cycles Renderer in this tutorial!

Page 27: Blender 04

Blender Shading & Lighting

Alternative file available at Moodle.

27Filipe Pacheco

https://moodle.isep.ipp.pt/mod/resource/view.php?id=24850

Page 28: Blender 04

Blender Shading & Lighting

The tutorial is based on the (paid) CrazyBump software available for Windows and Mac.

http://www.crazybump.com/

But there are alternatives:

One is the Free and Open Source AwesomeBump that relies on GPU processing, available for Windows, Mac and Linux:

https://github.com/kmkolasinski/AwesomeBump

28Filipe Pacheco

Page 29: Blender 04

2nd Tutorial Key Points

• Basic Texture: Color Map / Diffuse Map

Filipe Pacheco 29

Looks like printed and glued to a wall.

Wrong reflections Wrong shadows

Page 30: Blender 04

2nd Tutorial Key Points

• Basic Texture: Color Map / Diffuse Map

Filipe Pacheco 30

Page 31: Blender 04

2nd Tutorial Key Points

• Nice Textures: combine 5 maps

Filipe Pacheco 31

NormalSpecularityOcclusionDisplacementDifuse

Crazy Bump can create these maps for you

Page 32: Blender 04

2nd Tutorial Key Points

• Normal Map

Filipe Pacheco 32

Page 33: Blender 04

2nd Tutorial Key Points

• Displacement Modifier

Filipe Pacheco 33

Strength: 0.100

Strength: 0.015

In newer versions of Blender the default is Image Texture for the Displacement Modifier

Page 34: Blender 04

2nd Tutorial Key Points

• Specular / Glossy

Filipe Pacheco 34

Mix Factor: 0.50

Mix Factor: 0.98

Page 35: Blender 04

2nd Tutorial Key Points

• Occlusion

Filipe Pacheco 35

Mult Factor: 0

Mult Factor: 1

Page 36: Blender 04

Things to check out

• Make a “frosty” cube

• Try the other procedural textures & import other images, eg:• http://craziwolf.deviantart.com/art/16Free-Premium-Seamless-

Ground-Textures-1024X1024-300739637

• http://www.creattor.com/texturespatterns/various-digital-tileable-textures-2670

• Try out the other Lamps, including correct position/direction and other parameters (e.g. Size for the Spot lamp)

Filipe Pacheco 36

Remember: the “Hemi” lamp it’s not supported in Cycles Render

Page 37: Blender 04

Basic Checklist

• Using the Cycles Renderer in the 3D view window

• Create and Adjust basic Lamps

• Create and Adjust basic Materials

• Using Node Editor for materials & lamps

• Using multiple image files to create a realistic texture

37Filipe Pacheco

Page 38: Blender 04

Extended Checklist

• Explore advanced materials and lamps features

• Texture Mapping

• Volumetric Lighting

38Filipe Pacheco