PDA

View Full Version : A simple question about glScissor().



newbiecow
12-21-2012, 07:22 PM
Does the scissor operation such as glScissor() operate before the rasterization of the geometric elmenets or after it?

mbentrup
12-22-2012, 04:37 AM
Does the scissor operation such as glScissor() operate before the rasterization of the geometric elmenets or after it?

The OpenGL Specs say that the scissor test comes after rasterization, but the OpenGL Specs only define behaviour, not implementation. That means a driver may implement the scissor test in any way that yields the same results as the OpenGL Spec. Many drivers implement the scissor in the rasterizer, i.e. they don't generate fragments that fall outside the scissor rectangle.

newbiecow
12-22-2012, 09:54 AM
The OpenGL Specs say that the scissor test comes after rasterization, but the OpenGL Specs only define behaviour, not implementation. That means a driver may implement the scissor test in any way that yields the same results as the OpenGL Spec. Many drivers implement the scissor in the rasterizer, i.e. they don't generate fragments that fall outside the scissor rectangle.

Thanks a lot!
And can you tell me what graphics card you are using? Or do you know whether the graphics card as ATI or Nvidia do scissor test before rasterization or after it?

mbentrup
12-27-2012, 01:38 AM
I don't know how specific cards implement scissor, but I think most implement the scissor test directly in the rasterizer. See http://fgiesen.wordpress.com/2011/07/06/a-trip-through-the-graphics-pipeline-2011-part-6/ for a detailed explanation how modern hardware rasterizers work.

newbiecow
12-27-2012, 03:31 AM
I don't know how specific cards implement scissor, but I think most implement the scissor test directly in the rasterizer. See http://fgiesen.wordpress.com/2011/07/06/a-trip-through-the-graphics-pipeline-2011-part-6/ for a detailed explanation how modern hardware rasterizers work.

Thanks a lot, mbentrup! You've really provided something valuable.


Best Regards,


newbiecow