Presentation is loading. Please wait.

Presentation is loading. Please wait.

Introduction to Computer Graphics CS 445 / 645 Lecture 2 General Graphics Systems Lecture 2 General Graphics Systems Daniel Rozin, Wooden Mirror (1999)

Similar presentations


Presentation on theme: "Introduction to Computer Graphics CS 445 / 645 Lecture 2 General Graphics Systems Lecture 2 General Graphics Systems Daniel Rozin, Wooden Mirror (1999)"— Presentation transcript:

1 Introduction to Computer Graphics CS 445 / 645 Lecture 2 General Graphics Systems Lecture 2 General Graphics Systems Daniel Rozin, Wooden Mirror (1999)

2 Announcement Class web site is upClass web site is up Overview – Read Chapter 2 Display devicesDisplay devices Graphics hardwareGraphics hardware Input devicesInput devices Graphics SoftwareGraphics SoftwareAnnouncement Class web site is upClass web site is up Overview – Read Chapter 2 Display devicesDisplay devices Graphics hardwareGraphics hardware Input devicesInput devices Graphics SoftwareGraphics Software

3 Display technologies Cathode Ray Tubes (CRTs) Most common display device todayMost common display device today Evacuated glass bottleEvacuated glass bottle Extremely high voltageExtremely high voltage Cathode Ray Tubes (CRTs) Most common display device todayMost common display device today Evacuated glass bottleEvacuated glass bottle Extremely high voltageExtremely high voltage

4 CRT details Heating element (filament)Heating element (filament) Electrons pulled towards anode focusing cylinderElectrons pulled towards anode focusing cylinder Vertical and horizontal deflection platesVertical and horizontal deflection plates Beam strikes phosphor coating on front of tubeBeam strikes phosphor coating on front of tube Heating element (filament)Heating element (filament) Electrons pulled towards anode focusing cylinderElectrons pulled towards anode focusing cylinder Vertical and horizontal deflection platesVertical and horizontal deflection plates Beam strikes phosphor coating on front of tubeBeam strikes phosphor coating on front of tube

5 Electron gun Contains a filament that, when heated, emits a stream of electrons Electrons are focused with an electromagnet into a sharp beam and directed to a specific point of the face of the picture tube The front surface of the picture tube is coated with small phospher dots When the beam hits a phospher dot it glows with a brightness proportional to the strength of the beam and how long it is hit Contains a filament that, when heated, emits a stream of electrons Electrons are focused with an electromagnet into a sharp beam and directed to a specific point of the face of the picture tube The front surface of the picture tube is coated with small phospher dots When the beam hits a phospher dot it glows with a brightness proportional to the strength of the beam and how long it is hit

6 CRT characteristics What’s the largest (diagonal) CRT you’ve seen? Why is that the largest?Why is that the largest? –Evacuated tube == massive glass –Symmetrical electron paths (corners vs. center) How might one measure CRT capabilities? Size of tubeSize of tube Brightness of phosphers vs. darkness of tubeBrightness of phosphers vs. darkness of tube Speed of electron gunSpeed of electron gun Width of electron beamWidth of electron beam Pixels?Pixels? What’s the largest (diagonal) CRT you’ve seen? Why is that the largest?Why is that the largest? –Evacuated tube == massive glass –Symmetrical electron paths (corners vs. center) How might one measure CRT capabilities? Size of tubeSize of tube Brightness of phosphers vs. darkness of tubeBrightness of phosphers vs. darkness of tube Speed of electron gunSpeed of electron gun Width of electron beamWidth of electron beam Pixels?Pixels?

7 Display technologies: CRTs Vector Displays Anybody remember Battlezone? Tempest?Anybody remember Battlezone? Tempest? Vector Displays Anybody remember Battlezone? Tempest?Anybody remember Battlezone? Tempest?

