Introduction to Computer Graphic
Graphic computer is a field that learn how to produce an image using a computer. So the computer graph will be discussed drawing techniques.Graphic produce computer-software software design graphics at this time is very powerful. Graphic computer software with the GUI (graphics user interface) that is easy and fun.
Graphic computer is a field that learn how to produce an image using a computer. So the computer graph will be discussed drawing techniques.Graphic produce computer-software software design graphics at this time is very powerful. Graphic computer software with the GUI (graphics user interface) that is easy and fun.
Graphic vs Image Processing
Computer Graphic difference, namely:
- Graphic computer generate an image
- Material contains drawing techniques
- The result image
Image Processing is the difference, namely:
- Image processing to make a picture
- Include techniques to improve the material and presents the information from the image
- The result can be images or information
Photos vs. Pictures
The difference is in the photo:
The difference is in the photo:
- Photos from the resulting capture (take) a picture of
- Details of any complete object, for example, the number of cats caught in the stash is.
The difference is in the image:
- Image generated from the process of imitation or
- Details tidaklengkap, for example, who want to calculate the number of new mustache cat is described in accordance with the amount
Benefit Computer Graphic (Software Graphics)
- Games and Entertainment
- Graphic Design
- Graph Visualization and Monitoring
- CAD (Computer Aided Design)
- GUI (Graphics User Interface)
- Image Processing
In the Graphic Materials 1:
- Primitive Drawing
- Object Dimensions Graphic 2
- Transformation 2 Dimensions
- Object Graphic 3 Dimensions
- Transformation 3 Dimensions
- Visible and Invisible
- Shading
- Z-Order
In the Graphic Materials 2:
- Z-Order and Z-buffer
- Morphing
- Color Map
- Texture Map
- Curve
- Camera View
- Graphic Tranformasi geometry
Recognize OpenGL Graphics Library
OpenGL graphics library is a standard that is used needs to graphical programming. In addition to OpenGL, the graphics library used is Direct-X. OpenGL is Open-Source, multi-platform and multi-language. Currently, all programming languages support OpenGL and OpenGL can work in Windows environment, Unix, SGI, Linux, FreeBSD, etc.
Library is the basis of OpenGL GLUT, with facilities that can be developed. For the Windows operating system, this library consists of 3 files, namely:
- Glut.h
- Glut32.lib
- Glut32.dll
How to Install GLUT Library as follows:
OpenGL graphics library is a standard that is used needs to graphical programming. In addition to OpenGL, the graphics library used is Direct-X. OpenGL is Open-Source, multi-platform and multi-language. Currently, all programming languages support OpenGL and OpenGL can work in Windows environment, Unix, SGI, Linux, FreeBSD, etc.
Library is the basis of OpenGL GLUT, with facilities that can be developed. For the Windows operating system, this library consists of 3 files, namely:
- Glut.h
- Glut32.lib
- Glut32.dll
How to Install GLUT Library as follows:
- Copykan file glut.h in the folder c: \ Program Files \ Microsoft Visual Studio \ VC98 \ Include \
- GLCopykan file glut32.lib in the folder c: \ Program Files \ Microsoft Visual Studio \ VC98 \ lib
- Copykan file glut32.dll in the folder c: \ Windows \ System32
Understanding Graphical Programming
Graphical programming is programming that is used to produce images on a computer using the library. Technic-programming technique is based on graphical techniques to portray the geometry as a basic structure is a graphical programming data. Result visualization graphics.
Basic Structure of Graphics Programming Using C + +
-------------------------------------------------- ------------
# include< GL/glut.h >
userdraw void (void)
(
/ / This is the place to draw
)
void display (void)
(
glClear (GL_COLOR_BUFFER_BIT);
userdraw ();
glutSwapBuffers ();
)
intmain (intargc, char ** argv)
(
glutInit (& argc, argv);
glutInitDisplayMode (GLUT_DOUBLE GLUT_RGB);
glutInitWindowPosition (100.100);
glutInitWindowSize (640.480);
glutCreateWindow ( "Drawing by RachmanArdyansyah");
glClearColor (0.0, 0.0, 0.0, 0.0);
gluOrtho2D (-320., 320th, -240.0, 240.0);
glutIdleFunc (display);
glutDisplayFunc (display);
glutMainLoop ();
return 0;
)
-------------------------------------------------- -----------
# include < GL/glut.h >
Graphical programming using OpenGL-GLUT header need glut.h existing in folder
c: \ Program Files \ Microsoft Visual Studio \ VC98 \ bin \ GL
GLvoid userdraw (void)
(
/ / This is place to draw
)
Userdraw function is a function to create program code to produce an image.
glutInitWindowPosition (100.100);
glutInitWindowSize (640.480);
Creating windows with size (640.480) with the top left of the dots placed on the window position (100.100) Is the computer.
glutCreateWindow ( "Drawing By RachmanArdyansyah");
Title on the windows with the "Drawing By RachmanArdyansyah".
glClearColor (1.0,1.0,1.0,0.0);
Defines the color of windows created with the color (1,1,1) is white.
gluOrtho2D (-320., 320th, -240., 240th);
Defining the size of the system of coordinates with the range is sumbux [-320.320], and range for the y axis is [-240.240].
Graphical programming is programming that is used to produce images on a computer using the library. Technic-programming technique is based on graphical techniques to portray the geometry as a basic structure is a graphical programming data. Result visualization graphics.
Basic Structure of Graphics Programming Using C + +
-------------------------------------------------- ------------
# include
(
/ / This is the place to draw
)
void display (void)
(
glClear (GL_COLOR_BUFFER_BIT);
userdraw ();
glutSwapBuffers ();
)
intmain (intargc, char ** argv)
(
glutInit (& argc, argv);
glutInitDisplayMode (GLUT_DOUBLE GLUT_RGB);
glutInitWindowPosition (100.100);
glutInitWindowSize (640.480);
glutCreateWindow ( "Drawing by RachmanArdyansyah");
glClearColor (0.0, 0.0, 0.0, 0.0);
gluOrtho2D (-320., 320th, -240.0, 240.0);
glutIdleFunc (display);
glutDisplayFunc (display);
glutMainLoop ();
return 0;
)
-------------------------------------------------- -----------
# include <
Graphical programming using
GLvoid userdraw (void)
(
/ / This is place to draw
)
glutInitWindowPosition (100.100);
glutInitWindowSize (640.480);
glutCreateWindow ( "Drawing By RachmanArdyansyah");
glClearColor (1.0,1.0,1.0,0.0);
Defines the color of windows created with the color (1,1,1) is white.
gluOrtho2D (-320., 320th, -240., 240th);

