Manipal Institute of Technology Manipal University Manipal

Similar documents
SRI VENKATESWARA COLLEGE OF ENGINEERING. COURSE DELIVERY PLAN - THEORY Page 1 of 6

Course Title: Computer Graphics Course no: CSC209

Course Title. Computer Graphics. Course Code CE313. Theory : 03. Practical : 01. Course Credit. Tutorial : 00. Credits : 04. Course Learning Outcomes

CS2401 COMPUTER GRAPHICS ANNA UNIV QUESTION BANK

COURSE DELIVERY PLAN - THEORY Page 1 of 6

TEACHING PLAN FAKULTI TEKNOLOGI MAKLUMAT DAN KOMUNIKASI UNIVERSITI TEKNIKAL MALAYSIA MELAKA

Lahore University of Management Sciences. CS 452 Computer Graphics

A method in creating 3D models: From shape to shape, from shapes to model (October 2016)

COMPUTER GRAPHICS, MULTIMEDIA AND ANIMATION, Second Edition (with CD-ROM) Malay K. Pakhira

CHETTINAD COLLEGE OF ENGINEERING & TECHNOLOGY CS2401 COMPUTER GRAPHICS QUESTION BANK

SRM INSTITUTE OF SCIENCE AND TECHNOLOGY

Computer Graphics. Instructor: Oren Kapah. Office Hours: T.B.A.

Lahore University of Management Sciences. CS 452 Computer Graphics

Welcome to CS 4/57101 Computer Graphics

Lab Manual. Computer Graphics. T.E. Computer. (Sem VI)

OXFORD ENGINEERING COLLEGE (NAAC Accredited with B Grade) DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING LIST OF QUESTIONS

CHAPTER 1 Graphics Systems and Models 3

CS452/552; EE465/505. Clipping & Scan Conversion

Course: 601 : Computer Graphics

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR


Lecture 0 of 41: Part A Course Organization. Introduction to Computer Graphics: Course Organization and Survey

3D Graphics Pipeline II Clipping. Instructor Stephen J. Guy

(a) rotating 45 0 about the origin and then translating in the direction of vector I by 4 units and (b) translating and then rotation.

Aptitude Test Question

ce Hours: MW 12:30 PM 1:30 PM (till 12/12/18), or by appointment

COURSE DELIVERY PLAN - THEORY Page 1 of 6

CS602 MCQ,s for midterm paper with reference solved by Shahid

0. Introduction: What is Computer Graphics? 1. Basics of scan conversion (line drawing) 2. Representing 2D curves

Points and lines, Line drawing algorithms. Circle generating algorithms, Midpoint circle Parallel version of these algorithms

COURSE PLAN Regulation: R11 FACULTY DETAILS:

Department of Computer Engineering Lesson Planning

CIS 581 Interactive Computer Graphics (slides based on Dr. Han-Wei Shen s slides) Requirements. Reference Books. Textbook

* 7<), ;)8 > #&,)?0/ ;. A ; ! 5- ):%4B ' %?2+?;,)7--

Lecture 7 of 41. Viewing 4 of 4: Culling and Clipping Lab 1b: Flash Intro

CSE 212 : JAVA PROGRAMMING LAB. IV Sem BE (CS&E) (2013) DEPT OF COMPUTER SCIENCE & ENGG. M. I. T., MANIPAL. Prepared By : Approved by :

Department of Computer Sciences Graphics Fall 2003 (Lecture 2) Pixels

KINGS GRAPHICS AND MULTIMEDIA DEPARTMENT OF COMPUTER SCIENCE AND ENGG. OUTPUT PRIMITIVES Part-A (2-MARKS)

Cs602-computer graphics MCQS MIDTERM EXAMINATION SOLVED BY ~ LIBRIANSMINE ~

Interactive Computer Graphics A TOP-DOWN APPROACH WITH SHADER-BASED OPENGL

About the Tutorial. Audience. Prerequisites. Copyright & Disclaimer. Computer Graphics

R. C. TECHNICAL INSTITUTE, SOLA

Course Information Package

CS602- Computer Graphics Solved MCQS From Midterm Papers. MIDTERM EXAMINATION Spring 2013 CS602- Computer Graphics

Mcq In Computer Graphics

1 Preview. Dr. Scott Gordon Computer Science Dept. CSUS. Virtual Cameras, Viewing Transformations: CSc-155 Advanced Computer Graphics

Part 3: 2D Transformation

SCHEME OF INSTRUCTION & EXAMINATION B.E. III YEAR (COMPUTER SCIENCE & ENGINEERING) With effect from the Academic year

Binghamton University. EngiNet. Thomas J. Watson. School of Engineering and Applied Science. State University of New York. EngiNet WARNING CS 560

Introduction to Computer Graphics. Knowledge basic concepts 2D and 3D computer graphics

CSC 425 Computer Graphics and Games

GLOBAL EDITION. Interactive Computer Graphics. A Top-Down Approach with WebGL SEVENTH EDITION. Edward Angel Dave Shreiner

Computer Graphics. Apurva A. Desai

