Gouraud Shading with Bilinear Interpolation

Slides:



Advertisements
Similar presentations
3.3: Graphing and Solving Systems of Linear Inequalities Intro: Systems of inequalities are similar to systems of equations. A solution is still an ordered.
Advertisements

Linear Inequalities in 2 Variables
U1B L2 Reviewing Linear Functions
UNC Pixel Planes designed by Prof. Henry Fuchs et al.
Solving Equations = 4x – 5(6x – 10) -132 = 4x – 30x = -26x = -26x 7 = x.
Computação Gráfica Coordenadas baricêntricas. Interp. shading for ray tracing Suppose we know colors or normals at vertices –How do we compute the color/normal.
Ground Speed of Plane. Solving Problems Using Vectors A pilot wants to fly on a bearing of 69.2°. By flying due east, he finds that a 50-mph wind, blowing.
EXAMPLE 2 Solve a matrix equation SOLUTION Begin by finding the inverse of A = Solve the matrix equation AX = B for the 2 × 2 matrix X. 2 –7 –1.
Lines that have a positive slope ‘rise’ through the x-y plane.
9.1 Square Roots and the Pythagorean Theorem
6. 5 Graphing Linear Inequalities in Two Variables 7
CS 445 / 645 Introduction to Computer Graphics Lecture 18 Shading Shading.
Shading (introduction to rendering). Rendering  We know how to specify the geometry but how is the color calculated.
UNC Pixel Planes designed by Prof. Henry Fuchs et al.
What is a Line? A line is the set of points forming a straight path on a plane The slant (slope) between any two points on a line is always equal A line.
Lesson 2.7 AIM: How to find the slope and equation of a line using two points.
Vector Space o Vector has a direction and a magnitude, not location o Vectors can be defined by their I, j, k components o Point (position vector) is a.
Smooth Shading Gouraud Phong
CS 325 Introduction to Computer Graphics 03 / 29 / 2010 Instructor: Michael Eckmann.
Multiple Light Source Optical Flow Multiple Light Source Optical Flow Robert J. Woodham ICCV’90.
Domain x Range y Domain x Range y Domain x Range y n n n1234n n n0123n n + 5 PW page 14 questions.
= 5 = 2 = 4 = 3 How could I make 13 from these shapes? How could I make 19 from these shapes? STARTER.
Specular Reflection Lecture 27 Mon, Nov 10, 2003.
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
SOLUTION EXAMPLE 3 Write an equation of a line Write an equation of the specified line. The y- coordinate of the given point on the blue line is –4. This.
Introduction to Meshes Lecture 22 Mon, Oct 20, 2003.
Graphing Linear Equations 4.2 Objective 1 – Graph a linear equation using a table or a list of values Objective 2 – Graph horizontal or vertical lines.
1.1 The row picture of a linear system with 3 variables.
A Mathematics Review Unit 1 Presentation 2. Why Review?  Mathematics are a very important part of Physics  Graphing, Trigonometry, and Algebraic concepts.
Projectile Motion.
2 3D Viewing Process  3D viewing process MC Model Space Model Transformation Model Transformation WC World Space Viewing Transformation Viewing Transformation.
Q. A quadratic equation is An equation with 1 solution An equation with 2 solutions An equation with 0 solutions An equation with 3 solutions.
 How do I solve a system of Linear equations using the graphing method?
Unit Vectors AP Physics.
Extras Qs Ex 1: Two cars are travelling on intersecting roads. The first car is travelling northeast at 35 km/h. The second car begins 7 km north of the.
Do Now: I want to drop a 25 gram marble on top of an ant that will have a vertical displacement “h”. Assuming it was dropped from rest, write an expression.
Solve a literal equation
A complete pipeline for 3D graphics
Graphing Linear Inequalities
3-2 Graphs of Linear Equations in 2 Variables
Sullivan Algebra and Trigonometry: Section 2.2
Computer Vision Lecture 4: Color
3.3: Graphing and Solving Systems of Linear Inequalities
CSC461: Lecture 23 Shading Computation
Linear Systems.
Name: _______________________________
Solving Two-Step Equations
/s Fig. P3.18, p.72.
3-5 & 3-6 Lines in the Coordinate Plane & Slopes of Parallel and Perpendicular Lines.
3.3: Graphing and Solving Systems of Linear Inequalities
3.3: Graphing and Solving Systems of Linear Inequalities
Here are four triangles. What do all of these triangles have in common
Introduction to Meshes
CSC418 Computer Graphics Shading Color.
Shading Polygons Lecture 36 Wed, Nov 28, 2007.
Using Slope Intercept Form to Graph Day 2
What Color is it?.
Who Wants to be an Equationaire?. Who Wants to be an Equationaire?
Answer Grid – 3 & 4 Step Equations
Illumination and Shading
Use power series to solve the differential equation. y ' = 7xy
Section Graphing Linear Equations in Three Variables
Represents a given point on the line.
6.4 Solving Compound Inequalities
Question 12.
Question 37.
Using Slope Intercept Form to Graph Day 2
Lighting Calculations
4.6 Cramer’s rule.
Introduction to Meshes
Presentation transcript:

Gouraud Shading with Bilinear Interpolation Gouraud shading (smooth shading): color interpolation, for example, Triangle with three vertices (x1, y1), (x2, y2), (x3, y3), each with red components R1, R2, R3 color is represented as (Red, Green , Blue) Assuming a plane (in 3D) with vertices (x1, y1, R1), (X2, Y2, R2), and (X3, y3, R3)

Gouraud shading Vector equation of the plane is (x,y) = s (x2-x1, y2 – y1) + t(x3-x1, y3-y1) + (x1, y1) solved for (s, t) , then s = A1x + B1y +C1, t = A2x + B2y +C2 So, given point (x,y) in this plane, what is its color? Answer: color of (x,y) = R1+ s (R2-R1) + t (R3-R1), or color = Ax + By +C, where A = A1 (R2-R1)+ A2 (R3-R1) B = B1(R2-R1) + B2 (R3-R1) C = C1(R2-R1) + C2(R3-R1) + R1

How is the color calculated? Since, (x,y) = s (x2-x1, y2 – y1) + t(x3-x1, y3-y1) + (x1, y1) Therefore , (x,y, R) = s (x2-x1, y2 – y1, R2-R1) + t(x3-x1, y3-y1, R3-R1) + (x1, y1, R1) or, color R = s (R2-R1) + t (R3-R1) + R1