8 Display technologies: CRTs Vector Displays Early computer displays: basically an oscilloscopeEarly computer displays: basically an oscilloscope Control X,Y with vertical/horizontal plate voltageControl X,Y with vertical/horizontal plate voltage Often used intensity as Z (close things were brighter)Often used intensity as Z (close things were brighter) Name two disadvantages Just does wireframe Just does wireframe Complex scenes cause visible flicker Complex scenes cause visible flicker Vector Displays Early computer displays: basically an oscilloscopeEarly computer displays: basically an oscilloscope Control X,Y with vertical/horizontal plate voltageControl X,Y with vertical/horizontal plate voltage Often used intensity as Z (close things were brighter)Often used intensity as Z (close things were brighter) Name two disadvantages Just does wireframe Just does wireframe Complex scenes cause visible flicker Complex scenes cause visible flicker

9 Display technologies: CRTs Raster Displays Raster: A rectangular array of points or dotsRaster: A rectangular array of points or dots Pixel: One dot or picture element of the rasterPixel: One dot or picture element of the raster Scan line: A row of pixelsScan line: A row of pixels Raster Displays Raster: A rectangular array of points or dotsRaster: A rectangular array of points or dots Pixel: One dot or picture element of the rasterPixel: One dot or picture element of the raster Scan line: A row of pixelsScan line: A row of pixels

10 Display technologies: CRTs Raster Displays Black and white television: an oscilloscope with a fixed scan pattern: left to right, top to bottomBlack and white television: an oscilloscope with a fixed scan pattern: left to right, top to bottom –As beam sweeps across entire face of CRT, beam intensity changes to reflect brightness Analog signal vs. digital displayAnalog signal vs. digital display Raster Displays Black and white television: an oscilloscope with a fixed scan pattern: left to right, top to bottomBlack and white television: an oscilloscope with a fixed scan pattern: left to right, top to bottom –As beam sweeps across entire face of CRT, beam intensity changes to reflect brightness Analog signal vs. digital displayAnalog signal vs. digital display

11 Display technologies: CRT Can a computer display work like a black and white TV? Must synchronizeMust synchronize –Your program makes decisions about the intensity signal at the pace of the CPU… –The screen is “painted” at the pace of the electron gun scanning the raster Solution: special memory to buffer image with scan-out synchronous to the raster. We call this the framebuffer.Solution: special memory to buffer image with scan-out synchronous to the raster. We call this the framebuffer. Digital description to analog signal to digital displayDigital description to analog signal to digital display Can a computer display work like a black and white TV? Must synchronizeMust synchronize –Your program makes decisions about the intensity signal at the pace of the CPU… –The screen is “painted” at the pace of the electron gun scanning the raster Solution: special memory to buffer image with scan-out synchronous to the raster. We call this the framebuffer.Solution: special memory to buffer image with scan-out synchronous to the raster. We call this the framebuffer. Digital description to analog signal to digital displayDigital description to analog signal to digital display

12 Display Technologies: CRTs Phosphers Flourescence: Light emitted while the phospher is being struck by electronsFlourescence: Light emitted while the phospher is being struck by electrons Phospherescence: Light emitted once the electron beam is removedPhospherescence: Light emitted once the electron beam is removed Persistence: The time from the removal of the excitation to the moment when phospherescence has decayed to 10% of the initial light outputPersistence: The time from the removal of the excitation to the moment when phospherescence has decayed to 10% of the initial light outputPhosphers Flourescence: Light emitted while the phospher is being struck by electronsFlourescence: Light emitted while the phospher is being struck by electrons Phospherescence: Light emitted once the electron beam is removedPhospherescence: Light emitted once the electron beam is removed Persistence: The time from the removal of the excitation to the moment when phospherescence has decayed to 10% of the initial light outputPersistence: The time from the removal of the excitation to the moment when phospherescence has decayed to 10% of the initial light output

13 Display Technologies: CRTs Refresh Frame must be “refreshed” to draw new imagesFrame must be “refreshed” to draw new images As new pixels are struck by electron beam, others are decayingAs new pixels are struck by electron beam, others are decaying Electron beam must hit all pixels frequently to eliminate flickerElectron beam must hit all pixels frequently to eliminate flicker Critical fusion frequencyCritical fusion frequency –Typically 60 times/sec –Varies with intensity, individuals, phospher persistence, lighting... Refresh Frame must be “refreshed” to draw new imagesFrame must be “refreshed” to draw new images As new pixels are struck by electron beam, others are decayingAs new pixels are struck by electron beam, others are decaying Electron beam must hit all pixels frequently to eliminate flickerElectron beam must hit all pixels frequently to eliminate flicker Critical fusion frequencyCritical fusion frequency –Typically 60 times/sec –Varies with intensity, individuals, phospher persistence, lighting...

