We are here with you hands in hands to facilitate your learning & don't appreciate the idea of copying or replicating solutions. Read More>>

Looking For Something at vustudents.ning.com? Click Here to Search

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More


Dear Students! Share your Assignments / GDBs / Quizzes files as you receive in your LMS, So it can be discussed/solved timely. Add Discussion

How to Add New Discussion in Study Group ? Step By Step Guide Click Here.

Discuss here about this assignment....

Assignment No. 02
SEMESTER Spring2013
CS602- Computer Graphics

 

Total Marks: 20

 

Due Date: 08/05/2013.

Instructions

11. 2D Transformations I

Please read the following instructions carefully before solving & submitting assignment:

It should be clear that your assignment will not get any credit (zero marks) if:

  • The assignment is submitted after due date.
  • The submitted assignment does not open or file corrupt.
  • The assignment is full or partially copied (from other student or ditto copy from handouts or internet).
  • Student ID is not mentioned in the assignment File or name of file is other than student ID.
  • The assignment is not submitted in .doc /.docx (MS Word) format.

 

Uploading instructions

Your Submission must include:

 

  1. MS Word file.

Objective

The objective of this assignment is

 

  • To make you understand the concept and application of Scan Line Algorithm for polygon filling.

 

Important Requirements and Instructions:

  1. You are not allowed to copy it from internet. In that case no marks shall be awarded.
  2. Same assignment of two or more students shall be considered cheating case and they will get straight zero marks.
  3. Assignment last date is 08/05/2013..Any lame excuses will not be accepted. 
  4. We will not accept assignment through email in any case. Be careful.

 

 

 

For any query about the assignment, contact at cs602@vu.edu.pk

GOOD LUCK

 

 

 

                                                                                                              

Answer the following question.

 

Question:

Following is the diagram of polygon. Use the Scan Line Algorithm for polygon filling and fill the respective tables for each iteration given below.

 

                                    (05, 15)          (10, 15)        (15, 14)      (20, 15)

 

 

 


                                                                                                           

              

 

 

                                    (05, 05)  (08, 05)                           (17, 05)             (25, 10)

 

All Edge Table:  //  2 marks                                   

 

INDEX

 

Y-MIN

Y-MAX

X-VAL

1/m

0

 

 

 

 

 

1

 

 

 

 

 

2

 

 

 

 

 

3

 

 

 

 

 

4

 

 

 

 

 

5

 

 

 

 

 

6

 

 

 

 

 

7

 

 

 

 

 

 

 

Global Edge Table: //  4 marks        

                          

 

INDEX

 

Y-MIN

Y-MAX

X-VAL

1/m

0

 

 

 

 

 

1

 

 

 

 

 

2

 

 

 

 

 

3

 

 

 

 

 

4

 

 

 

 

 

5

 

 

 

 

 

6

 

 

 

 

 

7

 

 

 

 

 

 

 

 

Active Edge Table initialization: // 4  marks                                   

 

                  Active Edge Table

                         Global Edge Table

INDEX

 

Y-MAX

X-VAL

1/m

INDEX

 

Y-MIN

Y-MAX

X-VAL

1/m

0

 

 

 

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

6

 

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

 

 

 

 

Scanline:5   //  2 marks                                   

 

                  Active Edge Table

                         Global Edge Table

INDEX

 

Y-MAX

X-VAL

1/m

INDEX

 

Y-MIN

Y-MAX

X-VAL

1/m

0

 

 

 

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

6

 

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

 

 

 

 

Scanline:9//  2 marks                                   

 

                  Active Edge Table

                         Global Edge Table

INDEX

 

Y-MAX

X-VAL

1/m

INDEX

 

Y-MIN

Y-MAX

X-VAL

1/m

0

 

 

 

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

6

 

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Scanline:10 //  2 marks                                   

 

                  Active Edge Table

                         Global Edge Table

INDEX

 

