Download presentation

Presentation is loading. Please wait.

Published byLorenzo Steffens Modified over 3 years ago

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

3
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…

8
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 ?

9
Point to line distance (2D) AX + BY +C = 0 ----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)

10
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.

11
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)

12
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!

13
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

14
Three vertices: (0,0) (2,4), and (6,2) with red colors 10, 50, 20 Given point (2,2) inside the triangle, the color is 28! (since s = 0.4, t = 0.2) Goven point (x, y), the color is ? Represented as Ax + By +C, what are the values of (A, B, C)? Hint:A = -2, B= 11 and C= 10

20
Implementation

21
Shading

22
Hardware design

23
Pixel-Planes Communications & Multimedia Lab23

24
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 01100 equals 6 0101 equals 10 01111000 equals 30 in Decimal (all zeros at the right ends: redundant, for pipeline operations) Communications & Multimedia Lab24

25
011 equals 6 in Decimal After left shift one bit, it is 110 (one 0 added to the right), the value is 3! 01100 equals 6, left shift one bit, becomes 11000, value is 3 0101 equals 10, left shift one bit, becomes 1010, value is 5 01111000 equals 30 in Decimal, left shift one bit, becomes 11110000, value is 15.

26
One bit adder For example: 01100 = A 01010= C A+ C = 00001 Carry = 0 Value of A is 6, value of B is 10, A + C = 16 Left shift one bit (one time per clock trigger)

Similar presentations

OK

8.1si31_2001 SI31 Advanced Computer Graphics AGR Lecture 8 Polygon Rendering.

8.1si31_2001 SI31 Advanced Computer Graphics AGR Lecture 8 Polygon Rendering.

© 2018 SlidePlayer.com Inc.

All rights reserved.

Ads by Google

Ppt on abstract art prints Ppt on switching devices inc Ppt on design and analysis of algorithms Ppt on marie curie cancer Chapter 1 introduction to human anatomy and physiology ppt on cells Ppt on personality development presentation Download ppt on gi fi technology Ppt on condition based maintenance conference Ppt on storage devices and its interfacing Ppt on front office management in hospital