14 Display Technologies: CRTs Interlaced Scanning Assume we can only scan all pixels of entire screen 30 times / secondAssume we can only scan all pixels of entire screen 30 times / second To reduce flicker, divide frame into two “fields” of odd and even linesTo reduce flicker, divide frame into two “fields” of odd and even lines Interlaced Scanning Assume we can only scan all pixels of entire screen 30 times / secondAssume we can only scan all pixels of entire screen 30 times / second To reduce flicker, divide frame into two “fields” of odd and even linesTo reduce flicker, divide frame into two “fields” of odd and even lines 1/30 Sec 1/60 Sec Field 1 Field 2 Frame

15 Display Technologies: CRTs CRT timing Scanning (left to right, top to bottom)Scanning (left to right, top to bottom) –Vertical Sync Pulse: Signals the start of the next field –Vertical Retrace: Time needed to get from the bottom of the current field to the top of the next field –Horizontal Sync Pulse: Signals the start of the new scan line –Horizontal Retrace: The time needed to get from the end of the current scan line to the start of the next scan line CRT timing Scanning (left to right, top to bottom)Scanning (left to right, top to bottom) –Vertical Sync Pulse: Signals the start of the next field –Vertical Retrace: Time needed to get from the bottom of the current field to the top of the next field –Horizontal Sync Pulse: Signals the start of the new scan line –Horizontal Retrace: The time needed to get from the end of the current scan line to the start of the next scan line

16 What is a pixel? Wood chips Chrome spheres Trash Wood chips Chrome spheres Trash Daniel Rozin – NYU: (movies) http://fargo.itp.tsoa.nyu.edu/~danny/art.html

17 Display Technology: Color CRTs Color CRTs are much more complicated Requires manufacturing very precise geometryRequires manufacturing very precise geometry Uses a pattern of color phosphors on the screen:Uses a pattern of color phosphors on the screen: Why red, green, and blue phosphors?Why red, green, and blue phosphors? Color CRTs are much more complicated Requires manufacturing very precise geometryRequires manufacturing very precise geometry Uses a pattern of color phosphors on the screen:Uses a pattern of color phosphors on the screen: Why red, green, and blue phosphors?Why red, green, and blue phosphors? Delta electron gun arrangementIn-line electron gun arrangement

18 Display Technology: Color CRTs Color CRTs have Three electron gunsThree electron guns A metal shadow mask to differentiate the beamsA metal shadow mask to differentiate the beams Color CRTs have Three electron gunsThree electron guns A metal shadow mask to differentiate the beamsA metal shadow mask to differentiate the beams

19 Display Technology: Raster Raster CRT pros: Allows solids, not just wireframesAllows solids, not just wireframes Leverages low-cost CRT technology (i.e., TVs)Leverages low-cost CRT technology (i.e., TVs) Bright! Display emits lightBright! Display emits lightCons: Requires screen-size memory arrayRequires screen-size memory array Discreet sampling (pixels)Discreet sampling (pixels) Practical limit on size (call it 40 inches)Practical limit on size (call it 40 inches) BulkyBulky Finicky (convergence, warp, etc)Finicky (convergence, warp, etc) Raster CRT pros: Allows solids, not just wireframesAllows solids, not just wireframes Leverages low-cost CRT technology (i.e., TVs)Leverages low-cost CRT technology (i.e., TVs) Bright! Display emits lightBright! Display emits lightCons: Requires screen-size memory arrayRequires screen-size memory array Discreet sampling (pixels)Discreet sampling (pixels) Practical limit on size (call it 40 inches)Practical limit on size (call it 40 inches) BulkyBulky Finicky (convergence, warp, etc)Finicky (convergence, warp, etc)

