Presentation is loading. Please wait.

Presentation is loading. Please wait.

1. Cathode Ray Tubes (CRTs) TVs, RGB monitors, o-scopes Flat-Panel Displays PDAs, laptops, calculators, digital watches 2.

Similar presentations


Presentation on theme: "1. Cathode Ray Tubes (CRTs) TVs, RGB monitors, o-scopes Flat-Panel Displays PDAs, laptops, calculators, digital watches 2."— Presentation transcript:

1 1

2 Cathode Ray Tubes (CRTs) TVs, RGB monitors, o-scopes Flat-Panel Displays PDAs, laptops, calculators, digital watches 2

3 3 Electrons are fired from a filament, focused, accelerated, then deflected to a point on the phosphor coating on the inside of the display screen

4 4 Electron beam is scanned along each line segment Capable of displaying continuous lines and very high resolution curves High-end displays capable of 100k lines per refresh

5 Pros ◦ Excellent for line drawings ◦ Generally high resolution Cons ◦ Can not display realistic shaded images ◦ Not capable of color Common Example Oscilloscopes 5

6 6 Electron beam is scanned left-to-right, top-to-bottom Beam retraces to top-left after reaching bottom- right (vertical retrace) Capable of displaying continuous range of intensities at discrete positions High-end displays capable of 4k x 4k @ 120 Hz

7 7 Three electron guns are used, one for each color The guns are aimed through a mask and onto colored phosphors Colored phosphors are arranged in RGB triples dots (delta) – RGB monitors stripes (inline) – TVs, Sony Trinitron

8 Pros ◦ Excellent for varying intensity ◦ Can display shaded images ◦ Color Cons ◦ “Jaggies” Common Example Televisions 8

9 9

10 The human retina is covered in 2 kinds of photoreceptor, rods and cones The fovea, densely packed with cones, is responsible for detailed color vision 10

11 Coordinate system with R, G, B as axes Grayscale axis runs from (0,0,0) to (1,1,1) 11

12 12 CMY color model Coordinate system with C, M, Y as axes; useful for describing color output to hard-copy devices. Grayscale axis runs from (0,0,0) to (1,1,1). Color - substractive process. Y C M Magenta Blue Black Cyan Green Red Yellow

13 13

14  Display composed of discrete, addressable points ◦ picture elements or pixels  Can control intensity of each pixel  Pixels can be composed of RGB triples 14

15 3 channels, 8 bits per channel – 24 bits per pixel Often includes a 4 th, non-display, channel (alpha) used for image composition – 32 bpp 256 intensity levels per channel 2 24 total colors Sometimes combined with a LUT per channel (gamma correction) 15

16 8 bpp Each byte is an index to a LUT (colormap) All 2 24 colors are available to the colormap, but only 2 8 colors are available to the framebuffer Can do animation by swapping colormap entries Multiple apps can cause flashing if they try to use different colormaps at the same time 16

17 16 bpp, 5 bits per primary color Sometimes the extra bit is given to green Limited number of bits per color can lead to noticeable quantization effects (color banding artifacts) and can be worse than index color in certain circumstances 17

18 True-Color 18 Indexed-Color High-Color

19 Single-buffered mode writes pixels directly into active framebuffer memory Partial results are therefore visible This is especially noticeable when trying to do animation 19

20 Double-buffered mode writes pixels into a secondary buffer (back buffer), different from the buffer currently on display (front buffer) When all pixels are written to the secondary buffer, an explicit call is made to swap the front and back buffers The swap is typically done during the display’s vertical retrace period This technique is preferred for interactive graphics 20

21 How much memory is needed for a 1024 x 768 true-color (32 bit) framebuffer: Single-buffered? 21

22 How much memory is needed for a 800 x 600 index-color framebuffer: What is frame buffer size formula? Single-buffered? Please calculate yourself it would be [X * Y * color depth(in bits)] this would give you the the frame buffer size in bits. Example: Say we had a resolution of 1280 x 1024 and a color depth of 4 bits. we would go 1280 * 1024 * 4 to give us 5242880 bits then to get bytes we divide by 8 to get 655360 bytes then to get kilobytes we divide by 1024 (Remember computers are base 2) 640 kilobytes so a computer running at 1280 x 1025 with a color depth of 4 bits requires a frame buffer of 640 kilobytes. 22

23 Most windowing systems: OpenGL framebuffer: 23 x y (0,0) y x

24 Does it matter? No, we just need to be aware of the difference: Where a pixel in the framebuffer will show up on screen? How do we get the pixel address under the mouse pointer? Could some other display library have its framebuffer lay- out match your windowing system? Absolutely. Many do. What if all we never directly displayed our framebuffer, but wrote it out as an image for later display? Virtually all image formats use screen-space coordinates. What if we want to support both? Then we have to know when to invert the y-axis. When would you do it? 24

25 We’ll pick OpenGL’s coordinate system. Where will these points appear on the screen? 1. (0, 0) 2. (5, 7) 3. (8, 3) 25 1 2 3


Download ppt "1. Cathode Ray Tubes (CRTs) TVs, RGB monitors, o-scopes Flat-Panel Displays PDAs, laptops, calculators, digital watches 2."

Similar presentations


Ads by Google