0% found this document useful (0 votes)
22 views12 pages

CG Assign1

Computer Graphics assignments

Uploaded by

bhoyeakshay24
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
22 views12 pages

CG Assign1

Computer Graphics assignments

Uploaded by

bhoyeakshay24
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 12
Ke} Jawahar Education Sock INSTITUTE OF TECHNOLOGY, MANAGEMENT & RESEARCH, NASHIK 2 Fa Tec: ao CG Ques bho Pa p@ AVE = mith Example a ion ithms oobich step along — the line to determine the pixel cahich shoulsl he — fi 5 am A h eo CDNAY @ Algo withon i vas E Mosing Ys_o “DDA Line Deracal Stepiic Accept ta eadpoint acon inpuk (%., So and Co ye : topos Calculate hanleontal & vextioal differen ker kero end paint Ax =\ar- %ol Ay=lsi- Sol ken Siz Based on diffe «in “ctep-2” identits | sub: f skeos to put pixelC\ DP Aux ayy : then me need more steps ino coordina kes | otherwise av Heed more steps in y coardinat iP Cardy) thes Jength = ahs (Asc) else length = abs CAy) ead iP Step=4t Calculating incwement ina ordinate and Sy=ca0.4 dinate. Ax _ % Anevement = dee (Float) lengtt, Sincere ment = AY Moat). Jeng th Go increment) 4 (AY increment) tep-6: Pur the pixels hy succeasPrll increment 4 cacudina ke and complete line draaving. Step= 7 fox Cit wee Crengts yaa) Aa 7 increment We Ye iy inorement. pukpixel Cory) gE Jawahar Education Society's, Ba JIT: INSTITUTE OF TECHNOLOGY, wise | MANAGEMENT & RESEARCH, NASHIK = Drom saline ith otortt i wis Ca,s\ using ddoo oth ms => Co y=etny alg Cayo) = CA 8) me Seo sf Bol = & = a7 mn Ky 4-\ 3 Tar los as] Anu=% yee a i | ci | et o> AY Np fy 42 [ver Aust ay| wv rer] 3 [234] 3)] 3 fe3ae] 4 [Sor ) fl oy ty yt A = oy +l sie = 2 = * ee jst AY i CaS a = 1+CmAny {a ee y i = 14 CoeT eae) rf Siar = eT Cny 7 a 5 OD iecigy = weit Av Dier = Sie Ay = he El\eTt O67 Mia = d Sigy = 234 BI och ay = eh Misty = Sia A =S+ = 2°34 40.47 ociay = 4% =eowony S\Me Pine he terms 1 reselubion butler naPeesh cate ,color depth ,scam conser s ginel Resclution \- Tt is deine as no. of pointess per centimeter than can be plotted hoawontar ly ds schically Aspect ratio’ Tk is sakio of vertical paint ko horizontal points to produce £9, sob \eagth li es ie both dine Kon. on seqeen. Frame BulPer i Specal aren of mena : — ~ ghia’ soto aiea plaiescanly—— | es is _Koamn ac “Frame Rule, Kier be haa Yess, of ben Ou OF J “ display ac Vora! See eee eee eae LScon conversion \ The proce \ continasa qraphica abject a allecFian af Visoreake gixels is kno KOS sean “Canu ergy, On Jawahar Education INSTITUTE OF TECHNOLOGY, MANAGEMENT & RESEARCH, NASHIK 8G ee element. A‘\ Explain Rresenhawms civele ee Given the centre point crdinat’ (oo) : ond cadius os § senerake aX\ the point : to Rams civele = Sresenham:s circle deaming algovith way is Of cPicinal methad 2 danaidy O cinale ono mouker soveen using oalf i keg so_artlhmne bio hat makes i both Ofas and Maccurate : | This algorithm sxtswsiatn of Roresenbat 4 | Nine de Seain kas by colelabing the Sok 2 a : combn sls, . Vag on th on 4 : q dRoad tne vadius Cel of civels go. A = Qo" _ e agin oer : 4. do 2 y plot Coy) — - deadt 4 are - \ge $ = 7 d= Ata Ca-yVita _ | WP CA co) then 3 _ e =4-i mer aghile Corey) 5. Stop. Jawahar Education Society's, INSTITUTE OF TECHNOLOGY, MANAGEMENT & RESEARCH, NASHIK Fa Tre. Blaihak do sputasan by PENG 2 Describe OPENcl ox chi ecbuate colts Bice te Ain garaws Open Git COoen G yo Li ; = InterrPace CAPT) Lary cond eorina, Db, sD : compube so acaplhic OpenG\ Architecture * CPU The CPU Sends commande and doko ko GPU | Lo start the rendering proce lo. Display List: Staves a set of parecompils com nds that oy be reused spend say oe dering, t 3. Polynomial Eveiluats Gederate verbice crorkhe akon! Pune bons. ike ctiryes evbex Op x ker Opera ef. Lio Light ny tet 0 ; * Primitive “Accembly erkiceg inte - geomet t shapes Nike Emongle b 5, Raskerization + " Conve et ge sock rg) cslhopes like seiaregle s : Prag nents, = le. Texbime Memon yt _ tores textures that oill he applied tothe — — Erragenent displayed Fev Verbena pera, Primitive Assembly Polynomial | Ev atuator| Dis plev Rastemizction| [fer Fragme- List [operation TPixet Texture Memory, operation eee e”wwTtre a Le) INSTITUTE OF TECHNOLOGY, MANAGEMENT & RESEARCH, NASHIK Jawahar Education Society's co \ The ‘incide outside test is eae thad used Ls earmine coe theo & — goa phel to deb paint \' r 2 \onpacrka Pace tor Uke \naade ov outside o ¢ tygee his 1 oole Log A Wit = brs king Thexe av b ramsanl 4 uce method ts tect: ) even= odd me tha. pant » sanding oumbeor method \ Me thad 5 £ -O Cero mm point in gts bon In ony Aimagine A divectian pone on a @ Counk San times the Intersects the kb eal £ 6 poly gon [@ daa cection | The point ic inside the Q) Eves 2 intersections The point is outside Ane pi Lasgo Line oi Gind in g Number Methoal - \ do. method olhecteg hoa man > tisses the pal gon csind wed the paint? wiines Pram the paint to \s Verte n meee ene eee tools p Ne PU or vd the polud 43 Tt the t point is-inside the soinding tacks oil he pon-Ze vor @ Te the zero, Int is outside , the otading ortll be 3 Potyaon Piling wm igblighting all the pixel Vic_inkide the Satloan Soaitls amy colon other th 9 backs ound (Qian. @ Bounda: \ mt This o reouasiy es method used te ill hy _cal Lng, the oven inside the boundary. Fo\leming | ole | F algo thmy- The—algamithm begin A sipaint inside the Poly gan The oer eI 0 -shecks ithe curvent pixels ls. reseck ieicle th voy ond hasn't heen Pied yet. & the “pixel meets the ombemia it: calared_ mith chases VV salen Qe recursive method Wwecks and Fils the ashy housing pines in ali Foun dines tions @] Advantages i= = Simple cba \oople ment Jor Wing Vere guhan poli qans Diva = pot efticle ox Loa palygons ith lang © ormple bousdarcy ‘Jawahar Education Society's, BD 0 Tevezes.. | INSTEUTE OF TECHNOLOGY, “en | MANAGEMENT & RESEARCH, NASHIK AA Disces: bh Example sco Vine eget Scan We approaches ave soos an dd tease otewobiaece. lobe nce duis’ to ther recuse \we camputation we owl od eben ot visible span \nekead af vist Q individual pixels @llscan the Pill ols, sath cav-pute the — ab bs Vike oithis pacssoae pals pon ndars Peach scan line oithis—cocus cave, selP= inteuseckivs and paly go oath holes 2) lLAlgowiktees Set Ys bo amatle st 4 g caahiah these 4 emp ku steps anti) both _~ AET ach : yn ET boa AET shos z . . sith Yerax 5 sts'/ scan | Is ot Sy byt s.foq each edge in AET update Sea nate: 6. Sort all edge an x < @ || Advantage - Tt teks a to faster execut @rU ‘sible wi > petty da Visible Di advantage te OTe Mar omple: Uk wequice oll sclugan should be cent ta senders hefare deals tae 8) Comps Mond Pil, Edge Hil Peace fill @ Flood Fill s- 9 + Purpase © Fills o ati w seca of pixels Ua pecvied calf 2Thethool = Start: Pyaw dipixel and spread gut ta adiaceat pixeles pak match emignal cole + Wsdo.¢ : Commonly used in paink baslae Bi aneas enclosed by heundanis DEA Fills eg ov contaus ayy + Pures x Fills enclosed aveas define by | ne ieee g | edges ox housdanis | + Te thad t¢ Tdenttie od Pills the area bekareen | a ; / eis OPten usecl in eee or CAD systems ta Pile hase o they bound Say de Pinatlon | Jawahar Education Society's, INSTITUTE OF TECHNOLOGY, MANAGEMENT & RESEARCH, NASHIK Wein eg Ger Fence OM he eile) bc Boucdovses cet by the * Pence" ar lineg | * Usage: Useul Row Piling comple ha pes shee waulkiele houwddecies ta he consider

You might also like