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 3 of 3

Thread: clipping cube

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member Newbie
    Join Date
    Jul 2017
    Posts
    14

    clipping cube

    Hi everybody!

    Hope someone could help with my question. As it's known, by default, OpenGL crops everything outside the cube bounded by planes x={-1,1}, y={-1,1}, z={-1,1}. How could one deal with this, for example, if there is a need to draw something bigger than this cube? Is there any way to scale this cube?

    Thanks!

  2. #2
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    4,173
    Read the Viewing chapter in your favorite OpenGL book (for instance, this one), which discusses MODELING, VIEWING, and PROJECTION coordinate space transforms and the intermediate coordinate spaces (OBJECT, WORLD, EYE, and CLIP). This page has a brief overview.

    The cube you speak of is the conceptual bounds of clipping in NDC space, though clipping itself actually happens in the prior coordinate space (CLIP space). The scaling and orientation to fit this cube is done by the previously-mentioned 3 transforms.

  3. #3
    Junior Member Newbie
    Join Date
    Jul 2017
    Posts
    14
    Oh thanks, I'll check it.

Posting Permissions

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