CG Surfaces: Materials, Shading, and Texturing

Similar documents
Programmable Shaders. December 25, RenderMan & Its Shading Language

OpenGl Pipeline. triangles, lines, points, images. Per-vertex ops. Primitive assembly. Texturing. Rasterization. Per-fragment ops.

Computer Graphics (CS 543) Lecture 7b: Intro to lighting, Shading and Materials + Phong Lighting Model

Lecture 10: Shading Languages. Kayvon Fatahalian CMU : Graphics and Imaging Architectures (Fall 2011)

OpenGL Lighting Computer Graphics Spring Frank Palermo

CS130 : Computer Graphics Lecture 8: Lighting and Shading. Tamar Shinar Computer Science & Engineering UC Riverside

Shading Languages. Seminar Computer Graphics. Markus Kummerer

CGDD 4113 Final Review. Chapter 7: Maya Shading and Texturing

Interactive Real-Time Raycasting

TSBK 07! Computer Graphics! Ingemar Ragnemalm, ISY

critical theory Computer Science

Comp 410/510 Computer Graphics. Spring Shading

Overview. Hierarchy. Level of detail hierarchy Texture maps Procedural shading and texturing Texture synthesis and noise.

w Foley, Section16.1 Reading

-=Bui Tuong Phong's Lighting=- University of Utah, but with shaders. Anton Gerdelan Trinity College Dublin

CS230 : Computer Graphics Lighting and Shading. Tamar Shinar Computer Science & Engineering UC Riverside

Computer Graphics (CS 4731) Lecture 16: Lighting, Shading and Materials (Part 1)

Lighting affects appearance

Mia Round Corners Node

Texture. Detail Representation

Illumination and Shading

CIS 665 GPU Programming and Architecture

Advanced Maya Texturing and Lighting

Illumination & Shading

Turn your movie file into the homework folder on the server called Lights, Camera, Action.

Shading I Computer Graphics I, Fall 2008

Advanced Maya e Texturing. and Lighting. Second Edition WILEY PUBLISHING, INC.

LEVEL 1 ANIMATION ACADEMY2010

ECS 175 COMPUTER GRAPHICS. Ken Joy.! Winter 2014

Complex Shading Algorithms

VU Rendering SS Unit 9: Renderman

Texture. Texture Maps

Lighting and Shading Computer Graphics I Lecture 7. Light Sources Phong Illumination Model Normal Vectors [Angel, Ch

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models

B x. Interoperability Chart Version 2011 LEGEND. Perfect compatibility. Data (Converted) compatibility. Emulated (Bake) compatibility.

CSE 167: Introduction to Computer Graphics Lecture #6: Lights. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2016

CPSC 314 LIGHTING AND SHADING

! Pixar RenderMan / REYES. ! Software shaders. ! Pixar Photorealistic RenderMan (PRMan) ! Basically a sophisticated scanline renderer

Rendering and Radiosity. Introduction to Design Media Lecture 4 John Lee

The Special Effects Handbook

Lighting. To do. Course Outline. This Lecture. Continue to work on ray programming assignment Start thinking about final project

Today. Global illumination. Shading. Interactive applications. Rendering pipeline. Computergrafik. Shading Introduction Local shading models

Data passed from a source application is recognized by the destination application, yielding identical results. Data (Converted) compatibility

CS 325 Computer Graphics

CS 5625 Lec 2: Shading Models

Illumination Models & Shading

surface: reflectance transparency, opacity, translucency orientation illumination: location intensity wavelength point-source, diffuse source

CS 498 VR. Lecture 19-4/9/18. go.illinois.edu/vrlect19

CSE 167: Lecture #7: Color and Shading. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

Rendering & Compositing

Illumination in Computer Graphics

CS 464 Review. Review of Computer Graphics for Final Exam

WHY WE NEED SHADING. Suppose we build a model of a sphere using many polygons and color it with glcolor. We get something like.

CHAPTER 1 Graphics Systems and Models 3

Computer Graphics. Illumination and Shading

Illumination & Shading I

Homework #2. Shading, Ray Tracing, and Texture Mapping

Lighting and Shading. Slides: Tamar Shinar, Victor Zordon

Rendering. Illumination Model. Wireframe rendering simple, ambiguous Color filling flat without any 3D information

Surface Detail Maps with Soft Self- Shadowing. Chris Green, VALVE

CS5620 Intro to Computer Graphics

Computer Graphics. Lecture 14 Bump-mapping, Global Illumination (1)

CS 418: Interactive Computer Graphics. Basic Shading in WebGL. Eric Shaffer

Computer Graphics I Lecture 11

CPSC / Illumination and Shading

The Rasterization Pipeline

Raycast Rendering Maya 2013

Photorealistic 3D Rendering for VW in Mobile Devices

CGT520 Lighting. Lighting. T-vertices. Normal vector. Color of an object can be specified 1) Explicitly as a color buffer

Lighting Models. CS116B Chris Pollett Mar 21, 2004.

CS GPU and GPGPU Programming Lecture 7: Shading and Compute APIs 1. Markus Hadwiger, KAUST

Computer Graphics I. Assignment 3

CS 381 Computer Graphics, Fall 2008 Midterm Exam Solutions. The Midterm Exam was given in class on Thursday, October 23, 2008.

CGS 3220 Lecture 4 Shaders, Textures, and Light

Lighting affects appearance

Raytracing CS148 AS3. Due :59pm PDT

Texture Mapping. Images from 3D Creative Magazine

Assignment #2. (Due date: 11/6/2012)

Normal Maps and Cube Maps. What are they and what do they mean?