20 CRTs – A Review CRT technology hasn’t changed much in 50 yearsCRT technology hasn’t changed much in 50 years Early television technologyEarly television technology –high resolution –requires synchronization between video signal and electron beam vertical sync pulse Early computer displaysEarly computer displays –avoided synchronization using ‘vector’ algorithm –flicker and refresh were problematic CRT technology hasn’t changed much in 50 yearsCRT technology hasn’t changed much in 50 years Early television technologyEarly television technology –high resolution –requires synchronization between video signal and electron beam vertical sync pulse Early computer displaysEarly computer displays –avoided synchronization using ‘vector’ algorithm –flicker and refresh were problematic

21 CRTs – A Review Raster Displays (early 70s)Raster Displays (early 70s) –like television, scan all pixels in regular pattern –use frame buffer (video RAM) to eliminate sync problems RAMRAM –¼ MB (256 KB) cost $2 million in 1971 –Do some math… - 1280 x 1024 screen resolution = 1,310,720 pixels - Monochrome color (binary) requires 160 KB - High resolution color requires 5.2 MB Raster Displays (early 70s)Raster Displays (early 70s) –like television, scan all pixels in regular pattern –use frame buffer (video RAM) to eliminate sync problems RAMRAM –¼ MB (256 KB) cost $2 million in 1971 –Do some math… - 1280 x 1024 screen resolution = 1,310,720 pixels - Monochrome color (binary) requires 160 KB - High resolution color requires 5.2 MB

22 Movie Theaters U.S. film projectors play film at 24 fps Projectors have a shutter to block light during frame advanceProjectors have a shutter to block light during frame advance To reduce flicker, shutter opens twice for each frame – resulting in 48 fps flashingTo reduce flicker, shutter opens twice for each frame – resulting in 48 fps flashing 48 fps is perceptually acceptable48 fps is perceptually acceptable European film projectors play film at 25 fps American films are played ‘as is’ in Europe, resulting in everything moving 4% fasterAmerican films are played ‘as is’ in Europe, resulting in everything moving 4% faster Faster movements and increased audio pitch are considered perceptually acceptableFaster movements and increased audio pitch are considered perceptually acceptable U.S. film projectors play film at 24 fps Projectors have a shutter to block light during frame advanceProjectors have a shutter to block light during frame advance To reduce flicker, shutter opens twice for each frame – resulting in 48 fps flashingTo reduce flicker, shutter opens twice for each frame – resulting in 48 fps flashing 48 fps is perceptually acceptable48 fps is perceptually acceptable European film projectors play film at 25 fps American films are played ‘as is’ in Europe, resulting in everything moving 4% fasterAmerican films are played ‘as is’ in Europe, resulting in everything moving 4% faster Faster movements and increased audio pitch are considered perceptually acceptableFaster movements and increased audio pitch are considered perceptually acceptable

23 Viewing Movies at Home Film to DVD transfer Problem: 24 film fps must be converted toProblem: 24 film fps must be converted to –NTSC U.S. television interlaced 29.97 fps 768x494 –PAL Europe television 25 fps 752x582 Use 3:2 Pulldown First frame of movie is broken into first three fields (odd, even, odd)First frame of movie is broken into first three fields (odd, even, odd) Next frame of movie is broken into next two fields (even, odd)Next frame of movie is broken into next two fields (even, odd) Next frame of movie is broken into next three fields (even, odd, even)…Next frame of movie is broken into next three fields (even, odd, even)… Film to DVD transfer Problem: 24 film fps must be converted toProblem: 24 film fps must be converted to –NTSC U.S. television interlaced 29.97 fps 768x494 –PAL Europe television 25 fps 752x582 Use 3:2 Pulldown First frame of movie is broken into first three fields (odd, even, odd)First frame of movie is broken into first three fields (odd, even, odd) Next frame of movie is broken into next two fields (even, odd)Next frame of movie is broken into next two fields (even, odd) Next frame of movie is broken into next three fields (even, odd, even)…Next frame of movie is broken into next three fields (even, odd, even)…

