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

Thread: 2 different projection matricies

  1. #1
    Junior Member Newbie
    Join Date
    Jun 2012
    Posts
    4

    2 different projection matricies

    For the program i'm making, I want to have a projection matrix that handles the content showing, and another one that handles gui. The reason I want 2 different matricies is so that one is ortho'd differently than the other. I for one don't even know if this is possible, but if it is i'm looking for help.

  2. #2
    Senior Member OpenGL Guru Dark Photon's Avatar
    Join Date
    Oct 2004
    Location
    Druidia
    Posts
    3,224
    Shouldn't be a problem. You can have as many as you want.

  3. #3
    Junior Member Newbie
    Join Date
    Jun 2012
    Posts
    4
    but, I would like to know how.

  4. #4
    Member Regular Contributor
    Join Date
    Jan 2012
    Location
    Germany
    Posts
    325
    Set matrix_1, render everything that should get matrix applied, set matrix_2, render everything else. How to set/change the matrix depends on whether you are using a shader-based approach or still the fixed-function pipeline.

  5. #5
    Junior Member Newbie
    Join Date
    Jun 2012
    Posts
    4
    I'm not using shaders. I just want to handle one projection matrix one way, and another projection matrix another way. They both project content I draw, but they both have different orthographic setups.

  6. #6
    Junior Member Newbie
    Join Date
    Jun 2012
    Posts
    4
    Well, I solved it. Thanks for trying.

Tags for this Thread

Posting Permissions

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