Placebos 3
Placebos 3
Essays Question
1. Discuss the differences between raster and vector graphics.
Include their applications and advantages or disadvantages
**Outline:** Define raster and vector graphics, provide
examples of both, discuss scalability, quality, file sizes, and suitable
applications.
Answers
1. Differences Between Raster and Vector Graphics
Definition:
- Raster Graphics: Composed of a grid of pixels; each pixel has
color information. Examples include photographs and digital
paintings (e.g., JPEG, PNG).
- Vector Graphics: Made up of paths defined by mathematical
equations. Examples include logos and illustrations (e.g., SVG, AI).
Scalability:
- Raster: Loses quality when scaled up (pixelated).
- Vector: Infinitely scalable without loss of quality; retains crisp
edges at any size.
Quality:
- Raster: Higher detail at native resolution; quality depends on pixel
density (DPI).
- Vector: Maintains quality regardless of size; line art and shapes
appear smooth.
File Sizes:
- Raster: Typically larger files due to pixel information; size
increases with resolution.
- Vector: Generally smaller files as they store mathematical data.
Applications:
- Raster: Photography, digital paintings, web graphics.
- Vector: Branding, illustrations, typography.
Advantages/Disadvantages:
- Raster: Detailed, but poor scalability and larger files.
- Vector: Scalable and small files, but less detailed for complex
images.
---
2. Rendering Pipeline in Computer Graphics
Key Stages:
- Geometry Processing: Converts 3D models into a format suitable
for rendering. Involves transformations (translation, rotation,
scaling) to position objects in the scene.
- Rasterization: Translates 3D objects into 2D pixels on screen;
determines which pixels correspond to objects.
- Shading: Applies color and lighting effects to pixels. Involves
calculating light interaction, applying texture, and determining final
pixel color.
Color Perception:
- Different models represent colors based on human perception
and application needs.
Applications:
- RGB: Suited for screens and digital displays (additive model).
Used in web design, photography.
- CMYK: Best for print media (subtractive model). Common for
brochures, magazines.
- HSV: Useful for color selection and adjustments in editing
software, representing Hue, Saturation, and Value.
---
Types of Shaders:
- Vertex Shaders: Process vertex data; handle transformations,
lighting, and camera positioning.
- Fragment Shaders: Determine pixel color and texture; apply
complex visual effects.
- Compute Shaders: Handle general-purpose computing tasks
beyond just graphics; often for physics simulations or advanced
calculations.
Examples of Uses:
- Vertex Shaders: Adjusting 3D models' positions in real-time
gaming.
- Fragment Shaders Creating realistic water surfaces or detailed
textures in games.
- Compute Shaders: Running simulations for particle effects or AI
calculations.