Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 5 of 5

Thread: A simple question about glScissor().

Hybrid View

  1. #1
    Intern Contributor
    Join Date
    Dec 2012
    Posts
    74

    Question A simple question about glScissor().

    Does the scissor operation such as glScissor() operate before the rasterization of the geometric elmenets or after it?

  2. #2
    Junior Member Regular Contributor
    Join Date
    Dec 2009
    Posts
    198
    Quote Originally Posted by newbiecow View Post
    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.

  3. #3
    Intern Contributor
    Join Date
    Dec 2012
    Posts
    74
    Quote Originally Posted by mbentrup View Post
    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?

  4. #4
    Junior Member Regular Contributor
    Join Date
    Dec 2009
    Posts
    198
    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...e-2011-part-6/ for a detailed explanation how modern hardware rasterizers work.

  5. #5
    Intern Contributor
    Join Date
    Dec 2012
    Posts
    74
    Quote Originally Posted by mbentrup View Post
    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...e-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
    Last edited by newbiecow; 12-27-2012 at 03:48 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •