Results 1 to 3 of 3

Thread: GluOrtho2D - GluPerspective

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

    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,595

    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,595

    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

Similar Threads

  1. From gluOrtho2D to 3D
    By Henry90 in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 12-11-2014, 09:58 AM
  2. gluOrtho2D
    By mikeglaz in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 06-11-2010, 10:29 AM
  3. gluOrtho2D?
    By nurulfaiz in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 12-14-2004, 08:30 AM
  4. gluOrtho2D v. gluPerspective
    By link19 in forum OpenGL: Basic Coding
    Replies: 6
    Last Post: 02-14-2001, 09:44 AM
  5. No gluOrtho2D?!
    By riisXIV in forum OpenGL: Basic Coding
    Replies: 2
    Last Post: 12-30-2000, 04:23 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
  •  
Proudly hosted by Digital Ocean