QUESTION BANK 10CS65 : COMPUTER GRAPHICS AND VISUALIZATION

SOFTWARE ENGINEERING & OOAD (3-1-0)Cr.-4

LESSON PLAN. Sub. Code & Name : CS GRAPHICS AND MULTIMEDIA Unit:I Branch: IT Year Semester: VII UNIT I OUTPUT PRIMITIVES 9

3D Rendering Pipeline (for direct illumination)

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY DEPARTMENT OF COMPUTER APPLICATIONS COURSE PLAN

CIS 581 Interactive Computer Graphics

EF432. Introduction to spagetti and meatballs

End-Term Examination

KRISTU JYOTI COLLEGE OF MANAGEMENT & TECHNOLOGY QUESTION BANK BCA SEMESTER III Computer graphics Part A (2 marks questions)

MCA V SEMESTER CODE SUBJECT MARKS

Clipping and Scan Conversion

Lesson Plan. Name of Faculty: Sana Bharti. Discipline: MCA. Semester: 4 th. Subject: Data Mining and Warehousing (MCA-16-43)

Digital 3D Animation

Computer Graphics CS 543 Lecture 1 (Part I) Prof Emmanuel Agu. Computer Science Dept. Worcester Polytechnic Institute (WPI)

Advanced Graphics

CEG477/CEG677. Computer Graphics II

Computer Graphics II: Tools and Techniques

Roll No. : Invigilator's Signature :.. GRAPHICS AND MULTIMEDIA. Time Allotted : 3 Hours Full Marks : 70

Computer Graphics Disciplines. Grading. Textbooks. Course Overview. Assignment Policies. Computer Graphics Goals I

Topics. From vertices to fragments

Punjab Technical University Bachelor in Mobile Computing & Internet Batch 2014 onwards THIRD SEMESTER

Output Primitives. Dr. S.M. Malaek. Assistant: M. Younesi

Spring 2012 Final. CS184 - Foundations of Computer Graphics. University of California at Berkeley

Clipping Algorithms; 8-5. Computer Graphics. Spring CS4815

CS602 Midterm Subjective Solved with Reference By WELL WISHER (Aqua Leo)

SAZ4C COMPUTER GRAPHICS. Unit : 1-5. SAZ4C Computer Graphics

Computer Graphics: Viewing in 3-D. Course Website:

SOUTHERN UNIVERSITY AND A&M COLLEGE DEPARTMENT OF MATHEMATICS MATH 250 TOPICS IN GEOMETRY

CS1354 GRAPHICS AND MULTIMEDIA DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING QUESTION BANK SUB CODE / SUBJECT: CS1354 GRAPHICS AND MULTIMEDIA.

EF432. Introduction to spagetti and meatballs

G - Graphics

Computer Science 474 Spring 2010 Viewing Transformation

3D Polygon Rendering. Many applications use rendering of 3D polygons with direct illumination

COURSE DELIVERY PLAN - THEORY Page 1 of 6

Unit 3 Transformations and Clipping

A Tool for Demonstrating the Interaction among Lighting/Material. Parameters and Potential Problems in Polygon-Based Rendering

SE Mock Online Test 1-CG

BHARATHIDASAN ENGINEERING COLLEGE,NATTRAMPALLI

CSCE 441 Computer Graphics Fall 2018

Topic 0. Introduction: What Is Computer Graphics? CSC 418/2504: Computer Graphics EF432. Today s Topics. What is Computer Graphics?

Table of Contents. Introduction to the Math Practice Series...1

Clipping Lines. Dr. Scott Schaefer

Lecture 6 of 41. Scan Conversion 1 of 2: Midpoint Algorithm for Lines and Ellipses

Lecture 6 of 41. Scan Conversion 1 of 2: Midpoint Algorithm for Lines and Ellipses

Topics and things to know about them:

Part A: Course Outline

Two-Dimensional Viewing. Chapter 6

Transcription:

MIT/CSE/LM/13/R0 COMPUTER GRAPHICS LAB MANUAL FIFTH SEMESTER Department of Computer Science & Engineering 10pt. CREDIT SYSTEM (2014) Prepared by Approved by (Dr. P. C. Siddalingaswamy) (Head of the Department) Manipal Institute of Technology Manipal University Manipal - 576104

Table of Contents INSTRUCTIONS TO STUDENTS... 3 PROCEDURE OF EVALUATION... 3 1. INTRODUCTION TO OPENGL PROGRAMMING... 4 2. DRAWING OF LINES... 4 3. DRAWING OF CIRCLES AND ELLIPSES... 4 4. AREA FILLING... 4 5. POLYGON FILLING... 4 6. CLIPPING OF LINES... 5 7. CLIPPING OF POLYGONS... 5 8. 2-D TRANSFORMATIONS... 5 9. 3-D TRANSFORMATIONS AND PROJECTIONS... 5 10. BEZIER AND B-SPLINE CURVES... 6 11. DEMONSTRATION OF POLYGONAL LIGHTING & SHADING... ERROR! BOOKMARK NOT DEFINED. 12. ANIMATION PROGRAM TO DEFINE AND RENDER A SCENE ERROR! BOOKMARK NOT DEFINED. 13. LAB TEST... 6 GUIDELINES... 7 REFERENCES... 7

