UNC Pixel Planes designed by Prof. Henry Fuchs et al.

Slides:



Advertisements
Similar presentations
Solving Quadratic Equations Using the Zero Product Property
Advertisements

Table of Contents Solving Linear Inequalities Graphically It is assumed you already know how to solve linear inequalities algebraically. A inequality is.
UNC Pixel Planes designed by Prof. Henry Fuchs et al.
1 RTL Example: Video Compression – Sum of Absolute Differences Video is a series of frames (e.g., 30 per second) Most frames similar to previous frame.
CAP4730: Computational Structures in Computer Graphics Visible Surface Determination.
Solving Quadratic Equations by Factoring Algebra I.
Computer Graphics Hardware Acceleration for Embedded Level Systems Brian Murray
COMP322/S2000/L221 Relationship between part, camera, and robot (cont’d) the inverse perspective transformation which is dependent on the focal length.
6.1 Vis_04 Data Visualization Lecture 6 - A Rough Guide to Rendering.
©Larry F. Hodges (modified by Amos Johnson) 1 Shading Models.
University of British Columbia CPSC 414 Computer Graphics © Tamara Munzner 1 Shading Week 5, Wed 1 Oct 2003 recap: lighting shading.
Part I: Basics of Computer Graphics Rendering Polygonal Objects (Read Chapter 1 of Advanced Animation and Rendering Techniques) Chapter
Algebra 1: Solving Equations with variables on BOTH sides.
Factoring Polynomials
10.1 Adding and Subtracting Polynomials
Quadratics       Solve quadratic equations using multiple methods: factoring, graphing, quadratic formula, or square root principle.
The Nature of Exponential Growth Writing growth and decay problems with base e.
Polygon Shading. Assigning color to a shape to make graphical scenes look realistic, or artistic, or whatever effect we’re attempting to achieve But first.
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.
Programmable Pipelines. 2 Objectives Introduce programmable pipelines ­Vertex shaders ­Fragment shaders Introduce shading languages ­Needed to describe.
Computer Vision, Robert Pless Lecture 11 our goal is to understand the process of multi-camera vision. Last time, we studies the “Essential” and “Fundamental”
Algebra 2 Chapter 4 Notes Matrices & Determinants Algebra 2 Chapter 4 Notes Matrices & Determinants.
Chapter 5: Polynomials & Polynomial Functions
Linear Interpolation (for curve 01).  This chapter discusses straight lines and flat surfaces that are defined by points.  The application of these.
Factor: Factor: 1. s 2 r 2 – 4s 4 1. s 2 r 2 – 4s b b 3 c + 18b 2 c b b 3 c + 18b 2 c 2 3. xy + 3x – 2y xy + 3x – 2y -
Vectors Addition is commutative (vi) If vector u is multiplied by a scalar k, then the product ku is a vector in the same direction as u but k times the.
1. Given vectors a, b, and c: Graph: a – b + 2c and 3c – 2a + b 2. Prove that these following vectors a = 3i – 2j + k, b = i – 3j +5k, and c = 2i +j –
Holt CA Course Multiplying Polynomials by Monomials Warm Up Warm Up California Standards California Standards Lesson Presentation Lesson PresentationPreview.
5.1&5.2 Exponents 8 2 =8 8 = = = 16 x 2 = x xx 4 = x x x xBase = x Exponent = 2Exponent = 4 Exponents of 1Zero Exponents Anything to the.
CS 325 Introduction to Computer Graphics 03 / 29 / 2010 Instructor: Michael Eckmann.
CS 445 / 645 Introduction to Computer Graphics Lecture 15 Shading Shading.
FINDING THE SLOPE FROM 2 POINTS Day 91. Learning Target: Students can find the slope of a line from 2 given points.
5-5 Solving Quadratic Equations Objectives:  Solve quadratic equations.
Solving Quadratic Equations Quadratic Equations: Think of other examples?
Solving Equations by Factoring (x+3)(2x-1) (3x-1)(x-2)
Solving Quadratic Equations Using the Zero Product Property March 18, 2014.
GUIDED PRACTICE for Example – – 2 12 – 4 – 6 A = Use a graphing calculator to find the inverse of the matrix A. Check the result by showing.
CS 232: Computer Architecture II Prof. Laxmikant (Sanjay) Kale Floating point arithmetic.
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.
2 3D Viewing Process  3D viewing process MC Model Space Model Transformation Model Transformation WC World Space Viewing Transformation Viewing Transformation.
General Fixed Radix Number Systems Nonredundant Positive radix, ß n digits in digit set Vector:
Lecture 6: Floating Point Number Representation Information Representation: Floating Point Number Representation Lecture # 7.
Schedule Update GP 4 – Tesselation/Cg GDS 4 – Subdiv Surf. GP 5 – Object Modeling Lab: Mini-proj Setup GDS 5 – Maya Modeling MCG 6 – Intersections GP 6.
Want to be talented in Math? Want to be talented in Math? Get help with and be awww.iPracticeMath.com Performer.
Chapter 1 Functions and Their Graphs
Write an expression which represents the perimeter of the rectangle?
- Introduction - Graphics Pipeline
Computer Graphics Chapter 9 Rendering.
The Inverse of a Square Matrix
A complete pipeline for 3D graphics
Factorization by Cross-method
Gouraud Shading with Bilinear Interpolation
What is a Line? x-axis y-axis
Factoring Polynomials
CSC461: Lecture 23 Shading Computation
3D Rendering Pipeline Hidden Surface Removal 3D Primitives
Warm UP Find the GFC of the terms 4b 4b ( ? - ?) Answer: 4b(b - 2 )
Linear Systems.
Solving Quadratic Equations by Factoring March 16, 2015
2 Identities and Factorization
Introduction to Meshes
Shading Polygons Lecture 36 Wed, Nov 28, 2007.
Illumination and Shading
1. Get your bubble lab 2. Flip to the graph
Algebra.
Do not use a calculator for the following!!.
Solving Quadratic Equations by Factoring March 11, 2016
Introduction to Meshes
Presentation transcript:

UNC Pixel Planes designed by Prof. Henry Fuchs et al

Pixel Planes Henry Fuchs’ Idea: build processing into the frame buffer, a processor per pixel. –UNC designs are called enhanced memories, not SIMD processors Enabler was linear expression tree…

Representation of a triangle Oriented Triangles, three vertices A, B, C A triangle is defined by Lines AB, BC, and CA For example, let A = (0, 0), B=(10, 0), C = (2, 5) Line AB = (0,0) + (10, 0)*t Let X = 10t, Y = 0, so Line AB => Y =0; Line BC = (10, 0) + (-8, 5)*t = (10-8t, 5t) Let X = 10 -8t, Y = 5t, so, line BC => -5X-8Y + 50=0 Similarly Line CA = (2, 5) + (-2, -5)*t So, Line CA => 5X - 2Y = 0 Distance from point (U,V) to Line CA is ?

Point to line distance (2D) AX + BY +C = line K Point (U, V) What is the distance from (U,V ) to line K? Answer: (AU + BV +C)/M M = sqrt (A*A + B*B)

Distance with a sign: for a point within a triangle, all minus, or all positive signs for its distance, assuming each line with a normal vector.

Shading with fast evaluation of AX + BY + C = 0 Flat shading: constant color, A = B = 0, C = Color 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 = 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 So, we then broadcast A, B, C into this Pixel-Planes, and the red components for each pixel is done!

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

Implementation

Shading

Hardware design

Pixel-Planes Communications & Multimedia Lab22

Bit operation Binary representation: for easy hardware architecture/realization Right most significant bit, and shift left at each clock! Eg.: 011 equals 6 in Decimal equals equals equals 30 in Decimal (all zeros at the right ends: redundant, for pipeline operations) Communications & Multimedia Lab23