Tuesday, 10 January 2017

Computer Graphics Lab

Computer Graphics Lab (CGL)

Second Year (Sem 3 Practical Program Set)

(According to 2015 New Syllabus)

Download The file from here (G Drive)


File Contains : Following University Questions :


Group A

1. Write C++/Java program to draw line using DDA and Bresenham‘s algorithm. Inherit pixel
class and Use function overloading.
DOWNLOAD NETBEANS PROJECT FILE(DDA)

2. Write C++/Java program for line drawing using DDA or Bresenhams algorithm with patterns
such as solid, dotted, dashed, dash dot and thick.
DOWNLOAD NETBEANS PROJECT FILE


3. Write C++/Java program to draw circle using Bresenham‘s algorithm. Inherit pixel class.
DOWNLOAD NETBEANS PROJECT FILE



4.Write C++/Java program to draw inscribed and Circumscribed circles in the triangle as shown
as an example below.

5.Write C++/Java program to draw the following pattern using any Line drawing algorithms.

6. Write C++/Java program to draw 2-D object and perform following basic transformations,
a) Scaling
b) Translation
c) Rotation
Use operator overloading.
DOWNLOAD NETBEANS PROJECT FILE

7. Write C++/Java program to fill polygon using scan line algorithm. Use mouse interfacing to
draw polygon.
8. Write C++/Java program to generate Hilbert curve using concept of fractals.

9. Write C++/Java program to generate snowflake using concept of fractals.

10. To generate Bouncing ball animation using Blender

11. Write C++/Java program to implement translation, sheer, rotation and scaling transformations
on equilateral triangle and rhombus.


12. Write C++/Java program to draw 3-D cube and perform following transformations on it using
OpenGL.
a) Scaling
b) Translation
c) Rotation about one axis

(Steps for installing openGL lib in ubuntu)

1. Open Terminal
2. sudo apt-get install freeglut3 freeglut3-dev libglew1.5 libglew1.5-dev libglu1-mesa libglu1-mesa-dev libgl1-mesa-glx libgl1-mesa-dev 
3. paste the given commands in step 2 and hit enter.
4.Download sample Programs from below.
5. compile it using g++ in terminal.

g++ filename.cpp -lGL -lglut -lGLU
./a.out




MINI PROJECT

13.Write C++/Java program to simulate any one of or similar scene-
 Clock with pendulum
 National Flag hoisting
 Vehicle/boat locomotion
See Video (EXAMPLE)
 Water drop falling into the water and generated waves after impact
 Kaleidoscope views generation (at least 3 colorful patterns)

8 comments:

  1. where is program code?? Plz post it early..

    ReplyDelete
    Replies
    1. some of them are posted. please wait for remaining programs.

      Delete
  2. Thank u for providing these two codes. When u will post remaining? plzzz post as early as possible.

    ReplyDelete
  3. thanks for this 2 codes...waiting for other programs

    ReplyDelete
  4. Waiting for other programs....Plzzz post it early

    ReplyDelete
  5. Waiting for other programs....Plzzz post it early

    ReplyDelete
  6. following link will help you for CGL programs
    abhiyatrana.wordpress.com

    ReplyDelete
  7. following link will help you for CGL programs
    cseguyz.blogspot.in

    ReplyDelete