Results 1 to 2 of 2

Thread: Multiple ViewPorts

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2002

    Multiple ViewPorts

    I had make a window that is splitted to 4 parts .one for the perspective view and other for top , left , bottom views .but i have a problem when window redrawen all windows are erased except the last one (Perpective) .How to solve that problem ?

  2. #2
    Senior Member OpenGL Guru
    Join Date
    Feb 2000

    Re: Multiple ViewPorts

    I assume you do something like this for each viewport.

    1: Call glViewport to set viewport.
    2: Clear the viewport with glClear
    3: Setup matrices and draw.

    Common problem here is step 2. glClear will clear the entire window, erasing all previous viewports. What you need to do is either clear only once, which will clear all viewports at the same time, or restrict the clear area. Restricting the clear area is done with glScissor.

Similar Threads

  1. Multiple viewports
    By EugChriss in forum Vulkan
    Replies: 2
    Last Post: 03-29-2018, 06:54 PM
  2. Multiple Viewports, Multiple Textures - 3D
    By Cyndy in forum OpenGL: Advanced Coding
    Replies: 4
    Last Post: 04-08-2010, 04:47 PM
  3. Multiple viewports
    By clintCJM in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 10-09-2006, 12:40 PM
  4. multiple viewports
    By jra3084 in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 04-29-2003, 08:52 AM
  5. Multiple viewports?
    By spdow in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 11-16-2001, 04:06 PM

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