Results 1 to 4 of 4

Thread: Multi-camera

  1. #1
    Junior Member Newbie
    Join Date
    Aug 2001
    Location
    Espoo, Finland
    Posts
    13

    Multi-camera

    Is there a EZ solution for multiple cameras is in scene..I mean that i want a split-screen like so:

    _____
    |1|2|
    |-|-|
    |3|4|
    -----

    So theres going to be for different views of the world
    Follow the white rabbit...

  2. #2
    Senior Member Regular Contributor
    Join Date
    Feb 2001
    Location
    Australia
    Posts
    431

    Re: Multi-camera

    glViewport/glScissor

  3. #3
    Member Newbie
    Join Date
    Aug 2000
    Posts
    32

    Re: Multi-camera

    As ffish mentioned, you can use multiple glViewport calls in your drawing routine:

    glViewport(viewX, viewY, viewWidth, viewHeight);
    glMatrixMode(GL_PROJECTION);
    // set up projection you want to use for a view
    glMatrixMode(GL_MODELVIEW);
    // draw 1st view

    // repeat steps above with different (or same, if you wish) projections changing your viewX and viewY every time

    Hope this helps

  4. #4
    Senior Member Regular Contributor
    Join Date
    Dec 1969
    Location
    Munich,Germany
    Posts
    227

    Re: Multi-camera

    Originally posted by Aster:

    glViewport(viewX, viewY, viewWidth, viewHeight);
    glMatrixMode(GL_PROJECTION);
    // set up projection you want to use for a view
    glMatrixMode(GL_MODELVIEW);
    // draw 1st view

    // repeat steps above with different (or same, if you wish) projections changing your viewX and viewY every time
    this will work as long as you don't call a gl Clear. I would stick to glScissor.

    Chris
    yes

Similar Threads

  1. How to handle multi-GPU with multi-monitors
    By Aasimon in forum Vulkan
    Replies: 4
    Last Post: 11-19-2018, 06:42 AM
  2. multi head/multi window simple program
    By advorak in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 06-13-2015, 07:56 PM
  3. multi windows at multi-display environment
    By tgbt in forum OpenGL: Advanced Coding
    Replies: 0
    Last Post: 11-09-2006, 12:38 AM
  4. Multi-Head Multi-Card
    By bryno in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 04-25-2005, 04:45 PM
  5. Multi-texture, multi-UV material spec question
    By JHoerner in forum COLLADA
    Replies: 3
    Last Post: 03-11-2005, 03:18 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