# CS602 Computer Graphics Assignment 1 Solution Spring 2013

Question 1                                                                                                                                                        //4 marks

Suppose you want to see a 3D cartoon movie of 10 second length in RGB mode having a resolution of 1024 x786 at 60 Hz. If clip is organized in a way that after every refresh cycle a new frame is to be loaded then how much data has to be moved by the video card for 10 seconds to refresh the whole screen?

Question 2                                                                                                                                                       //6 marks

Write an assembly program to write character ‘b’ at 20th column and 25th row using direct memory access. Use the following information:

Text mode: 3

Solution:

Write character ‘b’

At C x R = 20 x 25

row * 320 + column

Text mode 3, using DMA

Mov ax, 0b8000h

Mov ds,ax

Mov r1,320

ASL r3, 5         ;; 25*320 = r3

Mov r4,20

ADD r0,r3,r4    ;; 25*320+20 = r0

Mov si, r0

Mov [si],’b’     ;; write b

Question 3                                                                                                                                                       //5 marks

Following is the list of smart phones. Mention the names of hardware which are used in these smart phones for Graphics.

Device Name

GPU’s

Samsung Galaxy S II

HTC Sensation

IPhone 4

Galaxy Nexus

Motorola Xoom

Solution:

Following is the list of smart phones. Mention the names of hardware which are used in these smart phones for Graphics.

 Device Name GPU’s Samsung Galaxy S II ARM Mali-400 MP4 (GT-I9100, SHW-M250S/K/L) PowerVR SGX540 (GT-I9100G) Qualcomm Adreno 220 (GT-I9210) HTC Sensation Adreno 220 IPhone 4 PowerVR SGX535 @ 200–250 MHz (1.6–2 GFLOPS) Galaxy Nexus 384 MHz PowerVR SGX540 Motorola Xoom PowerVR SGX540

Question 4                                                                                                                                                       //5 marks

Fill in the following table according to the graphics adapters properties.

In case when an adapter is an extension of previous one, only write its new resolutions it provides while in other blanks only write “yes”.

MODE

COLOR

NO OF BIT’s

LIMITATION

(only one for each)

TEXT

GRAPHICS

TEXT

GRAPHICS