ch6Graphucs Flashcards
(100 cards)
What is clipping in computer graphics?
It’s the process of determining which parts of objects should be displayed and which should be discarded.
Why is clipping necessary?
To avoid rendering objects outside the viewing area and improve performance.
What does OpenGL do regarding clipping?
It performs clipping automatically, but understanding the process is important.
What are the main topics under clipping?
Windowing concepts, point clipping, line clipping, and polygon clipping.
What is windowing?
Selecting a portion of a scene in world coordinates to display on the screen.
What are world coordinates?
Coordinates that define objects in the entire scene.
What defines the horizontal and vertical limits of the window?
wxmin, wxmax for horizontal; wymin, wymax for vertical.
What happens to objects outside the window?
They are clipped and not displayed.
Why do we use a clipping window?
To reduce computational cost and display only the visible portion of a scene.
What is the condition for a point to be visible?
wxmin ≤ x ≤ wxmax and wymin ≤ y ≤ wymax.
What happens if a point doesn’t meet the condition?
It is clipped.
What is line clipping?
Determining if a line is fully, partially, or not at all within a clipping window.
What if both endpoints of a line are inside the window?
The line is not clipped.
What if one endpoint is inside and the other is outside?
The line is partially clipped.
What if both endpoints are outside?
Further checks are needed to determine if it intersects the window.
What is brute force line clipping?
A basic method of checking line visibility through boundary intersection calculations.
What are the four window boundaries?
Left, right, top, bottom.
Why is brute force clipping inefficient?
It requires many calculations, which are costly in large scenes.
What does ‘TA’ stand for in brute force?
Trivially Accepted.
What does ‘TR’ stand for in brute force?
Trivially Rejected.
When is a line trivially accepted (TA)?
When both endpoints lie inside the clipping window.
When is a line trivially rejected (TR)?
When both endpoints lie outside the same boundary.
What happens if a line is neither TA nor TR?
Check for intersections with the window edges.
What are the two outcomes for lines with both endpoints outside?
Discard if completely outside or clip if it intersects the window.