0% found this document useful (0 votes)
4 views2 pages

Lab Exp

The document outlines a series of computer graphics experiments focused on OpenGL, including environment setup, drawing basic shapes, and implementing algorithms for filling and clipping. Each experiment involves user input for parameters and aims to teach various graphical techniques such as transformations, Bezier curves, and event handling. The final experiment involves creating 3D shapes, enhancing the understanding of both 2D and 3D graphics programming.

Uploaded by

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

Lab Exp

The document outlines a series of computer graphics experiments focused on OpenGL, including environment setup, drawing basic shapes, and implementing algorithms for filling and clipping. Each experiment involves user input for parameters and aims to teach various graphical techniques such as transformations, Bezier curves, and event handling. The final experiment involves creating 3D shapes, enhancing the understanding of both 2D and 3D graphics programming.

Uploaded by

aoibenio
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

PAGE DAT REMARK/

S.NO COMPUTER GRAPHICS PROGRAM NAME


NO E GRADE
1 Experiment 1: Introduction to OpenGL: [ Lab Environment Setup]

a. What is OpenGL?

b. What is GLU/GLUT?

c. What is OpenGL Architecture?

d. Setting up the environment.

e. First OpenGL Program: This initializes a window of green color.

f. Draw a Hut.

2 Experiment 2: Drawing a line [Usage of Open GL]

a. Draw a line using equation of line Y=m*X+C.


b. Draw a line using DDA algorithm for slope m<1 and m>1.
c. Draw a line using Bresenham algorithm for slope m<1 and m>1.

# Take the input from user for all the three scenarios i.e. value of (x1, y1) and
(x2, y2).

3 Experiment 3: Drawing a Circle and an Ellipse [Done on OpenGL]

a. Draw the circle with the help of polar equations


b. Draw the circle with the help of mid-point method.
c. Draw the Ellipse with the mid-point method.

# Take the value of radius, major axis and minor axis as input from the user.

4 Experiment 4: Seed Fill Algorithms [Small Project will be given for


demonstration]

a. WAP to fill the polygon using scan lines.


b. WAP to fill a region using boundary fill algorithm using 4 or 8
connected approaches.
c. WAP to fill a region using flood fill algorithm using 4 or 8 connected
approaches.

# Take the value of seed point, intensity of new color as input from user.

5 Experiment 5: Viewing and Clipping [Geographical Animation for


demonstration]

a. Write an interactive program for line clipping using Cohen Sutherland


line clipping algorithm.
b. Write an interactive program for line clipping using Liang-Barsky line
clipping algorithm.
c. Write an interactive program for polygon clipping using Sutherland –
Hodgeman polygon clipping algorithm.

# Take the window coordinates as input from the user, also take polygon
coordinates as input.

6 Experiment 6 : Basic 2D & 3D Transformations

a. Write an interactive program for following basic transformation.


b. Translation
c. Rotation
d. Scaling
e. Reflection about axis.
f. Reflection about a line Y=mX+c and aX+bY+c=0.
g. Shear about an edge and about a vertex.

# Perform all the experiment for 3-D transformation.

# Take the following values as input from user: Theta (angle of rotation),
translation factor, scaling factor and other values. Make necessary
assumptions.

7 Experiment 7: Drawing Bezier curves. [ Virtual GLUT based demonstration]

a. Write a program to draw a cubic spline.


b. WAP to draw a Bezier curve.

# Take necessary values as input from the user like degree of the Bezier curve.

8 Experiment 8: Event Handling

a. Implement mouse input functionality.


b. Implement keypress functionality.
c. Implement another call back functions.

#Implement above with the help of animation.

9 Experiment 9: Creating 3D Shapes like Cube, Sphere and others.

You might also like