cgdd 4113 polygonal texturing. uv coordinates (aka texture coordinates) (0, 0)(1, 0) (1, 1)(0, 1)...

25
CGDD 4113 POLYGONAL TEXTURING

Upload: stanley-bridges

Post on 14-Dec-2015

228 views

Category:

Documents


0 download

TRANSCRIPT

CGDD 4113

POLYGONAL TEXTURING

UV COORDINATES(AKA TEXTURE COORDINATES)

(0, 0) (1, 0)

(1, 1)(0, 1)(1, 1)(0, 1)

(0, 0) (1, 0)

Polygon to betextured

UV COORDINATES(AKA TEXTURE COORDINATES)

(0, 0) (1, 0)

(1, 1)(0, 1)(1, 1)(0, 1)

(0, 0) (1, 0)

UV COORDINATES(AKA TEXTURE COORDINATES)

(0, 0) (1, 0)

(1, 1)(0, 1)(1, 1)(0, 1)

(0, 0) (1, 0)

UV COORDINATES(AKA TEXTURE COORDINATES)

(0, 0) (1, 0)

(1, 1)(0, 1)(1, 1)(0, 1)

(0, 0) (1, 0)

WHAT HAPPENS NOW?

(0, 0) (1, 0)

(1, 1)(0, 1)(4, 4)(0, 4)

(0, 0) (4, 0)

Polygon to betextured

WHAT HAPPENS NOW?

(0, 0) (1, 0)

(1, 1)(0, 1)(4, 4)(0, 4)

(0, 0) (4, 0)

Polygon to betextured

WHAT ABOUT NOW?

(0, 0) (1, 0)

(1, 1)(0, 1)

BASIC PROBLEM• How to map rectangular images to non-rectangular objects

• Usually, there’s built-in:

• Cube

• Cylinder

• Sphere

• Flat

• What about our character? How do we map that?

THE UV TEXTURE EDITOR(WINDOW -> UV TEXTURE EDITOR)

• Select the dog, then open the editor

ADD A BLINN SHADER+CHECKERBOARD

PLANAR MAPPING(POLYGON MENU, CREATE UVS->PLANAR MAPPING)

• Project from the side, not front!

THE NOSE• Select faces, then Create UVs->Planar Mapping->□ (from Z-axis)

• In UV Editor, RMB and select UV, then select the entire nose

THE ARMS• Start by selecting the faces from *both* hands

• Select the faces on the arms using SHIFT+>

• Follow instructions closely – lots of options!

MY FINAL UV MAP

PAINT YER DOGGIE• Under the “Rendering” set of menus

(Texturing->3D Paint Tool->□)

• Make sure the Attribute to Paint is set to Color

• Assign/Edit Textures:

FLOOD PAINT(AND THEN SET ERASE IMAGE)

DIRECTLY PAINT ON THE GEOMETRY• Turn on File Textures->Extend Seam Color

• Optionally change Radius(U)

• Set color to beige and then paint!

• Probably want Stroke->Reflection on too!

• You should see two brushes…

PAINT EFFECTS• In the Brush section, choose Paint Effects, then the GetBrush icon

CURRENT DOG

EYEBALLS• Use HyperGraph to create a Phong shader

• Use a Ramp for the eyeColor

• Make it a U Ramp

Click here to make a newgradient point

ATTEMPT #1

ATTEMPT #2

FINAL DOG