24

25 Display Technology: LCDs Liquid Crystal Displays (LCDs) LCDs: organic molecules, naturally in crystalline state, that liquefy when excited by heat or E fieldLCDs: organic molecules, naturally in crystalline state, that liquefy when excited by heat or E field Crystalline state twists polarized light 90º.Crystalline state twists polarized light 90º. Liquid Crystal Displays (LCDs) LCDs: organic molecules, naturally in crystalline state, that liquefy when excited by heat or E fieldLCDs: organic molecules, naturally in crystalline state, that liquefy when excited by heat or E field Crystalline state twists polarized light 90º.Crystalline state twists polarized light 90º.

26 Display Technology: LCDs Liquid Crystal Displays (LCDs) LCDs: organic molecules, naturally in crystalline state, that liquefy when excited by heat or E fieldLCDs: organic molecules, naturally in crystalline state, that liquefy when excited by heat or E field Crystalline state twists polarized light 90ºCrystalline state twists polarized light 90º Liquid Crystal Displays (LCDs) LCDs: organic molecules, naturally in crystalline state, that liquefy when excited by heat or E fieldLCDs: organic molecules, naturally in crystalline state, that liquefy when excited by heat or E field Crystalline state twists polarized light 90ºCrystalline state twists polarized light 90º

27 Display Technology: LCDs Transmissive & reflective LCDs: LCDs act as light valves, not light emitters, and thus rely on an external light source.LCDs act as light valves, not light emitters, and thus rely on an external light source. Laptop screenLaptop screen –backlit –transmissive display Palm Pilot/Game BoyPalm Pilot/Game Boy –reflective display Transmissive & reflective LCDs: LCDs act as light valves, not light emitters, and thus rely on an external light source.LCDs act as light valves, not light emitters, and thus rely on an external light source. Laptop screenLaptop screen –backlit –transmissive display Palm Pilot/Game BoyPalm Pilot/Game Boy –reflective display

28 Display Technology: Plasma Plasma display panels Similar in principle to fluorescent light tubesSimilar in principle to fluorescent light tubes Small gas-filled capsules are excited by electric field, emits UV lightSmall gas-filled capsules are excited by electric field, emits UV light UV excites phosphorUV excites phosphor Phosphor relaxes, emits some other colorPhosphor relaxes, emits some other color Plasma display panels Similar in principle to fluorescent light tubesSimilar in principle to fluorescent light tubes Small gas-filled capsules are excited by electric field, emits UV lightSmall gas-filled capsules are excited by electric field, emits UV light UV excites phosphorUV excites phosphor Phosphor relaxes, emits some other colorPhosphor relaxes, emits some other color

29 Display Technology Plasma Display Panel Pros Large viewing angleLarge viewing angle Good for large-format displaysGood for large-format displays Fairly brightFairly brightCons ExpensiveExpensive Large pixels (~1 mm versus ~0.2 mm)Large pixels (~1 mm versus ~0.2 mm) Phosphors gradually depletePhosphors gradually deplete Less bright than CRTs, using more powerLess bright than CRTs, using more power Plasma Display Panel Pros Large viewing angleLarge viewing angle Good for large-format displaysGood for large-format displays Fairly brightFairly brightCons ExpensiveExpensive Large pixels (~1 mm versus ~0.2 mm)Large pixels (~1 mm versus ~0.2 mm) Phosphors gradually depletePhosphors gradually deplete Less bright than CRTs, using more powerLess bright than CRTs, using more power

30 Review Read Chapter 2 Details about display devicesDetails about display devices Implement OpenGL Section 2.9 is good introduction to OpenGLSection 2.9 is good introduction to OpenGL Read Chapter 2 Details about display devicesDetails about display devices Implement OpenGL Section 2.9 is good introduction to OpenGLSection 2.9 is good introduction to OpenGL


Download ppt "Introduction to Computer Graphics CS 445 / 645 Lecture 2 General Graphics Systems Lecture 2 General Graphics Systems Daniel Rozin, Wooden Mirror (1999)"

Similar presentations


Ads by Google