INSTRUCTIONS TO STUDENTS 1. Students should be regular and come prepared for the lab. 2. In case a student misses a lab session, it is his/her responsibility to complete that missed experiment(s). 3. Students should bring the observation book, lab journal and lab manual. Prescribed textbook and class notes can be kept ready for reference if required. 4. They should implement the given experiment individually. 5. While conducting the experiments students should see that their programs meet the following criteria o Programs should be interactive with appropriate prompt messages. Error messages if any and descriptive messages for outputs. o Programs should perform input validation (Data type, range error, etc.) and give appropriate error messages and suggest corrective actions. o Comments should be used to give the statement of the problem and every function should indicate the purpose of the function, inputs and outputs. o Statements within the programs should be properly indented. o Use meaningful names for variables and functions. o Make use of constants and type definitions wherever needed. 6. Once the experiment(s) get executed, they should show the program and results to the instructions and copy the same in their observation book. 7. Questions for lab tests and exam need not necessarily be limited to the questions in the manual, but could involve some variations and/or combination of the experiments PROCEDURE OF EVALUATION Students will be evaluated based on following criteria. The marks distribution is as follows: Implementation of experiments, observation and/or Journal and viva voce Lab Test 60 Marks 40 Marks

1. Introduction to OpenGL Programming Write a Hello world application to understand working with IDE. Write a program to initialize OpenGL and display some basic geometric shapes. Example, line, polygon. Implement Basic incremental line drawing 2. Drawing of Lines Write a function for drawing a line using o Simple DDA algorithm o Bresenham s Line Drawing algorithm o Mid-point algorithm (for any slope) Modify the function suitably for adding attributes like color, thickness and nature (dashed, dotted, etc.). Write a sample program demonstrating the use of lines. 3. Drawing of Circles and Ellipses Write a function for drawing a circles using mid-point circle drawing Write a function for drawing an ellipse using mid-point ellipse drawing Modify the function suitably for adding attributes and generating arcs. Write a sample program demonstrating the use of circles and ellipses 4. Area Filling Write a function for filling a given area using o Flood fill algorithm o Boundary fill algorithm Write a sample program to demonstrate the use of filling algorithms. 5. Polygon Filling Write a function for filling a given polygon using the scan line polygon fill Write a sample program demonstrating the use of the polygon filling

6. Clipping of Lines Write a function for clipping a given line against the given rectangular window using o Cohen-Sutherland method. o Liang Barsky method Write a sample program demonstrating the use of line-clipping algorithms. 7. Clipping of Polygons Write a function to clip a given polygon against the given rectangular window using Sutherland-Hodgeman Write a sample program demonstrating the use of polygon clipping 8. 2-D Transformations Write functions for the following 2-D transformations on 2-D graphic objects o Translation o Scaling o Rotation o Shear o Reflection Write a sample program to demonstrate the use of the various 2-D transformations. 9. 3-D Transformations and Projections Write a function for the following 3-D transformation of a 3-D object o Translation o Rotation Write a function to display a 3-d object using o Orthographic Projection o Perspective Projection Write a sample program to demonstrate the use of the 3D transformations and projections.

10. Curve Drawing Write a function to generate a o Bezier Curve through N+1 control points o B-spline Curve through N+1 control points Write a sample program to demonstrate the use of Bezier and B-spline curves. 11. Shading & Lighting Write program to demonstrate the effects of shading and lighting on a polygon. 12. Animation Write a program to render a scene and animate objects defined in the scene. 13. Lab Test Experiments 01 12

Guidelines 1. All the experiments have been designed as implementation of graphic primitives. The sample programs are intended to test the application of the primitives. The student is expected to think of an application area and show the use of the primitives in the application areas. The typical applications of graphics are as follows o Graph Drawing o Engineering Simulations o Engineering Drawing o CAD o Robotics o Computer Games o Computer Animation o Math Tutor 2. For each of the primitive the student should define a suitable datatype and interface. It should be compiled into library and accessible for other experiments. 3. Also as an additional exercise the student should compare the primitives with primitives available in the commercial packages like OpenGL. 4. For the multimedia experiments the student is encouraged to use different tools and compare the advantage and disadvantages of the various tools. 5. Student is encouraged to provide lot of interactivity to their programs. References 1. Donald Hearn, Pauline Baker M., (2009) Computer Graphics with OpenGL, Pearson Education, 3 rd Edition. 2. Edward Angel, (2009) Interactive Computer Graphics- A top down approach using OpenGL, Pearson Education, 5 th Edition. 3. Dave Shreiner, The Khronos OpenGL ARB Working Group (Author), Bill Licea-Kane, Graham Sellers, OpenGL Programming Guide: The Official Guide to Learning OpenGL, Version 4.1 (2011), Addison- Wesley Professional, 8th Edition.