Textures. Textures. Lesson 9

CS452/552; EE465/505. Lighting & Shading

Introduction to Computer Graphics 7. Shading

CSE 681 Illumination and Phong Shading

Shading II. CITS3003 Graphics & Animation

1.6 Rough Surface Scattering Applications Computer Graphic Shading and Rendering

Objectives. Introduce Phong model Introduce modified Phong model Consider computation of required vectors Discuss polygonal shading.

CS 4620 Program 3: Pipeline

Introduction Rasterization Z-buffering Shading. Graphics 2012/2013, 4th quarter. Lecture 09: graphics pipeline (rasterization and shading)

Shading. Shading = find color values at pixels of screen (when rendering a virtual 3D scene).

Diploma in Graphics Design. Examinations for / Semester 1

Introduction to Visualization and Computer Graphics

Shading. Why we need shading. Scattering. Shading. Objectives

C O M P U T E R G R A P H I C S. Computer Graphics. Three-Dimensional Graphics V. Guoying Zhao 1 / 65

audio, 57 auto-orientation, 215 automatic mapping, 243 average vertices, 239 axis, 3-6, 12, 94, 126, 149, 191, 199, 290

CS 4620 Midterm, March 21, 2017

Shading. Brian Curless CSE 557 Autumn 2017

Lighting and Shading II. Angel and Shreiner: Interactive Computer Graphics 7E Addison-Wesley 2015

Multiple Importance Sampling

Turn on the Lights: Reflectance

Chapter 7 - Light, Materials, Appearance

Transcription:

CG Surfaces: Materials, Shading, and Texturing ART/CSC/FST 220 Spring 2007 From text: 3D for Beginners, Chapter 7 Art of Maya (pages 116-126, 185-194)

Shading and texturing involves materials and their interaction with light. Materials: reaction of a surface to light. Color of the surface. Texture of the surface. Using procedural or image maps to describe these. UV coordinates for placement.

RenderMan Shaders Shaders, in.sl files, described by shading language -- part of RenderMan specification. Good for procedural shading..sl files are compiled using shader (aqsl) command -- creating.slc files..slc files are used by renderer to create look of surface materials. Example: In.rib file: WorldBegin Color [1 0 0] Surface firstshader Sphere 1-1 1 360 WorldEnd.sl file: surface firstshader() { Oi = Os; Ci = Oi*Cs; } Oi is output opacity. Os is input opacity. Ci is output color. Cs is input color.

Maya Shading Networks Networks of nodes, similar to scene graph. Materials, color, etc. created using Hypershade. (Window-->Rendering Editors-->Hypershade) Nodes for material, file, placement, conditions, etc. Pass information between the nodes to make the overall look of surface. Make decisions, perform calculations, etcetera.

Surface reaction to light. Materials (Lambert, Blinn, Phong, matte, plastic, etc.) describe reaction to light. Recall the dot product: A * B = A x B x + A y B y + A z B z = A B cos(theta), where A and B are vectors, and theta is the angle between them. With unit vectors, result of the dot product will be positive (0 to 1 to 0) for angles that range from -90 o to 90 o (and negative for greater angles). Types of light (diffuse, specular, and ambient) are modeled based on this. The surface normal, angle of incidence, and angle of viewing may be considered. Diffuse light depends on the angle between the light source and the surface normal (angle of incidence) as shown in the picture. It spreads more across the surface. Specular light is more intense and centrally located. It depends on the angle of incidence and the angle of viewing.

RenderMan models: (C is the color of light. N is the l surface normal. L is a unit vector pointing toward the light source. H is a unit vector halfway between the viewing direction (I) and the direction of the light source (L).) Diffuse only, top view. Diffuse only, side view. color diffuse(vector N) { C * max(0, N * L) } l color specular(vector N, V ; float roughness) (1/roughness) { C * max(0, N * H) } l Specular also, top view. Specular also, side view. color ambient() - typically approximated by a low-level, constant, nondirectional value set by the user. (Attempting to also model this inter-reflecting light is called global illumination and may be approximated using radiosity or photon-mapping rendering techniques.) Ambient also, side view.?

/* Compute the color of the surface with a simple plastic-like model. * Typical values used are Ka = 1, Kd = 0.8, Ks = 0.5, roughness = 0.1 */ color MaterialPlastic (normal Nf; color basecolor; float Ka, Kd, Ks, roughness;) { extern vector I; return basecolor * (Ka*ambient() + Kd*diffuse(Nf)) + Ks*specular(Nf,-normalize(I),roughness); }

Color of the Surface Simple color, typically defined in RGB. Image texture map (image file). Procedural texture map (algorithmic). Mip-map filters for level of detail. Placement is based on UV coordinates.

Texture of the surface, and other types of mapping. Bump-mapping: simulating rough surfaces with a texture (either image or procedural) applied to shader. Displacement-mapping: actually modifying geometry. (Heavier.) Maps may also be used for color, specular color, transparency, and reflectivity.

Reference materials and the art of seeing as a CG artist. Observe details in materials in daily life: Color, light sources, transparency, luminescence, smoothness, age, corrosion. Look for a story or history, interaction with other objects, imperfections, etc. Collect reference materials for a project. Keep a morgue of images and samples.

Creating your own image-based maps. Useful tools: Photoshop offset filter clone tool Illustrator

Drawing your own,

Advanced shaders. Based on multi-layers of color, bump, transparency, etc. Layered Shader in Maya. Described procedurally as in Renderman or MEL, or created as a shading network. Many are included in the Maya shader library. Other good sources for shaders and textures: www.highend3d.com/maya/shaders www.3dcafe.com