Re: ScissorRect and ViewPort

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




"Jens Pedersen":
I need to make some clipping in the images I render.
I see two ways of doing that: ScissorRect and ViewPort
Which one is most efficient?
And what is the difference?

The Viewport transforms the divided clipping space to a
rectangle, while the scissorRect clips to a rectangle of
the viewport.

Clipping to the Viewport is implicizly done in clipping-space
on geometry level (in the triangle setup phase). In contrast,
the scissor-test is logically a per pixel operation, somewhere
near to z-test. This doesn't tell about it's actual performance.
Another option would be to set up user clipping planes.

Gruss

Jan Bruns

.



Relevant Pages

  • Re: How to select a viewport to draw on it under multi-viewport scenario?
    ... I have tried to make multi-viewports and there clipping volumes. ... But the only way I have come to know to draw something in a particular ... viewport is by drawing within the context of a viewport i.e setting ... viewport,its clipping volume then followed by drawing commands that ...
    (comp.graphics.api.opengl)
  • Re: How to select a viewport to draw on it under multi-viewport scenario?
    ... I have tried to make multi-viewports and there clipping volumes. ... But the only way I have come to know to draw something in a particular ... viewport is by drawing within the context of a viewport i.e setting ... viewport,its clipping volume then followed by drawing commands that ...
    (comp.graphics.api.opengl)
  • Re: How to select a viewport to draw on it under multi-viewport scenario?
    ... viewport is by drawing within the context of a viewport i.e setting ... viewport,its clipping volume then followed by drawing commands that ... viewport and its clipping volume and followed by its draw commands... ...
    (comp.graphics.api.opengl)
  • Re: How to select a viewport to draw on it under multi-viewport scenario?
    ... I have tried to make multi-viewports and there clipping volumes. ... But the only way I have come to know to draw something in a particular ... viewport is by drawing within the context of a viewport i.e setting ... viewport,its clipping volume then followed by drawing commands that ...
    (comp.graphics.api.opengl)
  • How to select a viewport to draw on it under multi-viewport scenario?
    ... I have tried to make multi-viewports and there clipping volumes. ... But the only way I have come to know to draw something in a particular ... viewport is by drawing within the context of a viewport i.e setting ... viewport,its clipping volume then followed by drawing commands that ...
    (comp.graphics.api.opengl)