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

Thread: GluOrtho2D - GluPerspective

  1. #1
    Junior Member Newbie
    Join Date
    Sep 2001
    Location
    wrwrqwrqw
    Posts
    14

    GluOrtho2D - GluPerspective

    im working with a GluOrtho2D screen, because i only need 2d graphics at the moment. In the future i have to work with 3d objects. What changes i have to make in my code to let my 2d graphics appear correctly in de perspective view ?

  2. #2
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,651

    Re: GluOrtho2D - GluPerspective

    Normally all you need is to switch from ortho to perspective.

    Mikael

  3. #3
    Senior Member OpenGL Pro
    Join Date
    May 2001
    Location
    Kristianstad,Skåne,Sweden
    Posts
    1,651

    Re: GluOrtho2D - GluPerspective

    Sorry, pressed "Submit reply" to soon.

    The only difference between ortho and perspective is that you don't have any "depth" in ortho view, like in many cad applications, everything you render is still in 3D it's just look's 2D.

    If you draw a box, it look's like a rectangle, but if you do some rotation (in ortho view), you will see a "3D" box, but without depth (the closest rectangle has the same size as the one on the other side).

    Mikael

Posting Permissions

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