Questions tagged [clipping]

Any procedure which identifies that portion of a picture which is either inside or outside a region is referred to as a clipping algorithm or clipping. The region against which an object is to be clipped is called clipping window.

Any procedure which identifies that portion of a picture which is either inside or outside a region is referred to as a clipping algorithm or clipping. The region against which an object is to be clipped is called clipping window.

Examples

In 2D graphics for example, if the user of an image editing program is modifying an image and has "zoomed in" the view to display only the top half of the image, there is no need for the program to spend any CPU time doing any of the calculations or memory moves needed to display the bottom half. By clipping the bottom half of the image and avoiding these calculations, the program runs faster.

In 3D graphics, in a city street scene the computer may have model, texture, and shader data in memory for every building in the city; but since the camera viewing the scene only sees things within, say, a 90° angle, or field of view, the computer does not need to transform, texture, and shade the buildings that are behind the camera, nor those which are far enough to the side that they are off the screen. The clipping algorithm lets the rendering code skip all consideration of those buildings, and the program runs faster

(From wikipedia)

665 questions
0
votes
1 answer

Clipping surface to viewport

I'm trying to render a surface with a method that takes a Surface and X, Y position to render at. The problem is that when the surface is outside the screen by one small pixel, it doesn't render at all. Why is that? I'm trying to search for DirectX…
Deukalion
  • 2,516
  • 9
  • 32
  • 50
0
votes
1 answer

iOS UIImageView clip/mask image

Basically, I am making a view that has two images. Image one is shown in a right triangle that takes up the top left of the view, and image two takes the up the right triangle that takes up the bottom right. Imagine a square cut diagonally, a…
JP.
  • 544
  • 5
  • 20
0
votes
0 answers

AutoCompleteTextView suggestions clips the textview

I have implemented a custom Adapter for my AutoCompleteTextView along with a custom list item view for the suggestions. Everything works except the suggestions dialog clips the suggestions. This is most likely caused by the fact that the textview is…
oUJi
  • 100
  • 1
  • 1
  • 6
0
votes
1 answer

Corona SDK - Clip objects in "letterbox" scaling mode

Is there a way to clip objects in "letterbox" scaling mode? I can add black rectangles over the areas that I want to appear as clipped, but actual clipping should have a performance benefit. Is it possible?
Anonymous1
  • 3,877
  • 3
  • 28
  • 42
0
votes
2 answers

Gap in line when trying to join up frames

I am trying to join several frames together to achieve a grid type arrangement: On the left hand side there is a gap in the frame lines. How can I get this line to join up with the frame below?
CJ7
  • 22,579
  • 65
  • 193
  • 321
0
votes
1 answer

Clip the Path drawing in Quartz 2D iOS

I am trying to draw a line graphs. I am able to draw the line graph but not able restrict the drawing area. I want to draw the line graph from start to end position. But its coming beyond the drawing area. Could you please help me how to clip the…
Srivathsa
  • 606
  • 10
  • 34
0
votes
1 answer

Clipping with GL_LINES in OpenGL

I would like to implement the Cohen-Sutherland Algorithm with dynamic clipping volume in 3D Space. (i.e. with 27 regions). Assume I have somthing like this: glBegin(GL_LINES); glVertex3f(x1, y1, z1); glVertex3f(x2, y2, z2); glEnd(); Is clipping…
0
votes
1 answer

opengl sphere clipping

I've been experimenting with programs from my text book that involved clipping 2-D polygons using glOrtho and then creating glutWireSpheres in gluPerspective. My goal is to clip half the sphere with a plane, however, I am having trouble clipping 3-D…
krikara
  • 2,395
  • 10
  • 37
  • 71
0
votes
3 answers

positioning background image of div using javascript

I am trying to make a clipping window but it is not happening, here is the code sample: