Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5964137
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:22:38+00:00 2026-05-22T19:22:38+00:00

Is it possible in OpenGL to separate the window into multiple vertical panels such

  • 0

Is it possible in OpenGL to separate the window into multiple vertical “panels” such that each displays a different set of shapes?

I would want to synchronize the horizontal axes across those panels, but the vertical axes would be completely independent (location as well as scale).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T19:22:39+00:00Added an answer on May 22, 2026 at 7:22 pm

    The first thing that comes to mind is to apply multiple calls to glViewport(). You have to render each vertical strip in turn and then set the viewport to render to the next vertical strip and repeat. I do this to split the screen in half and render a scene from two different viewpoints, but there’s no reason that you should have to render the same scene in the second or n-th viewport.

    So my {edited} code looks something like this:

    glEnable(GL_SCISSOR_TEST);
    ...
    // Draw the left scene
    glViewport(0,0,halfWidth,fullHeight);
    glScissor(0,0,halfWidth,fullHeight);
    glClear(...);
    glPushMatrix();
    setLeftEyeModelView();
    renderScene();
    glPopMatrix();
    
    // Draw the right scene
    glViewport(halfWidth,0,halfWidth,fullHeight);
    glScissor(halfWidth,0,halfWidth,fullHeight);
    glClear(...);
    glPushMatrix();
    setRightEyeModelView();
    renderScene();
    glPopMatrix();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to have openGL in 2 windows? as in 2 different windows
Is it possible to resize an openGL window (or device context) created with wglCreateContext
I'm working on a c++ code that uses SDL/opengl. Is this possible to create
In OpenGL, is it possible, to draw a sequence of polygons that doesn't check
On iOS I have always assume that it is not possible to do OpenGL
Is it possible to render all of the OpenGL ES things into a normal
I know that OpenGL can work with a classic window created by CreateWindow and
Is it possible in opengl to setup blending to achieve additive color overlays? Red
Is it possible to compile and run OpenGL programs from under Cygwin? If yes,
I have seen metal/plastic/water/fire/... shaders for OpenGL. However, it it possible to render something

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.