Results 1 to 3 of 3

Thread: Interior Clipping

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2002
    Location
    austin, tx, us
    Posts
    20

    Interior Clipping

    Is there any way to do interior clipping in Ortho Mode? I'd like to only render to the edges of the window and not waste precious video memory on the untouched interior of the window.

    The only pseudo-method I am aware of is to use four windows (ie one for top, bottom, left, and right edges). But I'd like to avoid this overhead if it's possible in hardware.

    Any ideas?

  2. #2
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,450

    Re: Interior Clipping

    If I'm understanding this correctly "precious video memory" means you'd like to save fillrate and need a negative scissor.
    There's none in OpenGL. You either need to specify the four border regions as individual scissor rects and draw the geometry four times, or mask the interior rectangle with a stencil or depth buffer test. If the geometry is complex, the latter is faster.

  3. #3
    Junior Member Newbie
    Join Date
    Dec 2002
    Location
    austin, tx, us
    Posts
    20

    Re: Interior Clipping

    Cool, thanks for the help.

    weston

Similar Threads

  1. Interior Mapping (Humus demo)
    By Jan in forum OpenGL: Advanced Coding
    Replies: 9
    Last Post: 09-16-2008, 11:55 AM
  2. Replies: 1
    Last Post: 09-02-2003, 01:45 PM
  3. OT: Interior Home Designer
    By akn81 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 04-20-2003, 08:26 AM
  4. OT: Interior Home Designer
    By akn81 in forum OpenGL: User Software
    Replies: 0
    Last Post: 04-20-2003, 02:38 AM
  5. Clipping (not clipping) in opengl
    By FunkyLovin in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 06-04-2001, 05:08 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean