COMPUTE
R
GRAPHICS
MADE BY :- OM NATH SINGH
ASSIGNMENT-3
ANIMATION
“Computer Animation has the ability to make any dead image
alive”
The main concept behind computer animation is to play the
defined images at a faster rate to fool the viewer. So that the
viewer should interpret those image as a continuous motion
of image.
GRAPHIC
The term “Graphic” is often generally applied to several things :
graphic and design, graphic arts, 3D animation.
GRAPHIC EVOLUTION
YEAR DEVELOPMENT
1906 “Humorous phase of funny faces” {1st Animated Film}
1907 “Gertie the trained Dinasaur” {Cartoon was Develop}
1913 “Felix the cat” and “old doc yak” {Cartoon Series was
develop}
1926 “Prince Achmed” {1st Full length Movie}
1928 “Mickey Mouse” {1st Cartoon with Sound}
1993 “Jurassic Park” {Movies using VFX and Animation}
USE OF GRAPHICS
ANIMATION IN PRATICAL LIFE
In the movie creation of movies specifically, these terms terms take
special meanings, though.When creating a 3d animated movie,
there are several steps, but I'll simplify this process to mainly
include the steps in which we're interested. The final image
displayed on screen is a combination of all these steps.
 MODELING
 SKINNING
 ANIMATING
 RENDERING
OPENGL
OpenGL stand for Open Graphics Library. OpenGL is an API for
drawing Graphics. The whole purpose of OpenGL is to transfer
data from the CPU to GPU through what is known as OpenGL
Object
There is several types of OpenGL Object:-
 Vertex Buffer Object {which help us to store a vertices of
Characters}
 Texture {which help us to store an Image}
RENDERING PIPELINE
Vertex Buffer Object GPU for Processing
Data
RENDERING PIPELINE
It consist of six stages:-
1. Per Vertex Operation
2. Primitive Assembly
3. Primitive Processing
4. Rasterization
5. Fragment Processing
6. Per-Fragment Operation
USES OF OPENGL IN
PRACTICLE LIFE
 OpenGL commands include drawing polygons, assigning colors to
shapes, applying textures to polygons (texture mapping), zooming in
and out, transforming polygons, and rotating objects.
 OpenGL is also used for managing lighting effects, such as light
sources, shading, and shadows.
 It can also create effects like haze or fog, which can be applied to a
single object or an entire scene.
 OpenGL is commonly associated with video games because of its
widespread use in 3D gaming. It provides developers with an easy
way to create crossplatform games or port a game from one platform
to another.
 OpenGL is also used as the graphics library for many CAD
applications, such as AutoCAD and Blender. Even Apple uses
OpenGL as the foundation of the macOS Core Animation, Core
Image, and Quartz Extreme graphics libraries
SYNTAX CODE FOR OPENGL
/*
GL01Hello.cpp: Test OpenGL C/C++ Setup
*/
#include <windows.h> // For MS Windows
#include <GL/glut.h> // GLUT, includes glu.h and gl.h
/* Handler for window-repaint event. Call back when the window first appears and whenever the window needs to be re-
painted. */
void display() {
glClearColor(0.0f, 0.0f, 0.0f, 1.0f); // Set background color to black and opaque
glClear(GL_COLOR_BUFFER_BIT); // Clear the color buffer
// Draw a Red 1x1 Square centered at origin
glBegin(GL_QUADS); // Each set of 4 vertices form a quad
glColor3f(1.0f, 0.0f, 0.0f); // Red
glVertex2f(-0.5f, -0.5f); // x, y
glVertex2f( 0.5f, -0.5f);
glVertex2f( 0.5f, 0.5f);
glVertex2f(-0.5f, 0.5f);
glEnd();
glFlush(); // Render now
}
/* Main function: GLUT runs as a console application starting at main() */
int main(int argc, char** argv) {
glutInit(&argc, argv); // Initialize GLUT
glutCreateWindow("OpenGL Setup Test"); // Create a window with the given title
glutInitWindowSize(320, 320); // Set the window's initial width & height
glutInitWindowPosition(50, 50); // Position the window's initial top-left corner
glutDisplayFunc(display); // Register display callback handler for window re-paint
glutMainLoop(); // Enter the infinitely event-processing loop
return 0;
}
OUTPUT
:-
THANK
YOU

GRAPHICS AND OPENGL.pptx

  • 1.
    COMPUTE R GRAPHICS MADE BY :-OM NATH SINGH ASSIGNMENT-3
  • 2.
    ANIMATION “Computer Animation hasthe ability to make any dead image alive” The main concept behind computer animation is to play the defined images at a faster rate to fool the viewer. So that the viewer should interpret those image as a continuous motion of image.
  • 3.
    GRAPHIC The term “Graphic”is often generally applied to several things : graphic and design, graphic arts, 3D animation.
  • 4.
    GRAPHIC EVOLUTION YEAR DEVELOPMENT 1906“Humorous phase of funny faces” {1st Animated Film} 1907 “Gertie the trained Dinasaur” {Cartoon was Develop} 1913 “Felix the cat” and “old doc yak” {Cartoon Series was develop} 1926 “Prince Achmed” {1st Full length Movie} 1928 “Mickey Mouse” {1st Cartoon with Sound} 1993 “Jurassic Park” {Movies using VFX and Animation}
  • 5.
    USE OF GRAPHICS ANIMATIONIN PRATICAL LIFE In the movie creation of movies specifically, these terms terms take special meanings, though.When creating a 3d animated movie, there are several steps, but I'll simplify this process to mainly include the steps in which we're interested. The final image displayed on screen is a combination of all these steps.  MODELING  SKINNING  ANIMATING  RENDERING
  • 6.
    OPENGL OpenGL stand forOpen Graphics Library. OpenGL is an API for drawing Graphics. The whole purpose of OpenGL is to transfer data from the CPU to GPU through what is known as OpenGL Object There is several types of OpenGL Object:-  Vertex Buffer Object {which help us to store a vertices of Characters}  Texture {which help us to store an Image} RENDERING PIPELINE Vertex Buffer Object GPU for Processing Data
  • 7.
    RENDERING PIPELINE It consistof six stages:- 1. Per Vertex Operation 2. Primitive Assembly 3. Primitive Processing 4. Rasterization 5. Fragment Processing 6. Per-Fragment Operation
  • 8.
    USES OF OPENGLIN PRACTICLE LIFE  OpenGL commands include drawing polygons, assigning colors to shapes, applying textures to polygons (texture mapping), zooming in and out, transforming polygons, and rotating objects.  OpenGL is also used for managing lighting effects, such as light sources, shading, and shadows.  It can also create effects like haze or fog, which can be applied to a single object or an entire scene.  OpenGL is commonly associated with video games because of its widespread use in 3D gaming. It provides developers with an easy way to create crossplatform games or port a game from one platform to another.  OpenGL is also used as the graphics library for many CAD applications, such as AutoCAD and Blender. Even Apple uses OpenGL as the foundation of the macOS Core Animation, Core Image, and Quartz Extreme graphics libraries
  • 9.
    SYNTAX CODE FOROPENGL /* GL01Hello.cpp: Test OpenGL C/C++ Setup */ #include <windows.h> // For MS Windows #include <GL/glut.h> // GLUT, includes glu.h and gl.h /* Handler for window-repaint event. Call back when the window first appears and whenever the window needs to be re- painted. */ void display() { glClearColor(0.0f, 0.0f, 0.0f, 1.0f); // Set background color to black and opaque glClear(GL_COLOR_BUFFER_BIT); // Clear the color buffer // Draw a Red 1x1 Square centered at origin glBegin(GL_QUADS); // Each set of 4 vertices form a quad glColor3f(1.0f, 0.0f, 0.0f); // Red glVertex2f(-0.5f, -0.5f); // x, y glVertex2f( 0.5f, -0.5f); glVertex2f( 0.5f, 0.5f); glVertex2f(-0.5f, 0.5f); glEnd(); glFlush(); // Render now }
  • 10.
    /* Main function:GLUT runs as a console application starting at main() */ int main(int argc, char** argv) { glutInit(&argc, argv); // Initialize GLUT glutCreateWindow("OpenGL Setup Test"); // Create a window with the given title glutInitWindowSize(320, 320); // Set the window's initial width & height glutInitWindowPosition(50, 50); // Position the window's initial top-left corner glutDisplayFunc(display); // Register display callback handler for window re-paint glutMainLoop(); // Enter the infinitely event-processing loop return 0; } OUTPUT :-
  • 11.