Compute the colour at point G – Guraud Shading

Slides:



Advertisements
Similar presentations
1 Linked List Demo Node third = new Node(); third.item = "Carol"; third.next = null; Node second = new Node(); second.item = "Bob"; second.next = third;
Advertisements

What ionic compounds would form between: 1) Ca and S 2) Li and O 3) K and P 4) Mg and N.
CS 440 Database Management Systems Practice problems for normalization.
UNC Pixel Planes designed by Prof. Henry Fuchs et al.
Advanced Computer Architecture Exercise 10 – Routing Deadlock Animation Interesting article about routing:
The Anatomy of a Zip File
Arrays of charges Contents: Basic concept: Sum of forces Linear arrays Example Whiteboards 2-D Arrays Example Whiteboards.
Learn to describe figures by using the terms of geometry.
A) 80 b) 53 c) 13 d) x 2 = : 10 = 3, x 3 = 309.
University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2007 Tamara Munzner Lighting/Shading III Week.
©Larry F. Hodges (modified by Amos Johnson) 1 Shading Models.
Introducing Vectors © T Madas.
1 Computer Graphics Chapter 5 Vector Based Algorithms.
Exam.1 Si23_03 SI23 Introduction to Computer Graphics Revision Lecture.
Solutions to Lecture Examples Directions and Traverse.
Parallel Lines and Proportional Parts By: Jacob Begay.
Chapter 4 sections 1 and 2.  Fig. 1  Not connected  All vertices are even.  Fig. 2  Connected  All vertices are even.
computer
ch46 Vectors by Chtan FYKulai
A Soils generally without limiting chemical or physical properties Ba Deep, highly structured soils with high initial fertility Bb Soils naturally.
Non Linear Arrays of charges Contents: 2-D Arrays Example Whiteboards.
Chemical Reactions A chemical change is any change in which a new substance is formed. Evidence: Release of energy as heat and light, change in colour,
Computing the chromatic number for block intersection graphs of Latin squares Ed Sykes CS 721 project McMaster University, December 2004 Slide 1.
Bellwork, Fri. Sept. 14 Which element is LEAST likely to combine with another element to form a molecule? -Chlorine (Cl), a halogen -Iron (Fe), a metal.
Properties from Algebra
Smooth Shading Gouraud Phong
Computing the Cross Product The formula to compute the cross product is a complex one when vectors are in Cartesian form: if u = [a, b, c] and v = [d,
Komputer Grafik 2 (AK045206) Shading 1/17 Realisme : Shading.
Adding SubtractingMultiplyingDividingMiscellaneous.
AES Encryption FIPS 197, November 26, Bit Block Encryption Key Lengths 128, 192, 256 Number of Rounds Key Length Rounds Block.
Local Illumination and Shading
Aim: Triangle Congruence - SSS Course: Applied Geometry Do Now: Aim: How to prove triangles are congruent using a 2 nd shortcut: SSS.
Geometry: Plane Figures Chapter. point A point marks a location. A A B B line segment the part of the line between 2 points endpoints.
Chi-Cheng Lin, Winona State University CS430 Computer Graphics Vectors Part III Intersections.
Render methods. Contents Levels of rendering Wireframe Plain shadow Gouraud Phong Comparison Gouraud-Phong.
LOOPING IN C. What would be the output of the following program main( ) { int j ; while ( j
基 督 再 來 (一). 經文: 1 你們心裡不要憂愁;你們信神,也當信我。 2 在我父的家裡有許多住處;若是沒有,我就早 已告訴你們了。我去原是為你們預備地去 。 3 我 若去為你們預備了地方,就必再來接你們到我那 裡去,我在 那裡,叫你們也在那裡, ] ( 約 14 : 1-3)
南亚和印度.
CS552: Computer Graphics Lecture 35: Rendering. Recap Illumination Model o Light Source and surface o Effect of multiple light source o Colored lights.
I.Северное Приладожье (Раахе- Ладога), гранитные купола и их обрамление.
Solving Linear Systems Syed Nasrullah
Graph Graphs and graph theory can be used to model:
Career Pictures.
Aim: Full House Grid: 9 Grid Play: Calculate answer & cross it off
Combinations COURSE 3 LESSON 11-3
Make an Organized List and Simulate a Problem
تصنيف التفاعلات الكيميائية
CS 431/636 Advanced Rendering Techniques
Recapping: Vector addition.
Solution to Problem 1 Developed by: Alex J. Ruiz-Torres, Ph.D.
Слайд-дәріс Қарағанды мемлекеттік техникалық университеті
Computing Vertex Normals from Arbitrary Meshes
.. -"""--..J '. / /I/I =---=-- -, _ --, _ = :;:.
Single and Double Replacement Reactions
Similar Right Triangles: Geometric Mean
Shortest path algorithm
Matrices and Matrix Operations
II //II // \ Others Q.
Изразеното в настоящата презентация мнение обвързва единствено автора и не представлява официално становище на Комисията за финансов надзор Данил Джоргов.
I1I1 a 1·1,.,.,,I.,,I · I 1··n I J,-·
AB AC AD AE AF 5 ways If you used AB, then, there would be 4 remaining ODD vertices (C, D, E and F) CD CE CF 3 ways If you used CD, then, there.
Linked List Demo Node third = new Node(); third.item = "Carol";
2.5 Reasoning Using Properties from Algebra
Standard: EE1.,EE2b., and EE2c.
Adding with 9’s.
Adding with 10’s.
Lecture 04 Normalization.
Adding ____ + 10.
. '. '. I;.,, - - "!' - -·-·,Ii '.....,,......, -,
Presentation transcript:

Compute the colour at point G – Guraud Shading (-1, 1) (1, 1) A B F E y = 0 G=(-1, 0) D C (-2, -1) (2, -1) RGB Colours: CA = (100, 200, 100) CB = (50, 100, 200) CC= (100, 100, 200) CD = (200, 100, 50)

Compute the colour at point G – Guraud Shading I(t) I(0) t Line AD x = -1 –t y = 1 –2t y=0 -> t = ½ -> x = -1.5 E = (0, -1.5) Linear interpolate the colours I = I(0) + (I(1) – I(0))t I(1/2) = (I(0) + I(1))/2 Colour at point E CE = (CA + CD)/2 = (150, 150, 75)

Compute the colour at point G – Guraud Shading I(t) I(0) t Line BC x = 1 +t y = 1 –2t y=0 -> t = ½ -> x = 1.5 E = (0, 1.5) Linear interpolate the colours I = I(0) + (I(1) – I(0))t I(1/2) = (I(0) + I(1))/2 Colour at point F CE = (CB + CC)/2 = (75, 100, 200)

Compute the colour at point G – Guraud Shading I(t) I(0) t Line EF x = -1.5+3t y = 0 X=-1 -> t = 1/6 Linear interpolate the colours I = I(0) + (I(1) – I(0))t I(1/6) = I(0)+(I(1)-I(0))/6 Colour at point G CE = (5CE + CF)/6 = (138, 142,96)

Compute the normal vector at point G – Phong shading (-1, 1) (1, 1) A B F E y = 0 G=(-1, 0) D C (-2, -1) (2, -1) Normal Vectors NA = (1, 2, 3) NB = (1, 0, 4) NC= (0, 1, 2) ND = (2, 1, 3)

Compute the normal vector at point G – Phong shading NG = (5NE+NF)/6 = (1.56, 1.56, 3) NE = (NA + ND)/2 = (1.5, 1.5, 3) NF = (NB + NC)/2 = (0.5, 0.5, 3)