Com 422
Com 422
MATRIC NO:
COURSE CODE: COM 422
COURSE TITLE: APPLIED COMPUTER GRAPHICS & ANIMATION
PRACTICAL ASSIGNMENT
ASSIGNMENT 1: What is low-pass filter algorithm and how they applied to solve problem in
computer graphics.
Definition
A low pass filter (LPF) is an algorithm that allows low-frequency signals to pass through while
attenuating (reducing) the amplitude of higher-frequency signals. In computer graphics, LPFs are
used to smooth images by reducing noise and detail.
Application in Computer Graphics
Image Smoothing: LPFs help reduce noise in images, making them appear smoother. This is
particularly useful in pre-processing images for analysis or rendering.
Anti-Aliasing: LPFs can be used to minimize aliasing effects when rendering graphics, leading to
smoother edges and transitions.
Texture Filtering: When textures are applied to 3D models, LPFs can help in filtering textures to
prevent high-frequency noise from appearing on surfaces.
ASSIGNMENT 4: How does resolution affect the effects on the properties of a graphics
image?
Definition
Resolution refers to the amount of detail an image holds, typically measured in pixels (width x
height).
Effects
Detail and Clarity: Higher resolution images contain more pixels, resulting in finer detail and
clearer visuals. Low-resolution images may appear pixelated or blurry.
File Size: Higher resolution images generally have larger file sizes, which can affect loading
times and storage requirements.
Display Quality: The resolution of a display device (e.g., monitors, TVs) affects how well
images are rendered. Higher resolution displays can show more detail and provide a better
viewing experience.
ASSIGNMENT 5: With help of a diagram describe how live images are produced on the
both LED and CRT display unit.
Explanation
CRT Display: Utilizes an electron gun to shoot electrons at a phosphor-coated screen, creating
images through luminescence.
LED Display: Composed of an array of light-emitting diodes (LEDs) that emit light directly to
form images.
Definition
Graphics rendering is the process of generating an image from a model by means of computer
programs. It involves converting 3D models into 2D images.
Example
Consider a simple 3D scene with a cube. The rendering process involves:
Modeling: Creating a 3D model of the cube.
Texturing: Applying textures to the cube's surfaces.
Lighting: Setting up light sources to illuminate the scene.
Camera Setup: Defining the viewpoint from which the scene will be rendered.
Rendering: Using a rendering engine (like OpenGL, DirectX) to produce the final 2D image of
the cube.
ASSIGNMENT 10. Use the Java and C language to produce line and rectangle.
Java Example
java
Copy
import javax.swing.*;
import java.awt.*;
int main() {
int gd = DETECT, gm;
initgraph(&gd, &gm, "");
// Draw Line
line(50, 50, 200, 50);
// Draw Rectangle
rectangle(50, 70, 200, 170);
getch();
closegraph();
return 0;
}
This comprehensive overview provides insights into various aspects of computer graphics,
including algorithms, pixel functionality, visualization concepts, resolution effects, display
technologies, transformations, SVG graphics, AutoCAD tasks, graphics rendering, and
programming examples.