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

Thread: Trying to render a frusum "shape" from a given orthographic projection matrix.

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Junior Member Newbie
    Join Date
    Sep 2014
    Posts
    15

    Trying to render a frusum "shape" from a given orthographic projection matrix.

    Hi guys, in order to test my application, I want to render a shape which represents the volume of an orthographic projection.

    I have found this code, and when I pass a perspective projection matrix, it creates the frustum shape perfectly, but when I pass a matrix of a orthographic projection, all components ( x, y and z ) of the each generate vert are set with 0.0f.

    So two questions:

    1º) Why the frustum shape with a perspective matrix is built correctly, but not with an orthographic matrix?
    2º) How can I create a frustum shape from an orthograpic projection matrix?

    PD: The orthographic projection that I'm trying to render with that code, works well in my program.

    Thanks in advances,
    Alberto.
    Last edited by Alberto García; 01-01-2018 at 11:24 AM.

Posting Permissions

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