CG.....
CG.....
The distance of the object from the center The distance of the object from the
of projection is infinite. center of projection is finite.
Object size remains same irrespective of Objects far away look smaller.
distance.
Used in engineering drawings, CAD, etc. Used in 3D graphics, games, etc.
Two types of parallel projection : Three types of perspective projection:
1.Orthographic 1.One point perspective,
2.Oblique 2.Two point perspective,
3. Three point perspective.
Back Face Detection and Removal:
Backface detection and removal are techniques used in computer graphics to improve
efficiency of rendering by eliminating the parts of 3D objects that are not visible to the observer
as they are "facing away" from the camera.
These techniques prevent rendering such surfaces.
Back Face: In a 3D object, a backface refers to the surface of a polygon that is not visible to the
observer as they are "facing away" from the camera.
Back Face Detection:
To detect whether a face of a polygon is a back face or not there are two methods:
1. Surface Normal Method:
• Calculate the dot product of the surface normal (N) and the view vector (V).
• If the dot product is positive (N . V > 0) the face is a backface and can be ignored.
• If the dot product is negative (N . V < 0) the face is not a backface and cannot be
ignored.
2. Z-Component Check (Simpler):
• If the z-component of the normal is negative, it’s a backface.
Backface Removal:
• Once the backfaces are detected, they are not sent to the rendering pipeline.
• This saves computational resources and optimizes rendering.
Explain the following terms with examples: i) Color gamut ii) Specular Reflection iii) Diffuse
reflection
Color Gamut
• Refers to the range of colors a device (monitor, printer, camera) can display or reproduce.
• Represents a subset of all colors perceivable by the human eye.
• Helps ensure color consistency across different devices (e.g., monitors, printers,
projectors).
• Example: A wide-gamut monitor (Adobe RGB) displays more vibrant colors than a
standard sRGB monitor.
Specular Reflection:
• Specular reflection is a type of reflection in which the light reflects at the same angle as
it strikes the surface (angle of incidence = angle of reflection).
• It creates sharp, mirror-like reflections.
• Occurs on smooth, shiny surfaces like glass, water, or polished metal.
Diffuse Reflection:
• Diffuse reflection occurs when light hits a rough surface and is scattered in multiple
directions.
• It doesn't produce clear images but gives a uniform color appearance.
• Common in matte or non-glossy surfaces like paper or walls.
Ambient Light:
Point Source:
• A light source that emits light equally in all directions from a single, tiny point.
• Commonly used in computer graphics to simulate lights like, light bulb or stars.
• Light spreads uniformly in all directions.
Diffuse Illumination
• Refers to light that hits a surface and scatters in all directions evenly.
• Simulates how light interacts with rough or matte surfaces.
• Produces a soft, non-reflective appearance without sharp highlights.
• Common in computer graphics for realistic lighting of objects.
Compare Gauraud shading and phong shading.
Gouraud Shading Phong Shading
Gouraud shading was introduced by Phong Shading was introduced by Phong
Henri Gouraud in 1970. Bui Tuong in 1973.
Lighting equation used at each vertex. Lighting equation used at each pixel.
Requires average processing and less Requires high processing and more time.
time.
Produces average quality. Produces good quality.
Generation of Helbert curve is simple it visits center of every square grid having size 2 n x 2 n
First approximation:
• In this the square is divided into 4 quadrants and curve joins the center of all
quadrants.
Second approximation:
• In this each quadrant is further divided into 2x2 grids ending in 16 squares curve join
center of all quadrants.
Third approximation:
• In this each of the 16 squares is further subdivided into 2x2 grids ending in 64
squares curve joins center of all quadrants.
Infinite Approximations:
• If we keep subdividing infinitely, the Hilbert curve will fill the entire square, coming
close to every point without crossing itself.
Interpolation and Approximation:
Interpolation and approximation are two techniques used to create smooth curves from a
given set of sample points.
Interpolation
• Interpolation involves constructing a curve that passes exactly through each given
sample point.
• In other words, the interpolated curve will intersect each sample point.
• Common interpolation techniques include linear interpolation, polynomial
interpolation.
Approximation
• In approximation the curve does not require to pass through each sample point.
• Instead, the curve follows the general shape indicated by the sample points.
• The curve’s shape is influenced by sample points (control points) but does not
necessarily pass through them.
• It is used when a smoother or more generalized representation is desired.
• Common approximation techniques include B-splines or Bezier curves.
Bezier Curve
• The degree of the Bezier curve is one less than the number of control points
• Moving a control point affects only a part of the curve, making it easy to modify
shapes.
• Always interpolates first and the last control points and approximates remaining.
• They are unaffected by transformations like translation, rotation, and scaling.
• Bezier curve always satisfies convex hull property.
• Bezier curve can fit any number of control points.
Segment:
It is used to represent the basic building blocks of a graphical scene.
Segment is a part of the display file.
Segments allow efficient organization, storage, and manipulation of individual parts of a
graphical scene.
Segment Table:
The structure used to organize all information related to segment is called Segment Table.
It is used to keep records of length of similar segments in its memory.
Segment Name:
• A unique identifier or name assigned to each segment.
Segment Start:
• Indicates the starting address or position of the segment in the display file.
Segment Size:
• Specifies the amount of memory or storage allocated for the segment.
Visibility:
• Determines whether the segment is visible (ON) or hidden (OFF) on the display.
Scale X:
• Represents the horizontal scaling factor applied to the segment.
Scale Y:
• Represents the vertical scaling factor applied to the segment.
Explain creation, closing, deletion and renaming of segment with example.
Segment Creation: Definition: Creating a new segment to store or manage data.
Algorithm:
1.If any segment is open, give error message:
“Segment is still open” and go to step 8.
2. Read the name of the new segment.
3. If the segment name is not valid, give error message:
“Segment name not a valid name” and go to step 8.
4. If given segment name already exists, give error message:
“Segment name already exists in name list” and go to step 8.
5. Make next free storage area in display file as start of new segment.
6. Initialize size of new segment to 0 and all its attributes to their default values.
7. Inform that the new segment is now open.
8. Stop.
Closing a Segment:
• Definition: Marks the segment as complete and prevents from accidental modifications
and saves the segment for reuse.
Algorithm for Segment Closing
Step 1: Start.
Step 2: Check if a Segment is Open
Step 2.1: If no segment is open, display the error message:
"No segment is open now" and exit.
Step 3: Rename the currently open segment to an unnamed segment (e.g., 0).
Step 4: If another unnamed segment already exists, delete it and initialize it with no
instructions.
Step 5: Allocate free storage area in the display file at the start of the unnamed segment.
Step 6: Set the size of the unnamed segment to 0.
step 7: Stop.
• Deleting a Segment: **
Definition: Removes a segment from memory or storage, to free up resources or remove
unnecessary segments.
Algorithm for Deleting a Segment:
1. Read the name of the segment to be deleted.
2. If segment name is not valid, give error message:
“Segment name is not a valid name” and go to step 8.
3. If the segment is open, give error message:
“Can’t delete an open segment” and go to step 8.
4. If size of segment is less than 0, no processing is required and go to step 8.
5. The segments which follow the deleted segment are shifted by its size.
6. Recover deleted space by resetting index of next free instruction.
7. The starting position of shifted segments is adjusted by subtracting the size of deleted
segment from it.
8. Stop.
• Renaming a Segment: **
Renaming helps in maintaining clarity and avoiding naming conflicts.
Algorithm:
1. If both old and new segment names are not valid, give error message:
“Segment names are not valid names” and go to step 6.
2. If any of two segments is open, give error message:
“Segments are still open” and go to step 6.
3. If new segment name given already exists in the display list, give error message:
“Segment name already exists” and go to step 6.
4. The old segment table entry are copied into new position.
5. Delete the old segment.
6. Stop.
Write a short note on motion specification methods based on:
i) Geometric and kinematics information.
ii) Specification methods based on physical information.
Physical Information:
• This method uses physics principles, such as mass, force, and gravity, to create realistic
motion.
• Focuses on the forces (e.g., gravity) and physical properties (e.g., mass, friction) that
affect motion.
• Describing motion based on force and mass.
Important Features of NVIDIA Gaming Platform
1. High-Performance GPUs: (GeForce RTX series)
o NVIDIA's GeForce RTX graphics cards are designed for gamers who demand high-
quality visuals.
o Supports real-time ray tracing and AI-powered DLSS (Deep Learning Super
Sampling) for enhanced visual quality.
2. Ray Tracing Technology:
o NVIDIA's RTX GPUs are equipped with real-time ray tracing, a rendering
technique that produces realistic lighting, shadows, and reflections.
o This creates more realistic and engaging visuals in supported games.
3. DLSS (Deep Learning Super Sampling):
o AI-based rendering technology that boosts frame rates while maintaining high-
quality visuals.
o Improves performance without sacrificing image quality.
4. NVIDIA Reflex:
o Reduces system latency for faster response times in competitive gaming.
o Provides a smoother and more precise gaming experience.
5. NVIDIA G-Sync:
o Synchronizes the monitor’s refresh rate with the GPU to eliminate screen tearing
and reduce input lag.
o Ensures a smooth and stutter-free gaming experience.
6. GeForce Experience:
o This software provides features like game optimization, screen recording, and live
streaming and updating drivers.
o Easy-to-use interface for managing games and settings.
7. GeForce NOW (Cloud Gaming):
o Cloud gaming platform that allows playing and streaming high-quality games on
low-end devices via the internet.
o Supports cross-platform gaming.
Memory Block:
• Manages data flow between the processor and external components via the 64-bit data
bus.
• Acts as an intermediary for both data and instructions.
Graphics Block:
• Used for complex number calculations which includes real (kr) and imaginary (ki)
components.
T Block:
• It acts as a temporary register or buffer for intermediate results before sending them to
the adder block.