Monday, May 28, 2007

Computer Graphics with OpenGL 3rd Edition













2.4 Consider three different raster systems with resolutions of 640 by 480 ,1280 by 1024, and 2560 by 2048. what size frame buffer (in bytes ) is needed for each of these systems to store 12 bits per pixel? How much storage is required for each system if 24 bits per pixel are to be stored?

a) (640*480*12) / 8 = 460 800

b) (1280*1024*12) / 8 = 1 966 080

c) (2560*2048*12) / 8 = 7 864 320

d) (640*480*24) / 8 = 921 600

e) (1280*1024*24) / 8 = 3 932 160

f) (2560*2048*24) / 8 = 15 728 640

2.5 Suppose an RGB raster system is to be designed using an 8 inch by 10 inch screen with a resolution of 100 pixels per inch in each direction. If we want to store 6 bits per pixel in the frame buffer, how much storage(in bytes) do we need for the frame buffer?

(800*10000*6) / 8 byte = 60000000 bytes

2.6 How long would it take to load a 640 by 480 frame buffer with 12 bits per pixel, if 10^5 bits can be transferred per second? How long would it take to load a 24- bit per pixel frame buffer with a resolution of 1280 by 1024 using this same transfer rate?

Storage = 640*480*12 = 307200*12 = 3686400 bits

3686400 bits = 100000x

x = 3686400 bits / 100000

= 36.864 seconds

2.7 Suppose we have a computer with 32 bits per word and a transfer rate of 1 mip (one million instructions per second). How long would it take to fill the frame buffer of a 300 dpi(dot per inch) laser printer with a page size of 8 ½ inches by 11 inches?

2.8 Consider two raster systems with resolution of 640 by 480 and 1280 by 1024.how many pixels could be accessed per second in each of these systems by a display controller that refreshes the screen at a rate of 60 frames per second? What is the access time per pixel in each system?

60*640*480=18432000 pixels. 60*1024*1280=78643200 pixels.

2.9 suppose we have a video monitor with a display area that measures 12 inches across and 9.6 inches high. If the resolution is 1280 by 1024 and the aspect ration is 1, what is the diameter of each screen point?

2.10 How much time is spent scanning across each row of pixels during screen refresh on a raster system with a resolution of 1280 by 1024 and a refresh rate of 60k frames per second?

LinkWithin

Related Posts with Thumbnails