Y-MAX

X-VAL

1/m

INDEX

 

Y-MIN

Y-MAX

X-VAL

1/m

0

 

 

 

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

6

 

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

 

 

 

 

Scanline:13//  2 marks                                   

 

                  Active Edge Table

                         Global Edge Table

INDEX

 

Y-MAX

X-VAL

1/m

INDEX

 

Y-MIN

Y-MAX

X-VAL

1/m

0

 

 

 

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

6

 

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

 

 

 

 

Scanline:14 //  2 marks                                   

 

                  Active Edge Table

                         Global Edge Table

INDEX

 

Y-MAX

X-VAL

1/m

INDEX

 

Y-MIN

Y-MAX

X-VAL

1/m

0

 

 

 

 

 

 

 

 

 

1

 

 

 

 

 

 

 

 

 

2

 

 

 

 

 

 

 

 

 

3

 

 

 

 

 

 

 

 

 

4

 

 

 

 

 

 

 

 

 

5

 

 

 

 

 

 

 

 

 

6

 

 

 

 

 

 

 

 

 

7

 

 

 

 

 

 

 

 

 

 

Note:  

  1. 1.      No explanation is required only fill the given tables. In case the field is empty in table enter “Nil”.
  2. 2.      Only show the steps by filling the given tables in Assignment. No other tables for any other step are required.

Lectures Covered: This assignment covers Lecture # 07-11

Deadline

Your assignment must be uploaded/submitted at or before 08/05/2013.                         

 

+ How to Follow the New Added Discussions at Your Mail Address?

+ How to Join Subject Study Groups & Get Helping Material?

+ How to become Top Reputation, Angels, Intellectual, Featured Members & Moderators?

+ VU Students Reserves The Right to Delete Your Profile, If?


See Your Saved Posts Timeline

Views: 3591

.

+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)

+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)

+ Click Here to Search (Looking For something at vustudents.ning.com?)

+ Click Here To Join (Our facebook study Group)

Attachments:

Replies to This Discussion

yar koi to assignment sol upload kr do

Complete CS602 _2ND_ASSIGNEMNT SOLUTION SPRING 2013 

Attachments:

incomplete and incorrect solution file ha bahi g ....

yar vu walay jan booj k r mushkal assignments datay hai

moj yad hai ak cs ka subject tha ma n 6 dafa paper daye then ja k unho n pass kea 

pata nh ye kis cheez ka badla latay hai 

or univerties waly to asa nhy k  r ty

real me yr humare to a jate ha number jasa paper do vase number lo.

to ap upload kr do correct file 

Complete nhi hy g. Scanline 10 sy aagy nhi hua hua/Complete ho to upload kr 2 plz

 

yar koi to complete sol upload kr do

PLZ agr kisi k pas cs602 ka complete solution hy to upload kr 2. 10 min reh gaye hain sirf.

koi to upload kr do 9 mint rh gay hain

ab to upload kr dain solution.Assignment expire to ho he gai hai .Kindly upload the final solution.

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

 

Video graphics memories address: 0b8000h

 

Solution:

 

Write character ‘b’

 

At C x R = 20 x 25

 

row * 320 + column

 

Video graphics memories address: 0b8000h

 

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.

 

Solution It Jobs Multicolor Iphones Coil Spring Business Solution Galaxy 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

 

 

Lg Phone Posted December 2012 Solution It Jobs Multicolor Iphones

 

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

 

ADAPTER NAME

 

MODE

 

COLOR

 

NO OF BIT’s

 

LIMITATION

 

(only one for each)

 

TEXT

 

GRAPHICS

 

TEXT

 

GRAPHICS

 

Monochrome Adapter

 

Color Graphics Adapter

 

Multicolor Graphics Adapter

 

Extended Graphics Adapter

 

Enhanced Graphics Adapter

 

Note: Your explanation must justify enough for given marks for each part.

RSS

© 2020   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.